Supply a focused diff, repository conventions, and the behavior the change should preserve. Ask for findings tied to specific lines and a test that demonstrates each suspected defect.
In short: The best code review prompts include your specific context, define the expected output format, and mention the tools or frameworks involved. Browse the curated collection below and customize any prompt to your workflow.
Separate reproducible bugs from style suggestions
Request severity and the triggering input
Check findings against the actual code
Conduct effective weekly reviews
Structure QBRs effectively
Review a file or snippet for correctness, security, performance and maintainability risks in a stated project context, with severity, evidence and fixes.
Write constructive performance reviews
Audit code for security vulnerabilities
Conduct annual reviews
Write crisis communication messages
Get a review focused on language- and framework-specific idioms, edge cases and the test cases that are missing, with concrete fixes.
Turn a verified fact sheet into a standard news release: headline, subheadline, dateline, five-Ws lead, supporting details in descending importance, approved executive quote, boilerplate and contact.
Provide the diff and relevant surrounding functions
Include existing test commands and security assumptions
Ask the model to state missing context rather than invent it
They can prepare review notes. A maintainer still needs to verify findings, run the relevant checks, and approve the actual change.
Keep the template, model and settings, representative input, expected result, actual output, and any failures. Repeat the same cases when you revise the instructions.
Browse our complete prompt library or contribute your own.