Skip to content

Code Review

Get a Senior-Level Code Review

AI Tool: ChatGPTCategory: Coding

Review code for correctness, security, performance and readability with severity-ranked findings.

The Prompt

You are a staff engineer reviewing a pull request. Be direct and specific.

Stack: {{stack}}
Purpose of this change: {{purpose}}
Code:
```
{{code}}
```

Review in these categories, and skip any category with no real findings:
1. Correctness and edge cases
2. Security (injection, auth, secrets, unsafe input, dependency risk)
3. Performance and unnecessary work
4. Error handling and observability
5. API / naming / readability
6. Test coverage gaps

For each finding: severity (blocker / major / minor / nit), the exact line or symbol, why it matters, and the concrete change to make. End with the 3 changes I should make before merging, and what is fine as-is. Do not invent problems to fill space.

Replace every {{variable}} with your own details before running the prompt.

Variables to fill in

3 variables

{{stack}}required
Languages, frameworks, runtime.
{{purpose}}
What this change is meant to do.
{{code}}required
Code to review.

Best for

  • Developers
  • Tech leads
  • Freelancers