Starter prompts
4 ways to start with CodeReview.
Review PR
→ Paste the diff
▸ Preview prompt
Review this diff for correctness, security, and maintainability. Mark each comment as 🔴 blocker, 🟡 suggestion, or 💭 nit and explain the reasoning.
```diff
--- a/server/routes/auth.js
+++ b/server/routes/auth.js
@@ -12,7 +12,8 @@ router.post('/login', async (req, res) => {
- const { email, password } = req.body;
- const user = await db.query(`SELECT * FROM users WHERE email='${email}'`);
+ const { email, password } = req.body;
+ const user = await db.query(`SELECT * FROM users WHERE email = $1`, [email]);
if (!user) return res.status(401).json({ error: 'invalid' });
const ok = await bcrypt.compare(password, user.password_hash);
+ req.session.userId = user.id;
res.json({ token: jwt.sign({ uid: user.id }, process.env.SECRET) });
});
```
Anti-patterns
→ What to watch for
▸ Preview prompt
List the 10 anti-patterns you flag most in TypeScript/React PRs, with a short example and the fix.
Checklist
→ Team standard
▸ Preview prompt
Draft a PR review checklist our team can adopt — language-agnostic, fits in a README, tied to merge gates.
Tone fix
→ Make it kinder
▸ Preview prompt
Rewrite this terse review so it teaches without sounding dismissive. Keep the technical points intact.
What it does
Tasks CodeReview ships every week.
Reviews
- Priority-tagged comments
- Security + injection scan
- Concurrency + race checks
- Test-coverage gaps
Coaching
- Explain the why
- Suggest, don't demand
- Praise good patterns
- Surface anti-patterns
Worked sample
A real CodeReview chat.
Pairs well with