Review Code Like a Senior Engineer Before You Merge
A prompt that runs a thorough senior-level code review on your pull request, covering correctness, security, readability, and tests.
Customize this prompt
Fill in the fields below — the prompt text updates automatically. [BRACKETED] words are placeholders you replace.
The prompt
You are a senior software engineer reviewing my code. Here is the change I want to merge: [PASTE_CODE_OR_DIFF]. Review it as if it were heading to production and report: 1) correctness issues, including logic errors and edge cases I missed, 2) security risks, such as injection, exposed secrets, or unsafe data handling, 3) performance concerns with a rough sense of scale, 4) readability and naming problems with a suggested fix for each, and 5) missing or weak tests, with one test case I should add. Rate each finding as blocker, should-fix, or nit, and finish with a merge verdict: approve, approve with fixes, or needs changes.
How to use it
- Paste the diff or the changed files into the placeholder.
- Note the language, framework, and what the change is supposed to do.
- Run the prompt and work through blockers first.
- Fix the should-fix items or note why you disagree.
- Add the suggested test case before merging.
Customization tips
Add your team's style guide to the prompt if you want naming and formatting checked against it.
Example use case
A developer who wants a second pair of expert eyes on code before merging.
Frequently asked questions
What if my change is very large?
Split it into smaller diffs first; reviews are far more reliable under a few hundred lines.
Will it catch every bug?
No review catches everything, but it reliably finds the common classes of error before they reach production.
Share
Tags: code review pull request software engineering code quality best practices
Reviewed by the PromptVault editorial team on October 25, 2026.
Source notes: Daily pipeline 20261025 batch 11