deployment-patterns
Skill1 starsChanged 57 days agoMITView on GitHub
Deployment and CI/CD standards covering rolling, blue-green and canary rollouts, an approval gate before production, GitHub Actions with OIDC and least-privilege permissions, health probes, config validation, rollback, and Kubernetes defaults. Use when you say "set up a CI/CD pipeline", "add a canary rollout", "why did merging to main deploy to prod", "add readiness and liveness probes", or "how do we roll this back". Not for writing the Dockerfile itself, use `docker-patterns`.
- Reads credentials
- Commits and pushes
22 other projects use a version of this.
Adopted by
Most recently taken up by
- productionx-in/Core-Skillstheir own version, first seen Sep 29, 2026
- templetongroup/radianttheir own version, first seen Sep 17, 2026
- agenticluke/zero-downtime-deploys-plustheir own version, first seen Sep 8, 2026
- socialadsmentor/sam-agentic-harnesstheir own version, first seen Sep 3, 2026
- SamuelNDCE/claude-super-skill-librarytheir own version, first seen Aug 1, 2026
- thanvish21/hcc-bundletheir own version, first seen Jul 25, 2026
Used with
Projects with it also use kotlin-testing, nuxt4-patterns and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
tpavanipradeepSkillkotlin-testing
Kotlin testing patterns with Kotest, MockK, coroutine testing, property-based testing, and Kover coverage. Follows TDD methodology with idiomatic Kotlin practices.
Also in 6 projects that use this
mryeastcodeSkillnuxt4-patterns
Nuxt 4 app patterns for hydration safety, performance, route rules, lazy loading, and SSR-safe data fetching with useFetch and useAsyncData.
Also in 5 projects that use this
mryeastcodeSkillsanta-method
Multi-agent adversarial verification with convergence loop. Two independent review agents must both pass before output ships.
Also in 6 projects that use this
JamkrisSkillagent-sort
Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.
Also in 4 projects that use this
JamkrisSkilllead-intelligence
AI-native lead intelligence and outreach pipeline. Replaces Apollo, Clay, and ZoomInfo with agent-powered signal scoring, mutual ranking, warm path discovery, source-derived voice modeling, and channel-specific outreach across email, LinkedIn, and X. Use when the user wants to find, qualify, and reach high-value contacts.
Also in 4 projects that use this
tpavanipradeepSkillbun-runtime
Bun as runtime, package manager, bundler, and test runner. When to choose Bun vs Node, migration notes, and Vercel support.
Also in 7 projects that use this
- +2 more from Jamkris
Other versions22 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 22
- xu-xiang/everything-claude-code-zh★ 2ksame name
- loulanyue/awesome-claude-notes★ 272same name
- tpavanipradeep/everything-claude-code★ 134same name
- templetongroup/radiant★ 113same name
- Jamkris/everything-gemini-code★ 87same name
- skateddu/claude-code-python-setup★ 28same name
- woxiangyangzhimao/skills★ 14same name
- noah-sheldon/ai-dev-kit★ 13same name
- Infopibe/everything-claude-code★ 8same name
- zero-click/zero-ratchet★ 8same name
12 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- agentic-engineeringSkill
- ai-regression-testingSkill
- angularSkill
- ansibleSkill
- api-designSkill
- architecture-decision-recordsSkill
- ascend-memorySkill
- ascend-web-hunterSkill
- audio-scribeSkill
- automation-inventorySkill
- backend-patternsSkill
- bashSkill
- build-dependency-managementSkill
- code-formatterSkill
- code-reviewerSkill
- coding-standardsSkill
- dart-flutter-patternsSkill
- database-migrationsSkill
- design-systemSkill
- docker-patternsSkill
- e2e-runbooksSkill
- e2e-testingSkill
- embedded-c-arduinoSkill
- frontend-designSkill
- g-code-3d-printingSkill
- github-opsSkill
- git-workflowSkill
- golang-patternsSkill
- hexagonal-architectureSkill
- home-assistantSkill
- java-coding-standardsSkill
- jetbrains-ide-opsSkill
- jira-integrationSkill
- keycloak-patternsSkill
- kicadSkill
- markdown-writerSkill
- mongodb-patternsSkill
- nextjs-app-router-patternsSkill
- node-backend-patternsSkill
- observability-and-loggingSkill
- obsidianSkill
- performance-optimizationSkill
- postgres-patternsSkill
- powershellSkill
- project-trackingSkill
- python-patternsSkill
- pytorch-patternsSkill
- react-patternsSkill
- researchSkill
- review-duplicationSkill
- security-reviewSkill
- seoSkill
- soap-webservicesSkill
- springboot-patternsSkill
- tdd-workflowSkill
- unitySkill
- web-accessibilitySkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
4
Distinctive
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 179
Every environment-varying value comes from an environment variable, and the process validates the whole set before it serves a request.
- Distinctive: line 209
Every release has a way back that someone has actually executed.
- Distinctive: line 225
Before a release, confirm all of it:
- Distinctive: line 237
Every production workload carries a non-root security context, a PodDisruptionBudget, a default-deny NetworkPolicy in its namespace, …
“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deployment Patterns
How a change reaches production without a surprise: a rollout strategy chosen on purpose, an explicit human gate in front of production, config validated before the process serves traffic, and a rollback that has been rehearsed. The pipeline is the control, not the documentation around it.
Baseline: GitHub Actions on ubuntu-latest, Kubernetes 1.34, and Helm 4 (both verified locally). Every GitHub
Action referenced here is pinned to its current major.
When to activate
- Setting up or reviewing a CI/CD pipeline.
- Choosing a rollout strategy, or adding a canary or blue-green path.
- Adding health checks, probes, or a readiness gate to a deployment.
- Handling environment configuration and validating it at startup.
- Planning or rehearsing a rollback.
- Preparing a service for its first production release.
When not to activate
- Writing the Dockerfile or the Compose file, use
docker-patterns. - Configuring the hosts underneath, use
ansible. - Instrumenting the application with logs, metrics, and traces, use
observability-and-logging. - Planning a schema change that has to survive the rollout, use
database-migrations. - Reviewing the application's own auth and input handling, use
security-review. - Secret scanning and dependency scanning inside the pipeline, use
security-review.
Choose the rollout strategy on purpose
| Strategy | How it works | Cost | Use when |
| Rolling | Replace instances in batches, both versions live during the rollout | Requires backward-compatible changes | The default, for a backward-compatible change |
| Blue-green | Two identical environments, traffic switched atomically | Double the infrastructure during the switch | Critical services where rollback must be instant |
| Canary | A small traffic share on the new version first, widened on healthy metrics | Traffic splitting plus real metric gating | High traffic, or a change you do not fully trust |
Pass, a rolling update that cannot take the service below capacity:
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1Fail:
strategy:
type: RecreateRolling means two versions run at once, so the change has to be backward compatible with the previous version and with the database schema it is running against. If it is not, the strategy is blue-green, not rolling.
Merging to main never deploys to production
A merge may build the image, deploy to staging, and run smoke tests automatically. Promotion to production is a
separate, explicitly approved step: a GitHub environment protection rule with required reviewers, or a manually
triggered workflow_dispatch run.
Pass:
deploy-production:
needs: smoke-test
environment: productionFail:
deploy-production:
needs: build
if: github.ref == 'refs/heads/main'The failing version has no gate at all. The passing version only gates once the production environment carries a
required-reviewer protection rule, so configure that rule and treat the environment: key as the hook into it.
The pipeline shape is: pull request runs lint, typecheck, unit tests, integration tests, and a preview deploy. Merge runs the same set plus image build, staging deploy, and smoke tests. Then the gate. Then production.
Build the image through docker-patterns
Image construction, base image pinning, the non-root user, and the Trivy, SBOM, and cosign supply-chain gate are
owned by docker-patterns and are not restated here. The pipeline's job is to invoke them and to fail on their
findings.
Pass:
trivy image --exit-code 1 --severity CRITICAL,HIGH "ghcr.io/org/app:${GITHUB_SHA}"Fail:
trivy image "ghcr.io/org/app:${GITHUB_SHA}" || trueLeast privilege in CI
Authenticate to a cloud provider with OIDC, never a stored long-lived key, and declare the minimum permissions on every job. A compromised third-party action inherits whatever the job holds.
Pass:
permissions:
contents: read
id-token: writeFail:
permissions: write-allThe full reference pipeline, the OIDC exchange, actionlint, failure notifications, matrix rules, and the canary
automation are in references/github-actions.md.
Health checks that answer different questions
Expose a liveness endpoint that touches nothing and a readiness endpoint that verifies dependencies, then wire three
probes to them. The paths are the ones api-design defines, /health and /ready, so use them rather than a local
variant. Pointing liveness at a dependency-checking endpoint turns a database blip into a cluster-wide restart storm.
Pass:
livenessProbe:
httpGet:
path: /health
port: 3000
readinessProbe:
httpGet:
path: /ready
port: 3000Fail:
livenessProbe:
httpGet:
path: /health/detailed
port: 3000This skill owns the probe manifests. Probe timings, the startupProbe, and what each one does to a pod are in
references/kubernetes.md. What the endpoints should report is owned by
observability-and-logging.
Configuration from the environment, validated at startup
Every environment-varying value comes from an environment variable, and the process validates the whole set before it serves a request. A missing or malformed value should kill the process at boot, not surface as a 500 an hour later.
Pass:
const envSchema = z.object({
NODE_ENV: z.enum(["development", "staging", "production"]),
PORT: z.coerce.number().default(3000),
DATABASE_URL: z.string().url(),
JWT_SECRET: z.string().min(32),
});
export const env = envSchema.parse(process.env);Fail:
const port = Number(process.env.PORT) || 3000;
const dbUrl = process.env.DATABASE_URL!;Secrets are injected by a secrets manager at runtime, never committed and never baked into an image.
Rollback is a rehearsed path
Every release has a way back that someone has actually executed. The pipeline owns it so it takes seconds and leaves a record.
Pass:
kubectl rollout undo deployment/appFail:
git revert HEAD && git pushReverting and rebuilding is not a rollback, it is another deployment with the same lead time as the one that broke. Before a release, confirm all of it:
- The previous image or artefact is still available and tagged.
- The database migration is backward compatible, with no destructive change, so the previous version still runs.
- New behaviour is behind a feature flag that can be turned off without a deploy.
- Alerts on error rate will fire before a user reports it.
- The rollback has been executed in staging, not just written down.
Kubernetes defaults
Every production workload carries a non-root security context, a PodDisruptionBudget, a default-deny NetworkPolicy in its namespace, resource requests and limits, and an HPA with a minimum of two replicas. Enforce them at admission with Kyverno or OPA Gatekeeper rather than at review time.
Pass:
securityContext:
runAsNonRoot: true
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop: [ALL]Fail:
securityContext: {}The manifests for each of those, plus Helm chart standards, are in references/kubernetes.md.
Reference files
| Open this | For |
| references/github-actions.md | The full reference pipeline, OIDC, job permissions, actionlint, failure alerts, matrix builds, and canary automation |
| references/kubernetes.md | Probes, pod security context, PDB, NetworkPolicy, HPA, ResourceQuota and LimitRange, ServiceMonitor, policy enforcement, and Helm |
| references/cloud-and-operations.md | IAM, network isolation, Terraform state, tagging, cost controls, audit posture, disaster recovery, and the production readiness checklist |
Related skills
docker-patternsfor the image this pipeline builds, scans, and signs.observability-and-loggingfor the health, metrics, and readiness signals the probes read.database-migrationsfor schema changes that must survive a rolling deployment.ansiblefor configuring the hosts under the cluster.security-reviewbefore a release touching auth, payments, or personal data.
Checklist
- The rollout strategy is chosen deliberately and the change is compatible with it.
- Nothing promotes to production without an explicit approval gate.
- The image is built, scanned, and signed through
docker-patterns, and the pipeline fails on findings. - Cloud authentication uses OIDC, no long-lived key in CI secrets.
- Every job declares minimum permissions, no
write-all. - Liveness and readiness are separate endpoints, liveness touches no dependency.
- All configuration comes from the environment and is validated at startup.
- Secrets are injected at runtime by a secrets manager.
- The rollback path has been executed in staging.
- Migrations in the release are backward compatible with the previous version.
- Production workloads carry a security context, a PDB, a NetworkPolicy, limits, and an HPA.
- The production readiness checklist in the cloud reference has been walked.
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.

