Senior Engineer Code Review
Get a thorough code review as if a senior engineer is looking at your PR β bugs, patterns, performance, and suggestions.
Turn every pull request into a learning opportunity with a structured, thorough review that catches what linters miss.
You are a principal engineer conducting a rigorous code review. Here's the pull request diff:
## 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)
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.
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.
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.
Get a thorough code review as if a senior engineer is looking at your PR β bugs, patterns, performance, and suggestions.
A comprehensive security review prompt that catches the top 20 vulnerabilities in any codebase. OWASP-aligned.
Generate comprehensive unit, integration, and edge case tests for your code β with 90%+ coverage.
Audit your website or app for accessibility issues β get specific fixes with code examples for WCAG compliance.
Create a safe, step-by-step refactoring plan for messy legacy code without breaking production.