# Gitlab Pages Ci

> GitLab CI — test job and GitLab Pages job (artifact `public/`); `.gitlab-ci.yml` templates

- **Type:** Skill
- **Install:** `agentstack add skill-frontier-ai-next-mgarlbot-gitlab-pages-ci`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [frontier-ai-next](https://agentstack.voostack.com/s/frontier-ai-next)
- **Installs:** 0
- **Category:** [Cloud & Infrastructure](https://agentstack.voostack.com/c/cloud-infrastructure)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [frontier-ai-next](https://github.com/frontier-ai-next)
- **Source:** https://github.com/frontier-ai-next/mgarlbot/tree/main/skills/gitlab_pages_ci

## Install

```sh
agentstack add skill-frontier-ai-next-mgarlbot-gitlab-pages-ci
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

## GitLab CI + Pages

The **GitLab Runner** executes the pipeline, not the bot. Your job is to **add or fix** `.gitlab-ci.yml` in the repo and list what to enable in GitLab (Settings → Pages, visibility).

### General layout

- `stages: [test, deploy]` (or `[test, pages]`).
- **test** job: same stack as local (Python/Node/Go). Default image from process env `GITLAB_CI_DEFAULT_IMAGE` (e.g. `python:3.12-bookworm`) — use it in YAML if the project has no `image:`.
- **pages** job: GitLab requires a `public/` artifact. Build the static site (MkDocs, VitePress, `sphinx -b html`, SPA `npm run build` then copy into `public/`) and declare:

```yaml
pages:
  stage: deploy
  needs: ["test"]
  script:
    - mkdir -p public
    - cp -r dist/* public/   # example; adapt to the project
  artifacts:
    paths:
      - public
```

### Python (pytest) + minimal Pages stub

Template “tests + placeholder site”:

```yaml
stages: [test, deploy]

variables:
  PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"

test:
  stage: test
  image: python:3.12-bookworm
  cache:
    paths: [.cache/pip]
  before_script:
    - python -m pip install -U pip
    - test -f requirements.txt && pip install -r requirements.txt || true
    - test -f pyproject.toml && pip install -e ".[dev]" || true
  script:
    - pytest -q || true

pages:
  stage: deploy
  needs: ["test"]
  image: alpine:latest
  script:
    - mkdir -p public
    - echo 'CIGitLab Pages OK' > public/index.html
  artifacts:
    paths: [public]
```

Tune `pytest` for the real layout (`tests/`, `uv run`, etc.).

### Node / static frontend

- `image: node:22-bookworm` (or project LTS).
- `cache: { paths: [node_modules/] }`
- `script: npm ci && npm run build` → output in `dist/` or `build/` → copy into `public/`.

### Important

- No **secrets** in YAML; use GitLab **CI/CD Variables** (masked).
- If `.gitlab-ci.yml` already exists — **extend** stages/jobs; do not break production-branch deploy without explicit user approval.
- After merge: Pages URL like `https://.gitlab.io//` (depends on settings); tell the user to check **Deploy → Pages** in the UI.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [frontier-ai-next](https://github.com/frontier-ai-next)
- **Source:** [frontier-ai-next/mgarlbot](https://github.com/frontier-ai-next/mgarlbot)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-frontier-ai-next-mgarlbot-gitlab-pages-ci
- Seller: https://agentstack.voostack.com/s/frontier-ai-next
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
