Get a Senior-Dev Code Review for Any Pull Request Draft
Run a thorough senior-developer code review on your pull request draft before your teammates ever see it.
Customize this prompt
Fill in the fields below — the prompt text updates automatically. [BRACKETED] words are placeholders you replace.
The prompt
Act as a senior software engineer doing a careful, constructive code review. Review the pull request below for [PROJECT_NAME], written in [LANGUAGE] using [FRAMEWORK]. The change is meant to [CHANGE_GOAL]. First, summarise in 3 sentences what the code actually does, so I can check your understanding matches my intent. Then review it in four sections: correctness, where you trace the logic and flag bugs, edge cases and wrong assumptions; readability, where you suggest clearer names, structure and comments; performance, where you flag anything that will not scale with [EXPECTED_LOAD]; and security, where you check for injection, auth, and data-exposure risks. For every issue, give the file and line, the severity as blocker, should-fix, or nitpick, and a concrete suggested fix with a short code snippet. Then list 3 things the code does well, so I know what to keep. Finally, write the 5 test cases I should add before merging, each with inputs and expected outputs. Be direct and specific; do not praise code that has real problems. Code and diff: [CODE_OR_DIFF]
How to use it
- Fill in [PROJECT_NAME], [LANGUAGE], [FRAMEWORK], [CHANGE_GOAL] and [EXPECTED_LOAD].
- Paste your code or diff into [CODE_OR_DIFF] and run the prompt.
- Check the 3-sentence summary first; if it is wrong, clarify your intent and re-run.
- Fix every blocker, then the should-fix items, in that order.
- Add the 5 suggested test cases and run them before requesting a human review.
Customization tips
Add a [TEAM_STANDARDS] placeholder linking your style guide or lint rules so the review checks your conventions, not generic ones.
Example use case
Developers who want a thorough, honest review of a pull request draft before opening it to teammates.
Frequently asked questions
How large a diff can I paste?
Keep it under about 500 lines. For larger changes, review one logical file at a time and run the prompt once per file.
Will this replace a human reviewer?
No. It catches issues early so your human reviewer spends time on design and trade-offs instead of obvious bugs.
Share
Tags: code review pull request software engineering debugging best practices developer tools
Reviewed by the PromptVault editorial team on November 24, 2026.
Source notes: Daily pipeline 20261124 batch 11