Senior Engineer Code Review Checklist Generator
Produces a senior-engineer code review for any pasted code: bugs, security issues, performance, readability, missing tests, and verdict.
The prompt
Act as a senior staff engineer performing a code review. Here is the code: [CODE] Language/stack: [LANGUAGE] Intended behavior: [INTENT] Produce a structured review: 1. CORRECTNESS — Bugs, logic errors, and edge cases the code mishandles. Quote the exact lines and explain the failure scenario. 2. SECURITY — Injection risks, auth gaps, data exposure, unsafe defaults. Rate each finding high/medium/low severity. 3. PERFORMANCE — Unnecessary work, N+1 patterns, blocking calls, memory concerns, with the expected impact. 4. READABILITY — Naming, structure, and complexity issues that would slow the next reader down. 5. TESTS — The 5 highest-value test cases this code is missing, written as given/when/then statements. 6. VERDICT — Approve, approve-with-comments, or request-changes, with the 3 most important fixes listed first. Rules: be specific and quote line numbers or snippets; do not rewrite the whole file, only show diffs for the top 3 fixes; distinguish must-fix issues from nice-to-haves; if [INTENT] is ambiguous, state your assumption before reviewing.
How to use it
- Paste the full CODE you want reviewed, not just a fragment.
- State LANGUAGE and INTENT so the review targets the right risks.
- Paste the prompt into your AI assistant and read the verdict first.
- Fix the top 3 must-fix items before the nice-to-haves.
- Re-run the review on the updated code to confirm the fixes.
Customization tips
Add your team's style guide under STYLE_GUIDE for project-specific rules. Set STRICTNESS to lenient for prototypes or strict for production code.
Example use case
Developers who want a thorough, structured code review before opening a pull request or shipping a feature.
Frequently asked questions
Does it work for languages other than JavaScript and Python?
Yes — paste any language; the checklist adapts its checks to the language's common pitfalls (memory, types, async, etc.).
Will it catch security issues or just style problems?
The default checklist covers correctness, security, and performance. Mention a domain in FOCUS_AREA, e.g. cryptography, for deeper checks.
Share
Tags: code-review programming software-engineering debugging quality best-practices
Reviewed by the PromptVault editorial team on October 10, 2026.