Chain a refactor plan into staged migration
Turn a structural plan into steps that each keep the system working.
What this prompt helps you do
Stages with scope, verification, and a rollback point, each preserving behaviour independently.
When to use it
A refactor is large and needs to proceed without a long-lived branch.
What to prepare
The goal, relevant source material, constraints, examples, and the decision or action this should support.
How to get a strong result
Every stage must be shippable; a sequence that only works at the end is one large risky commit.
How to use this prompt
Replace each placeholder with accurate context. Paste the complete prompt into Claude, review the response critically, resolve important questions, and use it as a considered input to the next decision—not as an unchecked final answer.