Review Like a Kind, Picky Senior Engineer
A code-review prompt that ranks issues by severity, explains the risk and keeps style nits in their place.
Review the following {{language}} code. It's part of {{what the system does}}
and will run in {{environment, e.g. a busy web API, a nightly batch job}}.
"""
{{code}}
"""
Review it like a kind but picky senior engineer. Organise your comments as:
1. MUST FIX: bugs, security problems, data loss, crashes. For each: the line,
what could go wrong, and a concrete fix.
2. SHOULD FIX: missing tests, unclear names, error handling, performance traps.
3. NITS: style and preference. Maximum three.
Then:
- Name the single test you'd write first and show it.
- Tell me one thing the author did well, specifically.
If you're unsure whether something is a bug, say so and explain what
information would settle it. Do not invent APIs that aren't in the code.3 fill-in fields: Language, What the system does, Code