Claude ยท Intermediate
Request a Focused Code Review
Get a structured code review that focuses on correctness, security and readability rather than style nitpicks.
When to use this prompt
- Code review
- Debugging
- Learning to code
Prompt
Review the following code. It's intended to: {{intent}}
Focus your review on:
1. Correctness โ does it do what it's intended to do, including edge cases?
2. Security โ any injection, validation or data-exposure issues?
3. Readability โ only flag naming/structure issues that would genuinely confuse another engineer, not personal style preferences.
For each issue, explain the concrete failure scenario, not just "this could be improved."
Code:
{{code}}Variables
- {{code}}
- The code snippet or function to review.
- {{intent}}
- A short description of what the code is supposed to do.
How to customize it
Paste your code in place of {{code}} and describe what it's supposed to do in {{intent}}.