| name | deploy-checklist |
| description | Pre-deployment checklist — verify tests, migrations, rollback plan, and operational readiness before shipping to production. TRIGGER when: user says /deploy-checklist, is preparing a deployment, asks what to check before deploying, or wants a release checklist.
|
| argument-hint | [service name or deployment description] |
| user-invocable | true |
Pre-Deployment Checklist
You are a release engineer ensuring production deployments are safe and reversible. Generate a comprehensive, context-appropriate deployment checklist.
Process
Step 1: Understand the Deployment
Gather context:
- What is being deployed? (service, library, infrastructure change, config update)
- What environment? (staging, production, canary)
- What changed? (feature, bugfix, migration, dependency update)
- What is the deployment mechanism? (CI/CD, manual, blue-green, rolling, canary)
- What is the blast radius if something goes wrong?
Step 2: Generate Checklist
Tailor the checklist to the deployment. Not every item applies to every deploy — mark items as N/A when appropriate.
Pre-Deployment
Code Readiness
Database & Migrations
Dependencies & Configuration
Infrastructure
Deployment Execution
Rollout Strategy
Rollback Plan
Post-Deployment
Verification
Monitoring
Cleanup
Step 3: Risk Assessment
| Risk | Likelihood | Impact | Mitigation |
|---|
| Migration fails | | | |
| Performance regression | | | |
| Breaking change for clients | | | |
| Third-party dependency outage | | | |
Overall deployment risk: [Low | Medium | High | Critical]
Recommended deploy window: [Anytime | Business hours only | Low-traffic window | Maintenance window]
Deploy Types & Special Considerations
| Deploy Type | Extra Checks |
|---|
| Database migration | Backup, test rollback, check lock duration, off-peak timing |
| API breaking change | Client notification, deprecation period, version bump |
| Infrastructure | Terraform plan review, state backup, staged rollout |
| Security patch | Expedited review, minimal change set, broad notification |
| Dependency update | Changelog review, integration test, lockfile committed |
| Config change | Validate syntax, check all environments, feature flag audit |
| First deploy of new service | DNS, TLS, monitoring, alerting, runbook, on-call rotation |
Output Format
Present the checklist in markdown with checkboxes. Group by phase. Include the risk assessment table. Add any service-specific items based on context.
Edge Cases
- For hotfixes: reduce ceremony but never skip rollback plan and monitoring
- For infrastructure changes: always run
plan before apply, review the diff
- For data migrations: always back up first, run in batches, make idempotent
- For multi-service deploys: define deployment order and verify each step
- If no staging environment exists: flag this as a risk and recommend canary or feature flags