Claude refactor & code-review prompt
Built for Claude's careful reasoning — it plans before it edits, refactors in stages, and explains each change so nothing breaks silently.
Paste your code into Claude (strong at careful, staged reasoning): 'You are a meticulous senior engineer. Here is my [LANGUAGE] code: [PASTE CODE]. Goal: [refactor for readability / fix this bug / add this feature: ...]. First, show me your PLAN as a short numbered list — do not write code yet. Wait for me to confirm. Then implement it in stages, explaining what each change does and why. Preserve existing behavior unless I say otherwise, and call out anything risky or any assumption you're making.' Tips: the 'plan first, then wait' step catches wrong turns before they cost you; paste your tests too and add 'keep all tests passing.'
- Source
- promptfork seed
- License
- CC-BY-4.0
- Published
- 6/22/2026