ci-cd-pipeline-design
Skill1 starsChanged 34 days agoMITView on GitHub
Design CI/CD pipelines that are fast, reproducible and safe to deploy from — stage layout, caching, test pyramid in CI, artifact promotion across environments, approvals, secrets handling and rollback. Use when creating or restructuring a pipeline on any CI system (GitLab CI, GitHub Actions, Jenkins, Woodpecker) or when pipelines are slow, flaky or deploy untested builds.
In this repository105 other files it gives its agents.
- AGENTS.mdAGENTS.md
- instructions/AGENTS.mdAGENTS.md
- accessibility-reviewSkill
- agent-evaluationSkill
- agent-guardrailsSkill
- agenthub-routerSkill
- ai-red-teamingSkill
- ansible-reviewSkill
- api-designSkill
- api-integrationSkill
- architecture-decisionSkill
- backup-restoreSkill
- caching-strategySkill
- chaos-engineeringSkill
- cloud-cost-optimizationSkill
- cloud-iam-least-privilegeSkill
- code-reviewSkill
- container-image-optimizationSkill
- cyber-resilience-actSkill
- database-migrationsSkill
- data-pipeline-reviewSkill
- data-privacySkill
- data-quality-checksSkill
- debugging-root-causeSkill
- dependency-auditSkill
- dependency-upgradeSkill
- disaster-recovery-drillSkill
- docker-hardeningSkill
- documentationSkill
- dora-readinessSkill
- dpiaSkill
- email-deliverabilitySkill
- embedding-model-selectionSkill
- error-handling-reviewSkill
- eu-ai-act-readinessSkill
- eu-data-sovereigntySkill
- european-accessibility-actSkill
- event-driven-architectureSkill
- feature-flagsSkill
- frontend-reviewSkill
- gdpr-dsar-handlingSkill
- github-actionsSkill
- gitlab-ciSkill
- git-workflowSkill
- go-developmentSkill
- graphql-api-reviewSkill
- helm-chart-reviewSkill
- i18n-localizationSkill
- incident-responseSkill
- java-spring-reviewSkill
- kubernetes-reviewSkill
- linux-server-hardeningSkill
- llm-cost-analysisSkill
- llm-gateway-routingSkill
- llm-observabilitySkill
- llm-output-evaluationSkill
- llm-structured-extractionSkill
- load-testingSkill
- local-llm-servingSkill
- log-analysisSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Every change is built once, tested at the right levels, and the same artifact is promoted through environments with explicit gates and a …
- Distinctive: line 17
Speed: run independent jobs in parallel.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CI/CD Pipeline Design
Goal
Every change is built once, tested at the right levels, and the same artifact is promoted through environments with explicit gates and a tested rollback.
Inputs
- Repository layout, build tools, test suites and durations, environments, deployment targets, compliance requirements, current pipeline metrics (duration, failure rate, flaky tests).
Procedure
- Stages: lint and unit tests (minutes) → build artifact once (image or package, tagged by commit SHA, pushed by digest) → integration tests against the artifact → security scans (dependencies, image, secrets) → deploy to staging → smoke and end-to-end tests → gated deploy to production.
- Speed: run independent jobs in parallel; cache dependencies keyed on lockfiles; run only affected parts in monorepos; target under 10–15 minutes for the merge request pipeline.
- Reproducibility: pinned tool and base-image versions; no network-fetched scripts at build time without checksums; builds hermetic where feasible (see
supply-chain-provenance). - Promotion, not rebuild: staging and production deploy the identical digest; configuration differs by environment variables or config files, not by rebuilding.
- Gates: protected branches and tags; manual approval or change window for production where required; separation of duties for regulated systems.
- Secrets: short-lived credentials via OIDC federation where the cloud supports it; protected variables only on protected refs; untrusted merge requests from forks never get deploy secrets.
- Deploy strategy: rolling, blue-green or canary with automatic health checks; database migrations compatible with both versions (see
database-migrations); one-command rollback to the previous digest. - Flaky tests: quarantine with an owner and deadline instead of blanket retries; track the flake rate.
- Observability: pipeline duration, failure causes and deployment frequency, lead time and change failure rate (DORA metrics).
Example fixture
Current: build in each environment job (3 builds), tests after deploy to staging, prod deploy from any branch with a shared token.Expected redesign: build once by digest, tests before deploy, prod only from protected tags with OIDC credentials and an approval gate.
Acceptance checks
- Production deploys only artifacts that passed the earlier stages (digest traceable from merge request to production).
- Negative case: a pipeline from an unprotected branch or fork cannot access production credentials (test run shows variables absent).
- Rollback to the previous release was executed in staging and timed.
Output
Pipeline design diagram, pipeline configuration changes, metrics before and after, rollback runbook.
Safety
Changing production deploy jobs, protected variables or runner configuration requires approval. Test pipeline changes on a branch before merging.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

