Code review of a diff
Find bugs, edge cases and risky changes in a diff, ranked by severity, with suggested fixes.
- Works with
- Claude, ChatGPT, Gemini
- Level
- Intermediate
- Updated
- 2026-10-21
What you need
- The diff or changed files
- What the change should do
- The language and framework
When to use
Before merging your own change, or when you need a second pair of eyes and nobody is available.
Review this change.
What it should do: [INTENT OF THE CHANGE]
Language and framework: [E.G. PYTHON 3.12, FASTAPI]
Constraints: [PERFORMANCE, BACKWARD COMPATIBILITY, SECURITY RULES]
Diff:
[PASTE]
Report, ordered by severity (blocker, should fix, nit):
- Bugs and logic errors, with the line and a concrete input that breaks it.
- Missing edge cases: empty input, nulls, large input, concurrency, time zones, encoding.
- Security issues: injection, secrets, unsafe deserialisation, missing auth checks.
- Behaviour changes not mentioned in the intent.
- Tests that should exist, as test names with one-line descriptions.
For each finding, give a short suggested fix. Don't restyle code that works; skip formatting comments unless they hide a bug.
Fill in the [BRACKETS] with your own facts. "Download as skill" gives you a ZIP you can upload to Claude or copy into Codex, so the prompt loads itself next time.
Why it works
Asking for a breaking input per bug forces concrete findings instead of vague "consider error handling" notes.
Check the output
- Try the breaking inputs. A finding you can't reproduce is a guess.
Variations
- Add your team's style guide and ask for violations only in a separate list.