PromptFork

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.

Open in Studio
Prompt
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

More prompts you might like

Editor’s pickChatGPT & AI PromptsSeed

Claude long-document analyst prompt

Claude reads a long doc fully, then returns an exec summary, a decisions/risks table, contradictions, and a grounded answer. Built for its long-context reasoning.

New

Claude line editor (keep your voice)

Claude is a superb editor — it tightens your writing sentence by sentence, keeps your voice, and shows what changed and why.

New

Claude decision & strategy analyst

Uses Claude's reasoning to pressure-test a decision — steelman each option, surface second-order effects, and give a clear recommendation.

New

Claude: meeting notes to action items

Paste a messy transcript or notes; Claude returns a clean summary, a decisions/owners/dates table, and the open questions — nothing invented.

New

Direct expert — answers with zero fluff

Turn any assistant into a decisive, no-padding expert. Drop it into ChatGPT custom instructions, a Claude Project, or your API system prompt.

New

Senior engineer for AI coding tools

Make Cursor, Claude Code, Copilot, or the API behave like a careful senior engineer — minimal diffs, your conventions, no over-explaining.

New