deployment-strategy
Skill2 starsChanged 6 months agoMITView on GitHub
Deploy with rollback plans, staged rollouts, and feature flags
In this repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibility-engineeringSkill
- agent-orchestrationSkill
- ai-ml-engineeringSkill
- api-and-interface-designSkill
- architecture-designSkill
- backend-engineeringSkill
- ci-cd-and-automationSkill
- code-review-and-qualitySkill
- code-simplificationSkill
- context-engineeringSkill
- database-designSkill
- data-pipeline-engineeringSkill
- debugging-and-error-recoverySkill
- documentation-and-adrsSkill
- doubt-driven-developmentSkill
- frontend-engineeringSkill
- git-workflow-and-versioningSkill
- idea-refineSkill
- incident-responseSkill
- incremental-implementationSkill
- infrastructure-as-codeSkill
- llm-evaluationSkill
- microservices-designSkill
- mobile-developmentSkill
- observability-and-monitoringSkill
- performance-optimizationSkill
- planning-and-task-breakdownSkill
- prompt-engineeringSkill
- rag-system-designSkill
- requirements-analysisSkill
- risk-assessmentSkill
- security-and-hardeningSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- test-driven-developmentSkill
- using-agent-skillsSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
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 14
Before every production deployment
- Distinctive: line 15
When designing a deployment pipeline
- Distinctive: line 16
When a deployment caused a production incident
- Distinctive: line 22
Before deploying, document how to roll back.
- Distinctive: line 27
Never: 0% → 100% for anything that touches user-visible behavior.
- Distinctive: line 38
Before deploying: what metrics must hold for the deployment to be considered successful?
- Distinctive: line 41
No new error types in logs
- Distinctive: line 45
After deploying to a stage: wait before expanding.
- Distinctive: line 55
Never delete a column in the same release that stops using it
- Distinctive: line 56
Test rollback of the migration
- Distinctive: line 62
After a deployment: watch the golden signals for 24 hours.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Overview
Deployments fail. The question is not whether, but whether you can recover quickly. This skill makes deployments reversible, observable, and gradual.
When to Use
- Before every production deployment
- When designing a deployment pipeline
- When a deployment caused a production incident
- As part of the
/shipworkflow
Process
Step 1: Write the rollback procedure first
Before deploying, document how to roll back. If you can't write the rollback procedure, you're not ready to deploy.
Step 2: Define the rollout stages
1% → 10% → 50% → 100% for high-risk changes. 10% → 100% for low-risk changes. Never: 0% → 100% for anything that touches user-visible behavior.
Step 3: Choose a deployment strategy
- Blue/green: spin up new environment, switch traffic, keep old environment warm for rollback
- Canary: route a percentage of traffic to new version, measure, expand
- Feature flags: deploy code dark, flip flag to enable for users
- Rolling: replace instances one by one, abort if errors spike
Choose based on: how reversible is the change? How quickly can you detect problems?
Step 4: Define the deployment success criteria
Before deploying: what metrics must hold for the deployment to be considered successful?
- Error rate stays below X%
- p99 latency stays below Y ms
- No new error types in logs
- Key business metric (signups, orders) not regressing
Step 5: Bake time
After deploying to a stage: wait before expanding. Minimum bake time:
- 1% stage: 15 minutes
- 10% stage: 1 hour
- 50% stage: 4 hours
High-risk changes need longer bake times.
Step 6: Database migrations
- Migrations must be backward compatible (old code + new schema must work)
- Deploy migration before new code; keep old code running
- Never delete a column in the same release that stops using it
- Test rollback of the migration
Step 7: Automate the deployment gate
Success criteria from Step 4 must be checked automatically. If they fail, the deployment halts. Not: "someone watches the dashboard." Automatic.
Step 8: Post-deployment monitoring
After a deployment: watch the golden signals for 24 hours. Document any anomalies.
Anti-Rationalizations
"It's a small change - we can deploy to 100%" "Small" changes cause production incidents. All production changes go through staged rollout.
"We can roll back if there's a problem" "Can roll back" means the rollback procedure is written, tested, and can be executed in under 5 minutes. Otherwise, you don't have a rollback plan; you have a hope.
Verification Requirements
- Rollback procedure written before deployment starts
- Deployment stages defined (not 0% → 100%)
- Success criteria defined and automated
- Bake time defined at each stage
- Database migrations are backward compatible
- Post-deployment monitoring planned
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.

