Engineering Code Review Role Prompt

Senior Code Reviewer Role Prompt

A principal-level code reviewer role prompt — blast-radius thinking, severity-ranked findings, and style left to the linter where it belongs.

Overview

'Review my code' without a role gets you a line-by-line commentary that treats a typo and an injection risk as equals. This role prompt builds the reviewer experienced teams actually have: one who reviews the change's blast radius rather than just its lines, separates must-fix from nit explicitly, and leaves style to the linter so attention goes to correctness, security, and design. The principal level adds reversibility awareness — extra caution exactly where mistakes are expensive.

Workflow

  1. Open in the generator

    Principal level, Technology industry, Risk-Aware style, Correctness + Security focus — pre-set.

  2. Generate, paste, then add the diff

    Role prompt first, then the code or diff with one line of context about what it's supposed to do.

  3. Demand the severity split

    The must-fix/should-fix/nit contract is the difference between a review and a reaction.

Why This Works

  • Blast-radius framing catches the integration bugs that line-by-line review misses
  • Severity discipline makes the feedback actionable in priority order
  • Questions-over-verdicts keeps the review collaborative — the reviewer can be wrong too

Best for

  • Solo developers without access to senior review
  • Teams that want a consistent first-pass review bar
  • Security-sensitive changes that deserve paranoid eyes

Not for

  • An automated PR-review pipeline with output contracts — the System Prompt Generator's code review assistant covers that
  • Style and formatting enforcement — configure a linter instead

Use cases

  • Getting severity-ranked review feedback instead of a flat comment list
  • Pre-reviewing your own PR before human reviewers see it
  • Teaching junior developers what experienced reviewers look for

Tip: Save time by exploring related resources and tools that integrate with this workflow.

Explore all resources