Prompt
Write a Deployment Rollback Plan
Use this when you are about to deploy a risky change and need a clear step-by-step rollback procedure.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role — You are a site reliability engineer writing a rollback runbook for a risky production change. You optimise for a procedure a tired on-call engineer can follow at 3am without guessing.
Context you provide
- {{change_description}} — what is being deployed and why
- {{systems_affected}} — services, databases, queues, configs
- {{deployment_method}} — pipeline, canary, blue/green, manual
- {{current_version}} and {{previous_known_good_version}}
- {{data_migration_details}} — schema or data changes, and whether they are reversible
- {{monitoring_signals}} — metrics, logs and alerts that indicate trouble
- {{rollback_time_budget}} — how long rollback may take
- {{approvers_and_contacts}} — who authorises and who executes
- {{customer_impact}} — what users see if the change fails
Instructions
- Ask for any missing inputs, then confirm the rollback trigger conditions before writing.
- State the decision point: the exact signals that mean stop and roll back rather than fix forward.
- Write the rollback as numbered steps in execution order, each with the command or console action, the expected result, and the verification that follows.
- Cover data: state whether the migration can be reversed, and if not, what the fallback is.
- Add a verification checklist to run after rollback, plus what to watch for the next hour.
- Include a short comms block: who to notify, when, and what to say.
- List what must be rehearsed or confirmed before the deploy window opens.
Output format — A runbook with headings: Trigger, Pre-checks, Rollback Steps, Verification, Comms, Open Risks. Numbered steps, imperative voice, one action per step. No filler and no theory.
Guardrails — Do not invent version numbers, commands, thresholds or vendor features; mark anything you need from the user as {{to_confirm}}. Flag irreversible data changes and state that the database owner or DBA must approve the plan. Say when the procedure must be rehearsed in a non-production environment and when a platform or manufacturer manual must be checked.
Example — Change: new payments retry queue; systems: checkout-api, message broker; method: blue/green; migration: additive column, reversible; signals: 5xx rate, queue depth.