/engineering:cicd-pipelinesfrom engineering
Designs and implements CI/CD pipelines with build, test, security, and deployment stages. Covers reusable workflows, OIDC authentication, caching, promotion gates, pipeline telemetry, and GitHub Actions hardening.
Ships in engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.
references/cicd-jenkins-debian.md.references/cicd-devsecops.md.references/cicd-pipeline-design.md, then return here for the engine-specific implementation.SKILL.md first; load only the referenced files needed for the engine and deploy surface in front of you..ipa) is promoted through every environment.permissions: per workflow and per job; no static cloud keys when OIDC is available.concurrency: group on production.AWS_ACCESS_KEY_ID in repo secrets when OIDC federation is available.| Category | Artifact | Format | Example |
|---|---|---|---|
| Release evidence | Pipeline configuration record | Markdown doc covering build, test, deploy stages plus secret references | docs/ci/pipeline-config.md |
| Release evidence | Latest release run evidence | CI URL plus archived log of the most recent successful release | docs/ci/release-run-2026-04-16.md |
| Release evidence | Deployment record sink schema | JSON schema + sample row | docs/ci/deployment-record.md |
references/github-actions-security-hardening.md — load when writing or reviewing any workflow change, adding credentials, accepting fork PRs, or proposing self-hosted runners; includes current action majors (verified 2026-09-24).references/supply-chain-provenance.md — load when a pipeline publishes release artifacts or a deploy gate must verify SLSA provenance and artifact attestations.references/oidc-federation.md — OIDC → AWS, GCP, and Vault with bound-claim trust policies.references/pipeline-observability.md — DORA metrics, queue time, scraper sketch, dashboards.references/reference-architectures.md — three end-to-end pipelines (PHP/MySQL SaaS, Node.js/TS service, container library).references/anti-patterns.md — broken vs fixed examples.references/github-vs-gitlab.md — engine comparison and migration notes.references/github-actions-workflows.md, references/mobile-pipelines.md, references/ios-fastlane-pipeline.md, references/android-pipeline.md — domain templates.world-class-engineering and git-collaboration-workflow for the baseline.references/cicd-pipeline-design.md for the high-level pipeline shape.references/cicd-devsecops.md for secrets policy, references/cicd-jenkins-debian.md when the engine is Jenkins, deployment-release-engineering for rollout, observability-monitoring for post-deploy verification, cloud-architecture for traffic-shifting plumbing.The deployment pipeline is the canonical model: every commit produces a release candidate that progresses through automated stages, and any failed stage stops the candidate. Continuous Delivery (Humble & Farley, Addison-Wesley, 2010, ISBN 978-0-321-60191-9) frames the pipeline as the mechanism by which you build quality in rather than testing it in afterwards. The DevOps Handbook (2nd ed., Kim, Humble, Debois, Willis, IT Revolution, 2021, ISBN 978-1-950508-40-2) reinforces this with the First Way (flow from development to operations) and Second Way (fast feedback via short-lived automated pipelines).
Stage-gate convention used throughout this skill, derived from the canonical 5-stage model:
| Stage | Purpose | Target duration |
|---|---|---|
| Commit | Compile, unit tests, lint, type-check | < 5 min |
| Build artefact | Reproducible artefact (image digest, jar, signed AAB, .ipa) | < 5 min |
| Acceptance / integration | Service-level tests against real dependencies | < 15 min |
| Security scan | SAST, dependency scan, container scan, secret scan | parallel with acceptance |
| Deploy to staging | Automated, no human gate | < 5 min |
| Deploy to production | Gated (manual approval or progressive delivery) | minutes |
Pipeline-as-code, deploy-on-green, and a single artefact promoted across environments are the three load-bearing principles. Branch-based release calendars (cut a branch, freeze, manually QA) are the failure mode this model replaces.
Workflow files live under .github/workflows/*.yml and are triggered by on: events: push, pull_request, schedule, workflow_dispatch, workflow_call, release. Filename is the stable reference; name: is human-readable. Jobs run in parallel by default; use needs: to serialise.
The two reuse primitives:
on: workflow_call) — job-level reuse. Accepts inputs: and secrets:; callers can pass secrets: inherit to forward all secrets without listing each one. Up to 10 levels of nesting.action.yml in a directory) — step-level reuse. Bundles multiple steps as a single uses:.Use composite actions for "set up the build toolchain", reusable workflows for "the standard CI job for a Node service".
Matrix, concurrency, permissions:
strategy:
fail-fast: false
matrix:
node: ['22', '24'] # Node 20 reached end of life 2026-04-30
os: [ubuntu-24.04, macos-14]
concurrency:
group: deploy-${{ github.ref }}-${{ matrix.environment }}
cancel-in-progress: false
permissions:
contents: read
id-token: write
packages: read
fail-fast: false is the platform-engineering default — see all matrix-leg failures, not just the first.
Environments wrap a deploy target with policy: required reviewers, wait timer, deployment-branch policy, environment-scoped secrets. Production deploys always run inside an environment:
jobs:
deploy-prod:
environment: { name: production, url: https://app.example.com }
runs-on: ubuntu-24.04
GitLab CI dialect differences live in references/github-vs-gitlab.md; the patterns here apply to both engines.
Action tags in examples show the current major (verified 2026-09-24) for readability. Production workflows pin every external action to a full commit SHA with the version as a comment; see references/github-actions-security-hardening.md for the pinning procedure, upgrade notes per action, and the workflow review gate.
GITHUB_TOKEN is automatically issued per workflow run with permissions the workflow specifies; grant the least required access. Pin per job and never rely on legacy write-all defaults.
id-token: write enables OIDC federation — the workflow exchanges a short-lived OIDC token for a cloud or Vault credential. No static AWS_ACCESS_KEY_ID anywhere.
Minimal AWS pattern:
permissions: { id-token: write, contents: read }
steps:
- uses: actions/checkout@v7
- uses: aws-actions/configure-aws-credentials@v6
with:
role-to-assume: arn:aws:iam::123456789012:role/github-actions-deploy
aws-region: eu-west-1
- run: aws sts get-caller-identity
Bind the IAM trust policy to the exact sub (repo:acme/api:environment:production), never repo:*. Vault's JWT auth method consumes the same OIDC token; the Vault role binds the same sub claim and a short token TTL. GCP uses Workload Identity Federation with the same shape. Full trust-policy JSON, GCP WIF binding, and Vault role config live in references/oidc-federation.md.
Secret scoping:
CODECOV_TOKEN).dev, staging, production). Production secrets never leak into PR builds.Lockfile-keyed dependency caches:
- uses: actions/cache@v6
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-
Targets: ~/.npm, ~/.cache/pnpm, ~/.cache/composer, ~/.gradle/caches + ~/.gradle/wrapper, Pods/ (keyed on Podfile.lock), ~/.cargo/registry + target/, ~/.cache/pip (keyed on requirements*.txt). The setup-node / setup-python / setup-java actions have a built-in cache: parameter — prefer it when the lockfile is at the repo root.
Docker BuildKit cache via type=gha with mode=max stores all intermediate layers. Order Dockerfile instructions from least-likely-to-change to most-likely-to-change — once a layer changes, all downstream layers rebuild. Cache size limit is 10 GB per repo; evict old caches via gh cache delete.
Cross-job artefacts use actions/upload-artifact / actions/download-artifact. Container images go to GHCR (ghcr.io/<owner>/<repo>:<sha>) tied to repo permissions; ECR via OIDC for AWS-hosted services.
Multi-platform images only when the runtime differs (ARM Graviton, Apple Silicon dev) — it doubles build time. Sign with cosign keyless and emit provenance: true and sbom: true from docker/build-push-action so consumers can verify before deploy. Generate GitHub artifact attestations with actions/attest and verify them in the promotion job with gh attestation verify; target SLSA Build level and plan limits are in references/supply-chain-provenance.md.
Four orchestration primitives:
needs: [job-a, job-b].concurrency: { group: deploy-prod, cancel-in-progress: false } ensures only one prod deploy runs at a time. For PR previews use cancel-in-progress: true so superseded commits abandon in-flight runs.Test parallelisation pattern (Playwright shards, then merge reports):
e2e:
strategy:
fail-fast: false
matrix: { shard: [1/4, 2/4, 3/4, 4/4] }
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with: { node-version: '24', cache: 'npm' }
- run: npm ci && npx playwright install --with-deps
- run: npx playwright test --shard=${{ matrix.shard }} --reporter=blob
- uses: actions/upload-artifact@v7
with: { name: blob-report-${{ strategy.job-index }}, path: blob-report, retention-days: 1 }
merge-reports:
if: always()
needs: [e2e]
runs-on: ubuntu-24.04
steps:
- uses: actions/download-artifact@v8
with: { path: reports, pattern: blob-report-*, merge-multiple: true }
- run: npx playwright merge-reports --reporter=html ./reports
Jest shards via jest --shard=1/4 across a matrix or --maxWorkers=50% on one large runner. Report merging is mandatory — reviewers need a single HTML report.
| Strategy | When to use | Key implementation knob |
|---|---|---|
| Rolling | Stateless service, minor risk | Replicas updated N at a time |
| Blue / green | Need atomic cutover, easy rollback | Two parallel environments + traffic switch |
| Canary | High-risk change, gradual rollout | % traffic shift over time, automated abort on SLO breach |
Detailed traffic-shifting plumbing (Kubernetes Service swap, Argo Rollouts, AWS CodeDeploy, Nginx symlink swap on Debian VPS) lives in cloud-architecture and deployment-release-engineering. The pipeline's job is to invoke the strategy, watch the health gate, and trigger rollback on SLO breach.
Promotion is workflow_dispatch with an image_digest input — never a rebuild:
name: promote
on:
workflow_dispatch:
inputs:
image_digest: { description: 'sha256:... to promote', required: true }
target:
description: 'Target environment'
required: true
type: choice
options: [staging, production]
jobs:
deploy:
runs-on: ubuntu-24.04
environment: { name: ${{ inputs.target }} }
steps:
- run: deploy.sh "${{ inputs.image_digest }}" "${{ inputs.target }}"
Rollback is the same workflow with the previous digest. Three rollbacks in a week on the same service freezes deploys until a post-mortem is filed. A nightly scheduled staging re-deploy detects drift between main HEAD and live.
Use deployment frequency, change lead time, failed deployment recovery time, change fail rate and deployment rework rate, following the DORA measurement guide. Generic incident MTTR is a separate operational measure, not a substitute for failed-deployment recovery. The following values are illustrative local budgets, not universal DORA thresholds; agree service scope, event definitions and windows before adoption:
run.created_at → run.started_at) — p95 < 60 s.main — < 10%.Workflow timings come from GET /repos/{owner}/{repo}/actions/runs and /runs/{id}/jobs. A small scraper polls and ships line-protocol to the platform observability backend (SigNoz OTLP or Prometheus pushgateway). Schema and scraper pseudocode live in references/pipeline-observability.md.
Record production deployment attempts and outcomes in an append-only sink, linked to commits, deployment-induced failures, recovery events and unplanned remedial deployments. Successful-deployment rows alone cannot establish failure or rework rates. Define denominator and observation window explicitly; see references/pipeline-observability.md. Pair with observability-monitoring for SLO and alert design.
For repos in the self-managed Debian/Ubuntu stack (Jenkins + GitLab CE + Nexus 3 + Vault), the canonical engine is GitLab CI on self-managed runners. GitHub Actions is used for repos already on GitHub.com — primarily mobile (iOS hosted macos-14) and OSS releases.
Quick-decision summary:
| Concern | GitHub Actions | GitLab CI |
|---|---|---|
| Configuration | .github/workflows/*.yml (multiple) | .gitlab-ci.yml (single, with include:) |
| Reuse | Reusable workflows + composite actions | include: + components |
| Job graph | DAG via needs: | Stages-then-jobs (DAG via needs:) |
| Secrets | Repo / env / org, OIDC, secrets: inherit | CI/CD variables (masked, protected, env-scoped), OIDC ID token |
| Concurrency | concurrency: keyword | resource_group: |
Full comparison and migration notes (claim shapes for OIDC sub, matrix → parallel:matrix:, marketplace → components) live in references/github-vs-gitlab.md.
Headline list — broken-vs-fixed examples in references/anti-patterns.md:
ci.yml — is unmaintainable; split per concern with reusable workflows.permissions: block defaults to write-all on older repos; pin per workflow and per job.concurrency: on production allows two simultaneous deploys to race on kubectl apply.main, promote the digest.@v1) lets a publisher repoint to a malicious commit; pin every external action to a full SHA and let Dependabot propose reviewed bumps.Three worked examples covered end-to-end in references/reference-architectures.md:
tsc --noEmit, esbuild bundle, container build, push to GHCR, canary via Argo Rollouts.The mobile pipelines (iOS Fastlane match/gym/pilot, Android gradlew assembleRelease + Fastlane supply) live in references/mobile-pipelines.md, references/ios-fastlane-pipeline.md, and references/android-pipeline.md.
main, short feature branches merged via PR, deploys from main.main always releasable.main for ongoing work, release/v1.2 cut and tagged for ship.Pick one per repo and document in CONTRIBUTING.md. Conventional commits drive semantic-release for tag, CHANGELOG, GitHub Release, npm publish on merge to main (feat: → minor, fix: → patch, feat!: or BREAKING CHANGE: → major). Config lives in .releaserc.json.
actionlint is a required status check on any .github/workflows/*.yml change.references/cicd-pipeline-design.md — high-level pipeline shape, stage boundaries, gate design, FinOps.references/cicd-devsecops.md — secrets policy, Vault server architecture, scan thresholds, exception governance.references/cicd-jenkins-debian.md — when the CI server is Jenkins, not GitHub Actions or GitLab CI.deployment-release-engineering — rollout, canary, blue/green, post-deploy verification.kubernetes-platform — ArgoCD GitOps and progressive delivery for multi-tenant SaaS on Kubernetes.observability-monitoring — deploy markers, SLO burn, MTTR, dashboards.cloud-architecture — traffic-shifting plumbing for the deployment strategies invoked here.ios-development, android-development — app build config upstream of the mobile pipelines.| Input | Required | Purpose |
|---|---|---|
| Repository, environments, and release policy | yes | Design stages |
| Test, artifact, and deployment commands | yes | Make gates executable |
| Credential and approval boundaries | yes | Prevent privilege spread |
If runners or environments are unavailable, validate workflow syntax and return a read-only dry-run plan; do not claim deployment success.
| Condition | Action |
|---|---|
| Required test or scan fails | Block promotion |
| Production target | Require protected approval |
| Artifact changes between stages | Promote one immutable artifact |
references/android-pipeline.md (opens in a new tab)references/anti-patterns.md (opens in a new tab)references/cicd-devsecops.md (opens in a new tab)references/cicd-devsecops/references/ansible-security-automation.md (opens in a new tab)references/cicd-devsecops/references/compliance-controls.md (opens in a new tab)references/cicd-devsecops/references/compliance-mapping.md (opens in a new tab)references/cicd-devsecops/references/container-runtime-security.md (opens in a new tab)references/cicd-devsecops/references/security-gate-governance.md (opens in a new tab)references/cicd-devsecops/references/vault-operations.md (opens in a new tab)references/cicd-devsecops/references/vault-secrets-lifecycle.md (opens in a new tab)references/cicd-jenkins-debian.md (opens in a new tab)references/cicd-jenkins-debian/references/jenkins-host-tuning.md (opens in a new tab)references/cicd-jenkins-debian/references/linux-systems-hardening.md (opens in a new tab)references/cicd-pipeline-design.md (opens in a new tab)references/cicd-pipeline-design/references/finops.md (opens in a new tab)references/cicd-pipeline-design/references/pipeline-governance.md (opens in a new tab)references/github-actions-security-hardening.md (opens in a new tab)references/github-actions-workflows.md (opens in a new tab)references/github-vs-gitlab.md (opens in a new tab)references/ios-fastlane-pipeline.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
169 skills in this plugin
/accounting-engineUse when designing or implementing double-entry accounting policy and an embedded ledger engine for invoices, payments, stock, balanced postings, mapped accounts, idempotency, reversals, period locks, audit trails, and financial statements./accounting-finance-controllerUse when coordinating accounting and finance implementation reviews, doctrine routing, control evidence, remediation priorities, and release decisions across a software system./advanced-testing-strategyUse when designing or reviewing test strategy for production systems, APIs, mobile apps, SaaS platforms, ERP workflows, and AI-enabled systems. Covers unit, integration, contract, end-to-end, regression, release-gate, and risk-based testing decisions./ai-agent-commercial-operationsUse when pricing, billing, refunding, recognizing revenue, or packaging commercial terms for agentic AI services, or when defining agent SLAs, customer commitments, SLA dashboards, breach credits, and service evidence./ai-agent-compliance-controlsUse when mapping AI agent operations to SOC 2, ISO 27001, HIPAA, audit logs, control testing, attestations, and compliance evidence, including drill-cadence evidence, approval-completeness (PI1.1) gap checks, and signed agent-memory erasure proofs./ai-agent-governance-and-limitsUse when defining agent budgets, step limits, reversibility, blast-radius controls, kill switches, and governance policy for agentic AI systems.npx claudepluginhub peterbamuhigire/chwezi-dev-engine --plugin engineeringOther plugins' skills for the same job