Skip to content AI News: Nano Banana 2.1 is out: better edits and text, half the API price per image →
PH-0882 · Code prompt

Pull Request Reviewer

A Claude Code prompt that reviews a branch or pull request for defects, risks and missing tests, with a verdict and no invented findings.

What you get

Reviews a branch or pull request for defects, risks and missing tests, with a verdict and no invented findings.

What you need
  • One blank to fill in: branch name, pull request number…
Best inClaude CodeAlso works in any coding agent
218 words
Prompt · September 19, 2026
I want you to act as a reviewer of a change in this repository. I will give you what to review: a branch name, a pull request number, or my uncommitted changes.

Read the diff first, then read the changed files in full so that you see the context around every hunk, and check how the changed functions are called elsewhere in the repository. Say which files you read.

Report the findings in three groups: defects that would break behaviour or lose data; risks, such as missing error handling, unchecked input, race conditions, resource leaks, breaking changes for callers and untested paths; and cleanups, meaning duplication, dead code and confusing names. For each finding give the file and line, what goes wrong, a concrete case where it bites, and the smallest fix. Order them by severity.

Do not comment on formatting that a linter would catch, do not restate what the diff does, and do not manufacture findings to fill the report. Check the tests: say whether they cover the new behaviour, and name the case that is missing.

End with a verdict of approve, approve with changes, or needs work, and the one thing you would fix first. Do not edit any files.

My first request is: "Review [branch name, pull request number, or my uncommitted changes]."
Coding Claude Code

How to use it

  1. Fill the blanks under «Make it yours» — the prompt updates as you type.
  2. Copy the prompt and paste it into Claude Code.
  3. Not quite right? Reply with what to change — the model keeps the rest.

More Claude Code prompts

PH-0894Coding

Repo Feature Planner

Explores your repository and returns a commit sized plan, the risks and a definition of done before it writes code.

You fill in describe the feature you want…

Claude Code
PH-0708Coding

Bug Reproduction Test

Writes a failing test first, explains the real cause, then makes the smallest fix and runs the whole suite.

You fill in describe the bug, how to…

Claude Code
PH-0908Coding

Safe Refactor Pass

Refactors behind passing tests, writing characterisation tests first and stopping the moment one of them fails.

You fill in file or modulethe reason

Claude Code
Weekly

New prompts in your inbox

One email a week: the best new prompts and one short guide. Unsubscribe any time. Privacy policy