gitlab-ci-cd

gitlab-ci-cd is a skill for Claude Code from atretyak1985/swarmery. It costs 63 tokens per session (3,441 once invoked), scanned A, original, Apache-2.0.

A guide for designing, reviewing, and fixing GitLab CI/CD pipelines, which automate validation, builds, security scans, deployments, and rollbacks. It follows an eight-stage flow from checking code through verifying or reversing a deployment.

In plain words
What is it for?
Use it to create or audit a .gitlab-ci.yml file, manage job dependencies and artifacts, add verification or rollback steps, and debug pipeline rules or stage failures.
Why use it?
It helps prevent jobs from running in the wrong order or losing the files and images produced by earlier jobs. It also highlights deployment safeguards such as dry runs, waiting for readiness, and automatic rollback on failure.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is - helm upgrade web-portal ./charts/web-portal.

Part of the infra-pack plugin — 11 skills, 1 command, 3 agents shipped together

Good fit Use it to create or audit a .gitlab-ci.yml file, manage job dependencies and artifacts, add verification or rollback steps, and debug pipeline rules or stage failures.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/atretyak1985/swarmery
agentmods
npx agentmods add skills/atretyak1985/swarmery/gitlab-ci-cd

Made for: Claude Code.

Or install infra-pack, the plugin that ships this one along with the rest of its 11 skills, 1 command, 3 agents.

Wrote 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.

agentmods badge for gitlab-ci-cd

README.md
[![agentmods](https://agentmods.dev/badge/skills/atretyak1985/swarmery/gitlab-ci-cd/github.svg)](https://agentmods.dev/skills/atretyak1985/swarmery/gitlab-ci-cd)
Your own site
<a href="https://agentmods.dev/skills/atretyak1985/swarmery/gitlab-ci-cd"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/gitlab-ci-cd/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.

agentmods 80×15 button for gitlab-ci-cd

Your own site · 80×15
<a href="https://agentmods.dev/skills/atretyak1985/swarmery/gitlab-ci-cd"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/gitlab-ci-cd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,441 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.03441
Opus 5 $0.00032 $0.01721
Sonnet 5 $0.00013 $0.00688
Haiku 4.5 $0.00006 $0.00344

Measured 6d ago against content hash f2c83447b636, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

gitlab-ci-cd scanned grade A with 1 finding 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 6d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- curl -sf "https://$STAGING_HOST/api/health" || exit 1
plugins/infra-pack/skills/gitlab-ci-cd/SKILL.md · 283 lines

How it starts

The opening of the file, as written. The whole thing — 283 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Purpose

You are a CI/CD pipeline engineer for the platform. You design, review, and debug GitLab CI/CD pipelines following the 8-stage model (validate, build, scan, publish, promote, deploy, verify, rollback). You produce pipeline YAML, annotated reviews, or checklist reports. This skill covers Wave A (GitLab-native imperative deploy) only.

Done when: every pipeline job is mapped to the 8-stage model, all checklist items have pass/fail determinations with file:line citations, and no unsafe patterns remain unaddressed.

When to use

  • Creating a new .gitlab-ci.yml for a project repo
  • Reviewing an existing pipeline for stage ordering, artifact passing, or deploy safety
  • Adding a verification or rollback job to an existing pipeline
  • Debugging a CI job failure related to stage dependencies, rules, or artifacts
  • Validating that helm upgrade commands in pipeline YAML have correct flags (--dry-run, --wait, --atomic)

When NOT to use

  • GitHub Actions, Jenkins, or non-GitLab CI systems
  • Local development automation or developer workstation scripts -- follow the project's environment runbooks (out of scope for this pack)
  • GitOps controller configuration (Flux, ArgoCD) -- use gitops-promotion for Wave B
  • GCP authentication setup within a pipeline -- use gcp-cicd-auth for the auth stanza, then compose
  • Helm chart template authoring or values debugging -- use helm-chart-expert, even if the chart is invoked from inside a CI job. This skill only validates that helm upgrade flags are correct in the pipeline YAML
  • Supply-chain hardening (image scanning, SBOMs, digest policies) -- use supply-chain-security

Required environment

  • Runtime: .claude/skills/gitlab-ci-cd/SKILL.md
  • Tools: Read (inspect pipeline YAML), Bash with grep/ripgrep (search for patterns), Edit (annotate/fix YAML)

Inputs

Input Required Description
pipeline_path Yes Path to the .gitlab-ci.yml file
mode Yes review (annotate existing), create (generate new), or debug (diagnose failure)
repo Yes Which project repo: the web portal repo (project.json → mainApp), the chart/infrastructure repos, or the version-pinning repo (project.json → repos)

Read the full file on GitHub · 283 lines

Changes

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.

  1. 6d ago First seen · 283 lines · 63 tokens per session scan A f2c83447b636

Subscribe to this mod's changes

gitlab-ci-cd is a skill published in the GitHub repository atretyak1985/swarmery (5 stars, last pushed yesterday), licensed Apache-2.0. It adds 63 tokens to every session and 3,441 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

deployment-pipeline-design

Design multi-stage CI/CD pipelines with approval gates, security checks, and deployment orchestration. Use this skill when designing zero-downtime deployment pipelines, implementing canary rollout strategies, setting up multi-environment promotion workflows, or debugging failed deployment gates in CI/CD.

wshobson/agents · 58 tokens

gitlab-ci-patterns

Build GitLab CI/CD pipelines with multi-stage workflows, caching, and distributed runners for scalable automation. Use when implementing GitLab CI/CD, optimizing pipeline performance, or setting up automated testing and deployment.

wshobson/agents · 46 tokens

deploying-to-staging-environment

Use when deploying changes to staging across relay, relay-dashboard, and relay-cloud repos - coordinates multi-repo branch syncing using git worktrees, automatically triggers staging deployments via GitHub Actions.

AgentWorkforce/relay · 44 tokens

devops-deployment

Use when setting up CI/CD pipelines, containerizing applications, deploying to Kubernetes, or writing infrastructure as code. DevOps & Deployment covers GitHub Actions, Docker, Helm, and Terraform patterns.

yonatangross/orchestkit · 44 tokens

bun-sveltekit

Use when building or running SvelteKit apps on Bun, including SSR, adapters, and Bun-specific APIs.

secondsky/claude-skills · 26 tokens

devops-cloud

DevOps, cloud infrastructure, and platform engineering. Use when working with AWS, GCP, Azure, Kubernetes, Terraform, CI/CD pipelines, or infrastructure as code.

travisjneuman/.claude · 38 tokens