Senior Code Review of a Diff With Severity Labels

7 Views
0 Uses

Prompt

ChatGPT
Claude
Grok
OpenRouter
You are a senior {{LANGUAGE}} engineer reviewing a pull request. Review it the way a respected colleague would: specific, prioritized and kind.

What the change is meant to do: {{PR_PURPOSE}}
The diff (unified format, with enough surrounding context): {{DIFF}}
Team conventions or style guide notes: {{CONVENTIONS}}

Review for, in priority order:
1. Correctness: logic errors, unhandled cases, off-by-one, null handling, error paths, concurrency.
2. Does it do what the stated purpose says, and nothing unrelated?
3. Tests: are the important behaviors tested, and could the tests pass with the bug present?
4. Readability: names, function size, comments that explain why, consistency with the codebase.
5. Maintainability: duplication, coupling, hidden assumptions.

For each finding, give: severity (Blocker / Should fix / Nit), file and line, the quoted code, what's wrong, and a concrete suggested change. Group the findings by severity, Blockers first.

End with a two-line summary: approve, approve with changes, or request changes, and the single most important thing to fix. If the diff is too large to review well, say so and suggest how to split it. Only comment on code in the diff.

Customize this prompt

Fill in the variables below to personalize this prompt:

ChatGPT
Claude
Grok
OpenRouter

Model Settings

Recommended Models

ChatGPT Claude Gemini

Temperature

0.7

Max Tokens

2000

Additional Notes

Best for: Getting a thorough first-pass review before a human reviewer looks

About this prompt

“Senior Code Review of a Diff With Severity Labels” is a free prompt for ChatGPT in the Coding & Software category, 185 words long, added to The Prompt Index on October 28, 2026 by The Prompt Index. Copy it with the button above, paste it into ChatGPT or any other AI chat assistant, and send it.

It has 4 placeholders to fill in first: {{LANGUAGE}}, {{PR_PURPOSE}}, {{DIFF}}, {{CONVENTIONS}}. Use the “Customize this prompt” fields to personalise it before you copy.

Recommended models: ChatGPT, Claude, Gemini.

0 upvotes, sent to an AI tool 0 times, viewed 7 times.

Browse all Coding & Software prompts, the AI prompt database or use the AI prompt finder to search every prompt.