blue-green-deployment
Installation
SKILL.md
Blue-Green Deployment
Use this skill when
- Deploying with a full parallel environment for rollback
- Zero-downtime releases of the same schema/service
- Canary-free when the app is simple to dual-run
Do not use this skill when
- Schema migrations break the old version (use expansion pattern)
- You need gradual traffic shifts (use canary-deployment)
Instructions
- Maintain two identical environments: blue (live), green (new).
- Deploy to inactive, verify gates, then switch traffic atomically.
- Keep rollback as a pointer flip; verify both directions.
- Handle data compatibility: old/new code sharing a schema.
- Flip at a level that is safe (LB/router, DB read/write views).
- Execute periodically to keep the inactive env current.