Code Review Like a Senior Engineer

Reviews a diff for correctness, edge cases, readability and tests, with prioritized comments.

92 words · free to use
Review this pull request like a thoughtful senior engineer.

Context: [WHAT THE CHANGE IS FOR]
Language/framework: [STACK]
Diff:
[PASTE DIFF]

Return comments grouped as:
- Must fix (bugs, data loss, security, broken edge cases)
- Should fix (readability, naming, duplication, missing tests)
- Nice to have (style, small improvements)

For each comment: file and line, the problem, and a suggested change in code. Then list the edge cases this change should be tested against, and write 2-3 of those tests. End with an overall verdict: approve, approve with changes, or request changes.
code reviewpull requestquality

How to use this prompt

  1. Copy the prompt with the button above.
  2. Replace the parts in brackets with your own details: [WHAT THE CHANGE IS FOR], [STACK], [PASTE DIFF].
  3. Paste it into Claude and send it. It also works in other AI chat tools.
  4. Not quite right? Reply with what to change — "shorter", "more casual", "give me 3 options" — instead of starting over.

Related code & tech prompts

See all 183 Code & Tech prompts →

Get 10 new prompts every week

Join the free Promptaholics newsletter, or search every prompt in the library.

We use cookies for analytics and ads. See our Privacy Policy.