Example result: Review a pull request diff before you merge
AI-generated example · PR Review
Prompt at a glance
Category
Text & chat
Works with
Claude · ChatGPT · Claude Code
Length
90 words
Fields to fill
GOAL, PASTE git diff OR THE CHANGED FILES
Last updated

Review a pull request diff before you merge

This prompt reviews only what changed in a pull request, like a careful senior teammate. It flags bugs, security problems and missing tests with file and line, and skips the style nitpicks a linter would catch.

text-code-pr-diff-review — claude — 90 words

Act as a careful senior reviewer on my team.

What this PR is meant to do: [GOAL, e.g. add password reset by email]
Diff:
[PASTE git diff OR THE CHANGED FILES]

Review only what changed. Look for bugs, missed edge cases, security problems, breaking changes, missing tests and confusing names. List findings as blocking or non-blocking, each with the file and line, why it matters, and a suggested fix. If the PR does something it did not mean to do, call it out. Skip style nitpicks a linter would catch.

In Claude Code you can just say "review my staged changes" and it reads the diff itself.

How to use this prompt

From copy to answer in four steps

  1. 1

    Open Claude and start a new chat.

  2. 2

    Paste the prompt.

  3. 3

    Replace each [BRACKETED] field with your real details and paste in your own text where asked.

  4. 4

    Reply with follow-ups such as "make it shorter" or "make it sound more like me".

FAQ

About this prompt

Which AI tools work with this prompt?

It is written for Claude, ChatGPT and Claude Code. Paste it into your preferred tool and adjust the wording if the result is off.

What do I need to fill in?

Replace these fields before you send it: GOAL, PASTE git diff OR THE CHANGED FILES. Each field shows an example in the prompt.

Should I paste private information into the prompt?

Only what the task needs. Remove names, contact details and other sensitive data before pasting a resume or document into any AI tool.

Keep exploring

More chat & writing prompts

See all 424 chat & writing prompts →