1---2name: devops-rollout-plan-23description: Generate production-ready DevOps rollout plans for infrastructure, application, configuration, and data changes, including preflight checks, phased deployment, verification signals, rollback procedures, communication plan, contingency handling, and post-deployment tasks. Use when the user asks for a rollout plan, deployment plan, release plan, production change plan, or go/no-go checklist.4---56# DevOps rollout plan78Create a comprehensive step-by-step rollout plan that turns a proposed infrastructure or application change into a preflighted, observable, reversible production deployment with communication, rollback, and contingency paths.910## When to invoke1112- "Generate a rollout plan for this deployment."13- "Create a production change plan."14- "Write preflight checks, rollout steps, verification, and rollback."15- "Plan this Kubernetes, VM, serverless, or container release."16- "Prepare a go/no-go checklist for an infrastructure change."1718## Inputs1920Use `$ARGUMENTS` as the change description, environment, or target system when provided. If details are missing, collect enough to avoid a generic plan.2122| Input group | Required details |23| --- | --- |24| Change Description | What's changing: infrastructure, application, configuration; version or state transition from/to; problem solved or feature added. |25| Environment Details | Target environment: dev, staging, production, all; infrastructure type: Kubernetes, VMs, serverless, containers; affected services and dependencies; current capacity and scale. |26| Constraints & Requirements | Acceptable downtime window, change window restrictions, approval requirements, regulatory or compliance considerations. |27| Risk Assessment | Blast radius, data migrations or schema changes, rollback complexity and safety, known risks. |2829## Rollout structure3031| Section | Required content |32| --- | --- |33| Executive Summary | What, why, when, duration, risk level, rollback time, affected systems, user impact, expected downtime. |34| Prerequisites & Approvals | Technical lead, security, compliance, business approvals; resources, capacity, backups, monitoring, rollback automation; pre-deployment backups. |35| Preflight Checks | Infrastructure health, application health baseline, dependencies, monitoring baseline metrics, go/no-go checklist. |36| Step-by-Step Rollout Procedure | Phases for pre-deployment, deployment, progressive verification; specific commands, validation after each step, duration estimates. |37| Verification Signals | Immediate, short-term, medium-term, and long-term checks. |38| Rollback Procedure | Decision criteria, automated or manual rollback steps, infrastructure revert or full restore, post-rollback verification, stakeholder notification. |39| Communication Plan | T-24h notice, deployment start, periodic progress updates, completion, rollback notice. |40| Post-Deployment Tasks | Immediate 1h, short-term 24h, medium-term 1 week review and lessons learned. |41| Contingency Plans | Partial failure, performance degradation, data inconsistency, dependency failure. |42| Contact Information | Primary and secondary on-call, escalation path, emergency contacts for infrastructure, security, database, networking. |4344## Verification windows4546| Window | Time | Signals |47| --- | --- | --- |48| Immediate | 0-2 min | Deployment success, pods/containers started, health checks passing. |49| Short-term | 2-5 min | Application responding, error rates acceptable, latency normal. |50| Medium-term | 5-15 min | Sustained metrics, stable connections, integrations working. |51| Long-term | 15+ min | No degradation, capacity healthy, business metrics normal. |5253## Customization rules5455| Dimension | Adaptation |56| --- | --- |57| Infrastructure Type | Kubernetes plans include pods, rollout status, readiness/liveness probes, node capacity; VMs include image/version, service restart, health endpoint; serverless includes function versions, aliases, cold start, trigger health; databases include backups, migrations, locks, replication lag. |58| Risk Level | Low risk gets simplified gates; medium risk gets standard preflight, canary, rollback; high risk gets additional approvals, dry run, checkpoint, and explicit abort criteria. |59| Change Type | Code deployment, infrastructure, configuration, and data migration need different validation and rollback mechanics. |60| Environment | Production uses the full plan; staging can be simplified; development is minimal but still verifies success. |6162## Rollout principles6364- Always have a tested rollback plan.65- Communicate early and often.66- Monitor metrics, not just logs.67- Document everything.68- Learn from each deployment.69- Never deploy on Friday afternoon unless the change is critical.70- Never skip verification steps.71- Never assume "it should work".7273## Output template7475```markdown76# Rollout Plan: <change name>7778## 1. Executive Summary79- What: <change>80- Why: <reason>81- When: <window>82- Duration: <estimate>83- Risk level: low | medium | high84- Rollback time: <estimate>85- Affected systems: <systems>86- User impact / expected downtime: <impact>8788## 2. Prerequisites & Approvals89| Requirement | Owner | Status |90| --- | --- | --- |91| Technical lead approval | <name> | pending |9293## 3. Preflight Checks94- [ ] Infrastructure health baseline captured.95- [ ] Application health baseline captured.96- [ ] Dependencies available.97- [ ] Monitoring baseline metrics captured.98- [ ] Go/no-go decision recorded.99100## 4. Step-by-Step Rollout Procedure101| Phase | Step | Command/action | Validation | Duration |102| --- | --- | --- | --- | --- |103| Pre-deployment | <step> | `<command>` | <signal> | <time> |104105## 5. Verification Signals106| Window | Signals | Pass criteria |107| --- | --- | --- |108| Immediate (0-2 min) | deployment, pods/containers, health checks | <criteria> |109| Short-term (2-5 min) | response, error rate, latency | <criteria> |110| Medium-term (5-15 min) | sustained metrics, connections, integrations | <criteria> |111| Long-term (15+ min) | degradation, capacity, business metrics | <criteria> |112113## 6. Rollback Procedure114**Decision criteria:** <when to rollback>115**Steps:** <automated/infrastructure/full restore steps>116**Post-rollback verification:** <checks>117**Communication:** <notification>118119## 7. Communication Plan120| Time | Audience | Channel | Message |121| --- | --- | --- | --- |122| T-24h | <stakeholders> | <channel> | <notice> |123124## 8. Post-Deployment Tasks125- Immediate (1h): <tasks>126- Short-term (24h): <tasks>127- Medium-term (1 week): <tasks>128129## 9. Contingency Plans130| Scenario | Symptoms | Response | Timeline |131| --- | --- | --- | --- |132| Partial failure | <symptoms> | <response> | <time> |133134## 10. Contact Information135| Role | Primary | Secondary | Escalation |136| --- | --- | --- | --- |137| On-call | <person> | <person> | <path> |138```139140## Quality gate141142- [ ] Change description, environment, constraints, and risk assessment are captured.143- [ ] The plan includes all ten sections from Executive Summary through Contact Information.144- [ ] Preflight checks include infrastructure, application, dependencies, monitoring, and go/no-go.145- [ ] Rollout steps include commands/actions, validation after each step, and duration estimates.146- [ ] Verification signals cover 0-2 min, 2-5 min, 5-15 min, and 15+ min windows.147- [ ] Rollback has decision criteria, steps, post-rollback verification, and communication.148- [ ] Communication includes T-24h, deployment start, progress updates, completion, and rollback notices.149- [ ] Contingencies cover partial failure, performance degradation, data inconsistency, and dependency failure.