Review a Pull Request Like a Senior Engineer
Get a structured code review that checks correctness, security and readability before you approve or request changes.
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 engineer reviewing a pull request for [PROJECT_NAME]. I will paste the diff for [PR_TITLE], which changes [CHANGED_AREA] and is written in [LANGUAGE]. Review it in five sections. Correctness: logic errors, off-by-one mistakes, edge cases and anything that would break existing behaviour. Security: injection risks, exposed secrets, auth gaps and unsafe data handling. Performance: obvious inefficiencies, N+1 queries and unbounded loops. Readability: naming, duplication and places a comment would help. Tests: whether the change is covered and what test is missing. For each issue give the file and line, a one-line explanation, and a suggested fix or a short code snippet. End with a clear verdict: approve, approve with minor comments, or request changes, with one sentence explaining why. Be direct and specific; do not praise code that has real problems, and do not invent issues in code you cannot see.
How to use it
- Paste the pull request diff into the prompt.
- Fill in the project, language and changed area.
- Generate the five-section review.
- Fix the issues marked request changes first.
- Re-run the review on the updated diff before approving.
Customization tips
Swap the project, language and changed area to review pull requests in any codebase.
Example use case
Developers who review pull requests and want a thorough senior-level checklist before approving.
Frequently asked questions
How large a diff can I paste?
Keep it to one focused pull request. For very large diffs, review file by file so no section gets skipped.
Should I trust the review without reading the code?
No. Use it as a checklist that catches what tired eyes miss, then verify each flagged issue in the code yourself.
Share
Tags: code review pull requests software development code quality senior engineer debugging
Reviewed by the PromptVault editorial team on November 12, 2026.
Source notes: Daily pipeline 20261112 batch 11