Migration Runbook

A step-by-step runbook for a data or system migration, including rollback and verification.

Advanced · Works with ChatGPT, Claude, Gemini, Copilot

The prompt

Write a step-by-step runbook for this migration, with a verification check and a rollback step after each risky action.

Name the part you're least confident about and what evidence during the migration would confirm or contradict it, and call out where the design would hurt if the data volume doubled.

Migration to plan:
{{CODE}}

Environment and constraints:
{{STACK}}

Why this prompt works

Pairing every step with a rollback keeps the runbook usable under pressure, when there's no time to improvise a way back.

How to customize it

  • Test the rollback steps in staging before trusting them in production.
  • Keep steps small enough that a failure points to exactly one cause.

Common mistakes

  • Skipping rollback for steps that seem safe — those are often where the surprises happen.
  • Running the whole migration as one step instead of the planned increments.

Example

Input

Migration to plan: Moving user auth from a self-hosted table to a managed identity provider

What a good answer looks like

Numbered steps each with an action, a verification check, and a rollback.

Make this prompt fit your work

ModelCoach.ai scores your version, shows what to improve and explains why, right inside ChatGPT, Claude, Gemini and Copilot.

Related prompts