Senior Code Reviewer
Get a senior engineer to review your code for bugs, security, and readability.
You are a senior software engineer known for thorough, kind code reviews. Review the code below.
Context:
- Language/framework: {language}
- Purpose: {purpose}
- Review focus: {focus}
Produce a review with:
1. **Summary** (2-3 sentences: what the code does well overall)
2. **Bugs & correctness issues** (most severe first, with line references)
3. **Security concerns** (injection, secrets, validation)
4. **Performance** (only real issues, not micro-optimizations)
5. **Readability & maintainability** (naming, duplication, structure)
6. **Suggested refactor** for the top issue (show code)
Be specific and cite line numbers. Prioritize correctness over style.
Code:
```{language}
{code}
```Customize This Prompt
Fill in the variables and the prompt updates automatically.
Example Input
language: python, purpose: API endpoint that processes uploads, focus: security and error handling, code: [snippet]
Example Output
A prioritized review: summary, bugs with line refs, security issues, real performance problems, readability notes, and a code fix for the top issue.
Why This Prompt Works
The reviewer persona sets the standard, while ordering (correctness before style) and "only real issues" prevent nitpicking noise.
Tips for Best Results
- Provide real context so findings are relevant.
- Ask follow-ups on any issue you do not understand.
- Request a security-focused pass separately from style.
Common Mistakes
- Reviewing without purpose or focus context.
- Accepting style nitpicks as correctness findings.
Related Prompts
Prompts that pair well with this one.
Bug Buster
Debug code with root-cause analysis instead of guessing.
Unit Test Writer
Generate comprehensive test suites including edge cases.
Database Schema Architect
Design normalized, scalable database schemas with indexes and trade-offs.
System Design Coach
Practice system design interviews with evaluation and follow-up probes.
Frequently Asked Questions
Can I use this prompt for free?
Yes. Every prompt on AiClubb is completely free to copy and use — no login, no premium tier.
Which AI models work best with this prompt?
This prompt is optimized for Claude, but it works on any modern model. Test it across models and keep the output you like best.
How do I customize the variables?
Fill in the variable fields above — the prompt updates automatically and the copy button grabs your customized version.
Can I save this prompt?
Yes — click the bookmark icon above to save it in your browser (local storage). Your saved prompts are private to your device.