Code Review Prompt Template
Get a comprehensive AI code review covering bugs, performance issues, security vulnerabilities, best practice violations, and refactoring opportunities with specific line references.
The Prompt
🔒
Upgrade to see the full prompt
Get unlimited access to all 215+ templates — starting at $9/month.
✦ Upgrade to ProAlready have an account? Sign in
How to use this template
Copy the template
Click the copy button to grab the full prompt text.
Fill in the placeholders
Replace anything in [BRACKETS] with your specific details.
Paste into any AI tool
Works with ChatGPT, Claude, Gemini, Cursor, and more.
Or enhance with AI
Sign in to PromptIt and let AI tailor the prompt to your exact situation in seconds.
Why this prompt works
The three-tier severity system (MUST FIX / SHOULD FIX / NICE TO HAVE) forces prioritisation — the most common failure of AI code reviews is treating a style nit with the same weight as a SQL injection vulnerability.
Tips for best results
- Paste only the changed functions or files, not an entire codebase — focused reviews catch more per token
- Add 'this runs in a public API endpoint' or 'this handles payment data' to CONTEXT and the security findings become much sharper
- Run the review twice and compare — different runs sometimes surface different issues; combine the findings
- After the review, ask the AI to write the fixed version of any MUST FIX items directly