/devops-skills:ci-pipelinesfrom devops-skills
Designs CI pipelines that produce a fast, honest merge signal. Covers stage ordering, reproducibility, safe caching, and required checks. Use when writing or debugging CI workflows (GitHub Actions, GitLab CI, Jenkins), or when CI is slow or flaky.
Ships in devops-skills. 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.
The purpose of CI is to answer one question as fast and as truthfully as possible: is this change safe to merge? Every design decision — stage order, what runs in parallel, what blocks merge — should be judged against that question. A pipeline that is fast but lies (flaky, non-deterministic, skips real checks) is worse than no pipeline, because people stop trusting it and start merging past red.
A pipeline that takes twenty minutes but never lies beats one that takes two minutes and is wrong once a week.
A CI pipeline exists to produce a merge signal that is fast, deterministic, and trusted — in that order of what you sacrifice first.
For concrete GitHub Actions patterns — caching, matrix builds, SHA pinning, OIDC, reusable
workflows — read references/github-actions.md.
Lint and type-check fail faster than unit tests, which fail faster than integration tests, which fail faster than end-to-end tests. Run them in that order and fail fast on the first red stage instead of running everything to completion. This isn't just about total wall-clock time — it's about the time a developer waits for the first useful signal, since that's when they context-switch back to the PR.
Done when: a developer gets their first CI failure signal in under two minutes for the common case (lint or unit test failure).
A pipeline that produces a different answer on a re-run of the same commit is not a merge signal,
it's a random number generator. Pin the CI runner image, the language/toolchain version, and
every dependency via a lockfile (package-lock.json, poetry.lock, go.sum, Gemfile.lock). "Latest"
tags for base images and unpinned action versions (uses: actions/checkout@v4 vs @sha256:...)
are the two most common sources of a pipeline that passed yesterday and fails today for no code
reason.
# bad: floats with upstream changes, breaks reproducibility
- uses: actions/setup-node@v3
with:
node-version: latest
# good: pinned toolchain, lockfile installs exact deps
- uses: actions/setup-node@v3
with:
node-version: '20.11.1'
- run: npm ci # not `npm install` — respects the lockfile exactly
Done when: re-running the same commit's pipeline twice, a week apart, produces the same pass/fail result.
Dependency and build caches are the biggest lever on CI wall-clock time, but a cache keyed wrong
silently serves stale artifacts and turns a real failure into a false pass (or vice versa). Key
the cache on a hash of the lockfile, not on branch name or "latest" — if the lockfile hasn't
changed, the cache is valid regardless of which branch produced it. See build-optimization for
the deeper mechanics of cache layering and remote caches; here the concern is narrower:
correctness before speed.
node_modules is fine; caching
test results is not — that's the thing you're trying to verify.Done when: deleting the cache entirely and re-running produces the identical pass/fail result as a cache hit, only slower.
Every check that blocks merge is a tax on every future PR, forever. Add a required check only when its failure means "do not ship this," not "someone should look at this eventually." Flaky or advisory checks (a nightly-only integration suite, a slow visual regression test) belong as non-blocking reports, not required statuses — a required check that's flaky trains people to click "re-run" without reading the failure, which defeats the entire point of requiring it.
Done when: every required check on the default branch has an owner who can explain why it blocks merge.
CI answers "is this change correct." CD answers "should this change go live, and where."
Conflating them — deploying to a shared staging environment as part of the same workflow that
runs unit tests — means a deploy failure blocks unrelated PRs, and a slow deploy step makes every
contributor wait for infrastructure that has nothing to do with their code's correctness. Keep
the boundary at the merge: CI runs on every push and PR; CD triggers on merge to main (or on tag)
and is a separate pipeline. See continuous-delivery for what happens on the far side of that
boundary.
Done when: a developer can get a full green CI signal on a PR without anything being deployed anywhere.
If CI builds artifact X and CD rebuilds "the same" artifact from source for deployment, you've
tested something you're not shipping. Compilers, dependency resolution, and even timestamps can
make two builds of the "same" commit different. Build once in CI, publish it with a
content-addressed or immutable version, and have every later stage pull that exact artifact.
Details on where and how to store it belong to artifact-management.
Done when: the SHA/digest of the artifact deployed to production matches the SHA/digest of the artifact that passed CI, byte for byte.
State the pipeline's stage order and roughly how long each stage takes, what's pinned (runner image, toolchain version, action SHAs), how the cache is keyed, and the current list of required checks with owners. Call out any check that's flaky or any stage still rebuilding instead of promoting an artifact — those are the honest gaps, and naming them beats claiming a green pipeline means the system is fully trustworthy.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub arjunprabhulal/devops-skills --plugin devops-skills88 skills in this plugin
/alertingCovers designing alerts that page a human only when a human needs to act — symptom-based alerting over cause-based, multi-window burn-rate alerts on error budgets, severity tiers that route between page/ticket/dashboard, requiring every page to link a runbook, and tuning out alert fatigue. Use this whenever the user is writing a new alert rule, asking why on-call is paged too often or missing real incidents, choosing an alert threshold, or designing severity routing. For the SLO the burn-rate math comes from use `slo-definition`, and for what a runbook should contain use `runbooks`./api-gatewayCovers the managed front-door pattern for APIs — request routing, centralized auth, rate limiting and quotas, request/response shaping, and recognizing when a gateway helps versus becomes a bottleneck or single point of failure. Use this whenever the user is designing an API entry point, adding rate limits or quotas, centralizing auth for several backend services, transforming a request between an external and internal contract, or debugging a gateway timeout. For east-west traffic between internal services use `service-connectivity`, and for token issuance details use `iam-access-management`./argocd-operationsCovers running Argo CD day to day — structuring app-of-apps, choosing sync policies and waves, reading health versus sync status correctly, and unsticking a degraded or hung Application. Use this whenever the user mentions Argo CD, an Application stuck "Progressing" or "OutOfSync," app-of-apps or ApplicationSets, sync waves and hooks, or asks why a deploy shows synced but the workload is unhealthy. For the underlying model this tool implements use `gitops`; for automated canary analysis on top of it use `progressive-delivery`; for the workloads it manages use `kubernetes-operations`./artifact-managementVersions, stores, and promotes build outputs — registries, immutability, build-once-promote-many, retention and garbage collection, and provenance metadata. Use this whenever the user sets up an artifact or container registry, asks how to promote a build between environments without rebuilding, needs a retention or cleanup policy, or wants to trace where an artifact came from. For an image's contents and size use `image-optimization`; for vulnerability scanning use `image-scanning`./autoscalingCovers scaling Kubernetes workloads and nodes to demand — HPA on the right metric, VPA, cluster autoscaler, custom/external metrics, avoiding thrash with stabilization windows, and requests as the foundation underneath it all. Use this whenever the user is configuring an HPA, deciding between HPA and VPA, debugging autoscaling that flaps, or sizing a cluster autoscaler. For the requests/limits autoscaling depends on use `kubernetes-operations`; for cost tradeoffs use `cost-optimization`./backup-and-restoreDefines the discipline of building backups you can actually restore under pressure — RPO-driven frequency, restores rehearsed on a schedule, offsite immutable copies, encryption, and treating a backup that has never been restored as equivalent to no backup at all. Use this whenever the user sets up a backup job, chooses a retention policy, argues about RPO or RTO, asks whether current backups are enough, or plans for ransomware or accidental deletion. For the wider recovery plan use `disaster-recovery`, and for stateful platform durability use `stateful-workloads`.