Troiana Prompt Library · Claude · Development

Migrate a codebase pattern file by file

Drive a repetitive migration with verification at each step instead of one large unreviewable change.

What this prompt helps you do

A staged migration with per-file changes, a verification step between each, and a clean rollback point.

When to use it

A pattern change affects many files and a single sweeping commit would be unreviewable.

What to prepare

The goal, relevant source material, constraints, examples, and the decision or action this should support.

How to get a strong result

Verify after each file rather than at the end; a migration that fails at file 40 should not lose the first 39.

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.

Browse all ChatGPT, Claude, and Codex prompts