Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add sawrus/agent-guides --skill gitlab-ci-patternsgit clone --depth 1 https://github.com/sawrus/agent-guidesWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/sawrus/agent-guides/gitlab-ci-patterns)<a href="https://agentmods.dev/skills/sawrus/agent-guides/gitlab-ci-patterns"><img src="https://agentmods.dev/badge/skills/sawrus/agent-guides/gitlab-ci-patterns/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/sawrus/agent-guides/gitlab-ci-patterns"><img src="https://agentmods.dev/badge/skills/sawrus/agent-guides/gitlab-ci-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 4 findings, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Privilege Escalation · line 146 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
- high Privilege Escalation · line 147 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
- high Privilege Escalation · line 146 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
- high Privilege Escalation · line 147 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00058 | $0.00867 |
| Opus 5.5 | $0.00023 | $0.00347 |
| Sonnet 5.5 | $0.00012 | $0.00173 |
| Haiku 4.5 | $0.00006 | $0.00087 |
Grade A, and why
gitlab-ci-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GitLab CI: change and debug a pipeline
1. Read the current pipeline
- Open
.gitlab-ci.ymland every file it pulls in withinclude:(local,project,template,component). - List the stages, the jobs per stage, and which jobs run on merge requests, on the default branch, and on tags.
- If the project uses CI components or a shared template project, change the caller first. Change the shared template only when the task says so.
2. Make the change
- Put job conditions in
rules:. Do not addonly:orexcept:. - Express job order with
needs:when a job does not need the whole previous stage. - Reuse setup with
extends:or!reference; do not copy ascript:block into a second job. - Pin every
image:to a version tag or a digest. Do not uselatest. - Set
timeout:on jobs that can hang (integration tests, deploys). - Set
interruptible: trueon test jobs so a new push cancels the old pipeline. - Cache dependencies with a key that changes with the lock file:
cache:
key:
files: [poetry.lock] # go.sum, pom.xml, package-lock.json
paths: [.venv/]
policy: pull-push # use `pull` in jobs that only read the cache
- Pass build outputs with
artifacts:and anexpire_in:value. Useartifacts:reports:junitfor test results. - Read secrets from CI/CD variables (masked and protected) or from
id_tokens:with OIDC. Never write a secret into the YAML. - Put deploy jobs on
environment:withrules:that limit them to protected branches or tags. A production deploy job useswhen: manual; ask the user first before you run it.
3. Validate before you push
- Lint the file with the API or the CLI:
glab ci lint # uses the project CI lint endpoint
glab ci lint --dry-run --ref main # simulate a pipeline on a branch
- If
glabis not available, open CI/CD > Editor > Validate in the project UI. - Check that each changed job has the expected
rules:outcome on a merge request and on the default branch.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · -101 lines · +29 tokens per session 4e5c3a340d25
- 3mo ago First seen · 170 lines · 29 tokens per session scan A f1f7d4a7d4d2
gitlab-ci-patterns is a skill published in the GitHub repository sawrus/agent-guides (21 stars, last pushed 2d ago), licensed MIT. It adds 58 tokens to every session and 867 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
gitlab-ci-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| gitlab-ci-patternssawrus/agent-guides | Skill | 21 | 2d ago | MIT | A | 58 | Claude Code, Codex |
| ci-cd-and-automationaddyosmani/agent-skills | Skill | 123k | 2d ago | MIT | A | 45 | Claude Code |
| agentic-actions-auditorsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 59 | Claude Code |
| depsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 14 | Claude Code |
| sast-configurationsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 31 | Claude Code |
| expo-cicd-workflowssickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 60 | Claude Code, Codex |
| k6-load-testingsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 35 | Claude Code |