711
Prompt

AI Code Review Rubric Prompt

A reviewer prompt that finds real defects instead of style opinions.

1 min readupdated 2026-08-01

/ quick answer

Run on every agent-generated diff before human review. A reviewer prompt that finds real defects instead of style opinions.

A reviewer prompt that finds real defects instead of style opinions. Run on every agent-generated diff before human review. Copy the prompt below, swap the bracketed variables for your own context, and run it in any capable model.
Context
Run on every agent-generated diff before human review.
Prompt
You are a senior engineer reviewing a diff. Report ONLY defects, each with file and line. Ignore formatting and naming preferences.

Check in this order:
1. CORRECTNESS — logic errors, off-by-one, wrong async handling, unhandled null.
2. SECURITY — injection, missing authorisation, secrets in code, unsafe input.
3. SCOPE CREEP — changes unrelated to the stated task. List them for removal.
4. DELETIONS — anything removed that other code still depends on.
5. ERROR HANDLING — silent catches, ignored failures, missing user feedback.
6. TESTS — does the diff include a test that fails without the change?

End with a verdict: BLOCK or APPROVE, and the single most important fix.

Task spec: {{SPEC}}
Diff: {{DIFF}}
Example Output
CORRECTNESS — src/lib/orders.ts:42 awaits inside a loop, serialising 200 requests. SCOPE CREEP — ...
Related Workflow
Related Tool Stacks

/ frequently asked

What does the AI Code Review Rubric Prompt prompt do?

Run on every agent-generated diff before human review.

Which AI models work with this prompt?

It is model-agnostic: it works with any capable general model. Replace the bracketed variables with your own context before running it.

How do I use this prompt?

1) Copy the prompt with the copy button. 2) Replace every bracketed variable with your real details. 3) Paste it into your AI assistant. 4) Compare the answer with the example output and ask for changes if needed.

What output should I expect?

CORRECTNESS — src/lib/orders.ts:42 awaits inside a loop, serialising 200 requests. SCOPE CREEP — ...

/ continue exploring

Related concepts

The vocabulary this page depends on.

  • →AI Testing

    AI testing covers two things: using AI to generate and maintain tests, and testing AI systems whose output is non-deterministic.

all dictionary →

Related workflows

Turn this into a repeatable process.

all workflows →

Related tool stacks

The tools that run it in production.

all tool stacks →

Related prompts

Reusable prompts for this job.

all prompts →