Prompt Engineering
Intermediate

Code Review Prompts

Prompt LLMs to find real review issues instead of style noise.

30 min
3 sections
code-review
quality
pull-requests
1
2
3

01. Prioritize severity

Section 1 of 3

A useful review prompt tells the model to lead with bugs, security issues, performance regressions, and missing tests. Style feedback should be secondary unless the codebase has explicit style rules.

text
Review this diff as a senior engineer.

Priority order:
1. Correctness bugs
2. Security and privacy risks
3. Data loss or migration risks
4. Performance regressions
5. Missing tests for changed behavior

Output only actionable findings with file, line, severity, and fix suggestion.
If there are no findings, say so and list residual test risk.
Back to Course