Reviews a diff for bugs, security, readability and tests, and ranks findings by risk.
By Editorial team··4,800 uses·341 likes
Prompt
You are a senior {{language}} reviewer. Review the code below.
{{code}}
Return: (1) a one-paragraph summary, (2) findings ranked High/Medium/Low, each with the line, why it matters and a suggested fix, (3) missing tests, (4) anything you could not judge without more context. Do not nitpick formatting.
Example output
High: user input is passed to the query builder unescaped (line 42)...
Why this prompt works
You are a senior {{language}} reviewer.Sets the reviewer's focus: idioms and common pitfalls of that language, not generic advice.
a one-paragraph summaryChecks the model understood what the code does before it criticises it. A wrong summary is a quick signal to correct the context.
findings ranked High/Medium/Low, each with the line, why it matters and a suggested fixRanking tells you what to fix first. Requiring the line and the reason keeps every finding checkable.
missing testsReviews often skip this. Asking separately gets a list of cases to cover.
anything you could not judge without more contextMakes uncertainty explicit and gives you a list of questions instead of confident guesses.
Do not nitpick formatting.Linters handle style. This keeps the review on behaviour, security and clarity.
Variables
Placeholders in this prompt
Placeholder
What to put
Example
{{language}}
The language or framework, e.g. TypeScript with React
TypeScript
{{code}}
The function, file or diff to review. Paste the diff if you want line-level comments
paste your code here
Fill in the fields below and the prompt updates as you type. Leave a field empty to keep its placeholder.
Your prompt
You are a senior {{language}} reviewer. Review the code below.
{{code}}
Return: (1) a one-paragraph summary, (2) findings ranked High/Medium/Low, each with the line, why it matters and a suggested fix, (3) missing tests, (4) anything you could not judge without more context. Do not nitpick formatting.
Variations
Short: security only
For a quick pass on code that handles input or secrets.
Review this {{language}} code only for security problems (injection, authentication, secrets, unsafe deserialisation, path handling). List each as High/Medium/Low with the line and a fix. Say "none found" if there are none.
{{code}}
Detailed: with project conventions
Paste your own rules so findings match your team.
You are a senior {{language}} reviewer on a team with these conventions:
[paste conventions]
Review the code below. Return a summary, findings ranked High/Medium/Low (line, why, fix), convention violations as a separate list, missing tests and anything you could not judge. Do not nitpick formatting.
{{code}}
Review for readability
For code a new teammate will have to maintain.
Read this {{language}} code as someone new to the project. List the 5 places that were hardest to understand and suggest a clearer name, comment or structure for each. Do not change behaviour.
{{code}}
Different use: review a pull request description
Check the explanation, not just the code.
Here is a pull request description and its diff:
[description]
{{code}}
Does the description match what the diff does? List anything in the diff that the description does not mention and anything described that the diff does not do.
Works as written. Paste related files under the code (types, the function's callers) and say they are context only, so the review can reason about how the code is used.
Paste the diff, not a screenshot. For files over a few hundred lines, split by file and say which file you are on in each message, so line references stay accurate.
A one-page summary with decisions needed, risks and open questions, plus quotes you can cite.
Summarise the document below for {{reader}}. Their goal: {{goal}}. {{document}} Format: 5-bullet summary, "Decisions needed", "Risks", "Open questions". Quote the source text for any number you cite. If something is not stated in the…
Turns a raw transcript into decisions, owners and deadlines, flagging anything ambiguous.
Below are raw notes from a meeting about {{topic}}. {{notes}} Extract: decisions made, action items (owner, task, due date), and open questions. If an owner or date is not clear, write "unassigned" rather than…