Code Review — Thorough Senior Engineer Feedback
Get a senior engineer's code review covering correctness, performance, security, readability, and maintainability.
The Prompt
Act as a senior software engineer doing a thorough code review. Review the code below and provide structured feedback covering: **Correctness:** Are there any bugs or logical errors? **Performance:** Any N+1 queries, unnecessary loops, or memory issues? **Security:** SQL injection, XSS, insecure dependencies, exposed secrets? **Readability:** Naming, complexity, unclear logic? **Maintainability:** Coupling, testability, documentation gaps? For each issue, rate severity (Critical / Major / Minor / Suggestion) and provide the specific fix. ``` [PASTE YOUR CODE HERE] ```
Example Output
Found 2 Critical issues (unparameterized SQL query on line 34, unbounded loop on line 67), 3 Major issues (missing error handling, N+1 database query pattern, unclear variable names), and 5 Suggestions for improved readability.
FAQ
Which AI model is best for Code Review — Thorough Senior Engineer Feedback?
Claude Sonnet 4 — excellent at structured analysis with detailed reasoning. Claude Opus 4 for complex architecture reviews.
How do I use the Code Review — Thorough Senior Engineer Feedback prompt?
Copy the prompt, replace the [BRACKETED] placeholders with your specific information, and paste into your preferred AI assistant (ChatGPT, Claude, Gemini, etc.). Found 2 Critical issues (unparameterized SQL query on line 34, unbounded loop on line 67), 3 Major issues (missing error handling, N+1 database query pattern, unclear variable names), and 5 Suggestions for improved readability.
Model Recommendation
Claude Sonnet 4 — excellent at structured analysis with detailed reasoning. Claude Opus 4 for complex architecture reviews.