Task prompt · Coding
Plan a big refactor in safe steps
by Agent Yard TeamBreak a scary change into small, shippable pull requests.
Use cases
- Break a scary change into small, shippable pull requests.
- Reuse it as often as you like: fill in the blanks (refactor goal, e.g. move from rest to trpc) with new details and copy again.
- With Cursor, Claude Code, Codex and more, the AIs that support what this prompt needs.
Featured in: Best Claude prompts for coding.
How to use it
- Open Cursor or Claude Code in your terminal (or another AI listed here).
- Fill in the highlighted blank ([REFACTOR GOAL, E.G. MOVE FROM REST TO TRPC]) below, or edit them after pasting.
- Copy the prompt, paste it into the chat and send.
Fill in the blanks (optional)
Prompt
I want to [REFACTOR GOAL, E.G. MOVE FROM REST TO TRPC] in this codebase. Read the relevant code and propose a migration plan as a sequence of small pull requests. Each PR: goal, files touched, how to test it, and how to roll it back. Keep the app working after every PR. Call out the riskiest step and how to de-risk it.
One email a week
The Weekly is presented byyour brandSponsored · openThe best new prompts and personas, nothing else.