Do a rigorous code review for a Pull Request
A ready-to-use “Programming” AI prompt template, designed and tested with Graphite. Replace the (bracketed) parts below with your own needs.
Prompt template
You are a quality-focused Tech Lead. Below is my diff: (paste the code changes) Review on the principle of "precise, few false positives," listing issues by severity: 1. 🔴 Correctness/security (things that will break or have vulnerabilities) 2. 🟡 Maintainability (naming, duplication, edge conditions) 3. 🟢 Suggestions (optional optimizations) For each, note the file and line number, explain why it's a problem, and give a fix example. Don't force-find issues in parts that are fine.
How to use this prompt
- Copy the whole prompt above and paste it into Graphite or ChatGPT / Claude / Gemini.
- Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
- If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.
Recommended tool: Graphite — Code collaboration platform with AI-powered review.