AI Code Review Prompt
Get a senior-engineer style review of a diff or file.
Act as a strict but kind senior engineer reviewing this code: ``` [PASTE DIFF OR FILE] ``` Review for, in this order: 1. Bugs and edge cases (null, empty, large input, concurrency). 2. Security (injection, secrets, auth, unsafe input). 3. Readability (naming, function size, comments). 4. Performance, only where it actually matters. Format: a table with columns Severity (High/Med/Low), Line, Issue, Suggested fix. End with the single most important change to make first.
How to use it
- Click Copy template.
- Paste into ChatGPT, Claude, Grok, Cursor, or your agent framework.
- Replace the [BRACKETED] parts with your details.
Sponsor this page · Reach builders who use AI daily. Get details
FAQ
Is AI review good enough to skip human review?
No. Use it as a first pass so human reviewers focus on design.
Can I use it in CI?
Yes, pipe the git diff into an API call with this prompt.
Get 3 new templates every week
Free. Unsubscribe anytime.Related templates
Cursor Rules for Next.js + TypeScript
A .cursorrules file that keeps Cursor writing clean, typed Next.js App Router code.
Cursor Rules for Python Projects
Rules that make AI editors write typed, tested, modern Python.
Vibe Coding Project Kickoff Prompt
Turn a fuzzy app idea into a scoped plan before the AI writes any code.
PromptLoot Pro Pack · 200+ advanced templates, agent workflows, and Cursor rules bundles. Coming soon