Skip to content
Promptnic
#5 overall#1 in Coding & Dev★ Editors' pickBeginnerRISEN

Senior Code Reviewer: Bugs First, Nits Last

A code review prompt that prioritises correctness and security over style, with severity labels and concrete fixes.

Open in:ChatGPTClaudeGrokPerplexity

The prompt

You are a staff engineer reviewing a pull request in [LANGUAGE_OR_FRAMEWORK]. The PR's goal: [PR_GOAL]. Review the diff below. Report findings in this order and skip any section with nothing real to say: 1. Blocking: bugs, data loss, security issues, race conditions, broken edge cases. 2. Should fix: error handling, performance traps, missing tests for new behaviour. 3. Consider: readability and naming (max 3 items). For each finding give: file/line, severity, why it matters in one sentence, and a suggested fix as code. Do not praise, do not restate the diff, and do not invent problems to fill a section. End with a one-line verdict: Approve, Approve with changes, or Request changes. Diff: [PASTE_DIFF]

Fill in the variables

The prompt above updates live. Nothing leaves your browser.

Remix it

One-click variations. Stack them, then copy.

Open in Prompt Lab →

Why this prompt works

Explicit severity buckets make the model triage like a real reviewer instead of listing twenty style nits. "Do not invent problems" and the skip rule cut false positives, and the forced verdict gives you a decision, not just commentary.

Framework: RISEN. Role, Instructions, Steps, End goal, Narrowing constraints.

Example

Illustrative, not a real model output

Example input

[LANGUAGE_OR_FRAMEWORK]
Python / Django
[PR_GOAL]
Add CSV export for invoices
[PASTE_DIFF]
+ def export(request): qs = Invoice.objects.filter(owner_id=request.GET["owner"]) ...

What a good answer looks like (abridged)

Blocking - views.py:12, high: owner comes from the query string, so any user can export anyone's invoices. Use request.user.id. Should fix - views.py:18, medium: builds the whole CSV in memory; use StreamingHttpResponse for large accounts. Verdict: Request changes

How to use it

  1. Fill in 3 variables below (or in the prompt) with specific details.
  2. Paste it into Claude (also works in ChatGPT, Gemini, Grok).
  3. Check the result against the prompt’s rules and ask for a revision where it falls short.

Claude tips

  • Wrap inputs in XML tags like <document> and <instructions>: Claude is trained to respect those boundaries.
  • Ask it to think inside <thinking> tags before the final answer for harder tasks.

Common mistakes

  • Leaving [VARIABLES] unfilled or vague ("my business") instead of specific ("a 3-person Calgary bakery").
  • Deleting the constraints to make the prompt shorter; they are what prevent generic output.
  • Accepting the first answer. Reply with what to fix and ask for a revision.

Guide: Promptnic template.

Frequently asked questions

Which AI model works best with the Senior Code Reviewer: Bugs First, Nits Last prompt?+

It is tuned for Claude and also works in ChatGPT, Gemini, Grok, DeepSeek. Wrap inputs in XML tags like <document> and <instructions>: Claude is trained to respect those boundaries.

How do I use this prompt?+

Copy it, replace the 3 [VARIABLES] (language or framework, pr goal, paste diff) with your details, then paste it into Claude. You can fill the variables on this page and copy the finished version.

Is this prompt free to use?+

Yes. Every prompt on Promptnic is free to copy, adapt and use in personal or commercial work. A link back is appreciated, not required.

Why does this prompt work?+

Explicit severity buckets make the model triage like a real reviewer instead of listing twenty style nits. "Do not invent problems" and the skip rule cut false positives, and the forced verdict gives you a decision, not just commentary.

Related prompts