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)

🧠 Why This Works

Human reviewers have blind spotsβ€”they catch style issues but miss logic bugs, security holes, or performance regressions. This prompt generates a comprehensive, context-aware checklist that ensures nothing falls through the cracks beyond what automated linters catch.

πŸ“… When to Use This Prompt

Use when reviewing critical PRs before production deployment, when onboarding new team members to your review standards, or when you want consistent review quality across your team regardless of reviewer experience.

🎯 What You'll Get

You'll get a structured checklist covering logic correctness, security vulnerabilities, performance implications, error handling gaps, and maintainability concernsβ€”prioritized by severity with specific line-level guidance.

πŸ”— Related Prompts

Coding & Development

Senior Engineer Code Review

Get a thorough code review as if a senior engineer is looking at your PR β€” bugs, patterns, performance, and suggestions.

code-reviewbest-practicessecurity
β˜…4.9
intermediate
Coding & DevelopmentPremium

Complete Test Suite Generator

Generate comprehensive unit, integration, and edge case tests for your code β€” with 90%+ coverage.

testingunit-teststdd
β˜…4.8
intermediate
Coding & Development

Accessibility Auditor (WCAG 2.1)

Audit your website or app for accessibility issues β€” get specific fixes with code examples for WCAG compliance.

accessibilitywcaga11y
β˜…4.7
intermediate
Coding & DevelopmentPremium

Legacy Code Refactoring Roadmap

Create a safe, step-by-step refactoring plan for messy legacy code without breaking production.

refactoringlegacy-codecode-quality
β˜…4.7
advanced