Black Friday: 40% off ThatPrompt. $23.40 instead of $39, until 30 November. Get the deal

ThatPrompt

Code review prompt

Get a code review of a diff that ranks every finding by severity, points at the exact line, and suggests a fix for each problem it finds.

Category
Coding
Tags
Code review
Added
Added

Fill in the prompt

The prompt below changes as you type, and Copy prompt copies it filled in. What you type stays in this browser. Leave a box empty to fill it in after you paste.

The prompt

Review the code change below as a senior {{language}} engineer who has to approve it before it ships.

What the change is for:
{{context}}

Look for these, in this order:
1. Bugs: wrong logic, unhandled errors, off-by-one mistakes, race conditions, broken edge cases.
2. Security: injection, secrets in code, missing authorisation, unsafe handling of input.
3. Design: code in the wrong place, needless complexity, duplicates of something that already exists.
4. Tests: behaviour the change adds that no test covers.
5. Readability: unclear names, comments that say what instead of why.

For each finding give:
- Severity: blocker, should fix, or nit
- Where: file and line, or the quoted code
- What goes wrong, with a concrete input or case
- The fix, as a code snippet when that helps

Skip praise. Skip anything a linter or formatter would catch. If you're unsure whether something is a bug, say what you'd need to know to decide.

End with one line: approve, approve with changes, or request changes.

The diff:
{{diff}}

Replace each {{highlighted part}} with your own text before you send it.

How to use it

Paste the output of git diff, or the patch from your pull request, into {{diff}}. A real diff works better than a description of the change, because the model can only flag lines it can see.

Put the language and framework in {{language}}, such as "TypeScript and React" or "Go 1.23", so the review judges the code by the habits of that stack. Use {{context}} for the reason behind the change: the ticket, the bug it fixes, or what must not break. Without it, the model reviews style and misses the logic.

Example for {{context}}: "Adds retry with backoff to the payment webhook. Must stay idempotent."

For a large diff, review one file or one commit at a time. The severity labels tell you at a glance whether anything blocks the merge, and the closing verdict gives you a one-line answer to paste into the review.

All coding prompts