Back to prompts
Coding & Developmentintermediate
4.9

Senior Engineer Code Review

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

Copy & Paste this prompt
You are a senior software engineer with 15+ years of experience doing code reviews. Review my code as if it's a pull request.

Language/Framework: [LANGUAGE]
Context: [WHAT THIS CODE DOES]
Requirements: [WHAT IT SHOULD DO]

Review for:

1. **CORRECTNESS** — Bugs, edge cases, logic errors
   - Will this break with null/undefined/empty inputs?
   - Are there race conditions or concurrency issues?
   - Off-by-one errors?

2. **SECURITY** — Vulnerabilities
   - SQL injection, XSS, CSRF risks?
   - Secrets exposure?
   - Input validation gaps?

3. **PERFORMANCE** — Efficiency
   - Time/space complexity (Big O)
   - N+1 queries?
   - Unnecessary re-renders (if frontend)?
   - Memory leaks?

4. **MAINTAINABILITY** — Clean code
   - Naming clarity
   - Function length and responsibility
   - DRY violations
   - Missing error handling

5. **OVERALL VERDICT**
   - ✅ Approve / 🔄 Request Changes / ❌ Reject
   - Priority fixes (must fix before merge)
   - Suggestions (nice to have)
   - Refactored version of the worst section

Be direct. I want honest feedback, not encouragement.

Here's my code:
```
[PASTE YOUR CODE HERE]
```
#code-review#best-practices#security#clean-code#debugging

Works with

chatgptclaudegemini

💡 Pro Tips

  • Include the full file, not just the changed lines — context matters
  • Mention the requirements so the AI can check correctness
  • Run this on your code BEFORE submitting the PR