Structured Code Review

Review comments on a diff grouped into blocking, should-fix, and nit.

Intermediate · Works with ChatGPT, Claude, Gemini, Copilot

The prompt

Review this diff and group your comments into blocking, should-fix, and nit.

Be explicit about which category is which and why, and specifically check for anything that would only fail under retries or partial failure.

Diff or code to review:
{{CODE}}

Language, framework and constraints:
{{STACK}}

Why this prompt works

Separating blocking from nit prevents reviews from reading as a wall of equally-weighted complaints.

How to customize it

  • Respond to the blocking items first before touching nits.
  • Push back if something is filed as blocking but seems like a preference.

Common mistakes

  • Treating every comment as equally urgent, which slows down merges unnecessarily.
  • Skipping the retry/partial-failure check on anything touching external calls.

Example

Input

Diff to review: diff adding a new webhook handler to the payments service

What a good answer looks like

Three labeled sections of comments, blocking items first.

Make this prompt fit your work

ModelCoach.ai scores your version, shows what to improve and explains why, right inside ChatGPT, Claude, Gemini and Copilot.

Related prompts