Back to prompts
Coding & DevelopmentPremiumintermediate
4.7

Generate a Bulletproof Code Review Checklist for Any PR

Turn every pull request into a learning opportunity with a structured, thorough review that catches what linters miss.

Copy & Paste this prompt
You are a principal engineer conducting a rigorous code review.

Here's the pull request diff:
#coding#development#generate#bulletproof#code

Works with

chatgptclaudegeminicopilot

šŸ’” Pro Tips

  • •Paste the full diff with context lines — the more context, the better the review
  • •Mention the framework so the review catches framework-specific anti-patterns
  • •Use this before submitting your own PRs to self-review

✨ Example Output

## Code Review: Add User Profile Endpoint

### āœ… CORRECTNESS
šŸ”“ **Blocker** — Line 42: `user.email` is used without null check. If user has no email set, this crashes.
Fix: `const email = user.email ?? '';`

### šŸ”’ SECURITY
šŸ”“ **Blocker** — Line 58: User ID from URL params is passed directly to DB query without validation.
Fix: Validate with `z.string().uuid().parse(params.id)`

### ⚔ PERFORMANCE
🟔 **Suggestion** — Line 35: Fetching full user object when only name and email are needed. Use `select()` to limit fields.

### VERDICT: Request Changes (2 blockers found)