AI Code Review Prompt
Get a senior-engineer style review of a diff or file.
Added
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
Generate Unit Tests Prompt
Get thorough unit tests, including edge cases, for any function.
Explain This Codebase Prompt
Onboard yourself to an unfamiliar repo fast.
Safe Refactor Prompt
Refactor messy code without changing behavior.
Browse all Coding & Cursor Rules templates
New on PromptLoot
2D Game Asset Rules for AI Agents: Sprites & Colliders
An ASSETS.md for Claude Code, Cursor, or Codex in Godot, Unity, Phaser, or Canvas: sprite sheet layout, naming, pixel-art import, animations, and colliders.
Agent Auto-Approve Policy: What AI Agents May Merge Alone
A policy file that sorts every PR an AI agent reviews into auto-merge, human review, or blocked: docs and tests yes; payments, auth, and secrets never.
PromptLoot Pro Pack · 200+ advanced templates, agent workflows, and Cursor rules bundles. Coming soon