Back to prompts
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)