The pre-merge review kit for Claude Code
The short version
Writing code stopped being the slow part. Checking it is the slow part now. Anthropic's managed Code Review does that check for you in three steps: it finds problems, verifies each one against your code, then leaves a comment on the exact line. But it is only on Team and Enterprise, and every review is billed on top of the plan.
You can get most of the same habit on any plan. Run a review inside Claude Code before you merge, and give it a short set of rules in your CLAUDE.md so it checks what actually breaks your app instead of nitpicking style.
Copy these prompts
Paste them into Claude Code in this order, on the branch you are about to merge.
1. Find
Review every change on this branch against main. Read the changed files and the code that calls them, not just the diff. List every real problem you find: bugs, missing error handling, data that could be lost, and anything a user could trigger by accident. For each one, name the file and line.
2. Verify
Go back through that list one item at a time. For each finding, show me the exact code path that triggers it, using the real code. If you cannot show a path that actually reaches the problem, mark it as a false alarm and drop it. Give me only what survives.
3. Comment on the line
For each finding that survived, write it the way a reviewer would leave it on the line: what the problem is, what input or action triggers it, and the smallest fix. Then ask me before changing anything.
Why three steps and not one
A single "review my code" prompt returns a long list, and most of it is noise: style opinions, hypothetical problems, things that cannot happen given how the code is called. Founders learn to ignore the list, and then they ignore the one item that mattered.
Splitting it the way the managed review does fixes that:
- Find casts a wide net, and it reads the surrounding code. A change that looks fine on its own often breaks a caller two files away.
- Verify is the filter. Asking for the concrete path that triggers each finding throws out false alarms, because a model that has to point at real code cannot hand-wave.
- Comment makes each survivor actionable: problem, trigger, fix. If you cannot say what triggers it, it is not a finding yet.
The managed version versus doing it yourself
| Managed Code Review | Review in Claude Code | |
|---|---|---|
| Plans | Team and Enterprise | Any plan |
| Cost | Billed per review, on top of the plan | Your normal usage |
| Where it runs | On the pull request, automatically | In your terminal, when you ask |
| Comments | Posted on the PR lines | In the chat, you decide what to fix |
If you are a solo founder shipping from one branch, the second column is enough. The habit matters more than the tooling: nothing merges until it has been read by something other than the agent that wrote it.
Paste these rules into your CLAUDE.md
## Code review rules
- Before any merge, review the branch against main: find, verify, then report.
- Read the callers of every changed function, not just the diff.
- A finding needs a concrete trigger in the real code. No trigger, no finding.
- Flag in this order: data loss, security, money, crashes, wrong results. Style last, or not at all.
- Never fix during review. Report, then wait for me to say go.
- Check that error paths are handled: network down, empty input, duplicate submit.
- If a change touches payments, auth or deletes, say so at the top of the review.
Steal this for your app
- Make "reviewed before merge" a rule, not a mood. Put it in CLAUDE.md so the agent brings it up.
- Review in a fresh session. The session that wrote the code is the worst one to check it.
- Keep a short list of the bugs that actually reached users, and add each one as a review rule.
Run this on your codebase
Read my CLAUDE.md and the last ten merged changes in this repo. Tell me which kinds of bugs got through, and write three review rules for my CLAUDE.md that would have caught them. Keep each rule to one line.