---
title: "Code Review Prompt"
description: "Prompt for getting Claude Code to review code critically"
type: "prompt"
category: "atomic"
tags: ["claude-code", "prompt", "review"]
url: "https://theglitch.ai/academy/prompts/code-review-prompt"
---

# Code Review Prompt

Prompt for getting Claude Code to review code critically

## The Prompt

```
Review [file/changes] for:

1. Security vulnerabilities
2. Performance issues
3. Missing edge cases
4. Convention violations
5. Logic errors

Be critical. I'd rather fix issues now than in production.

For each issue found:
- Location (file:line)
- Severity (high/medium/low)
- Description
- Suggested fix
```


# Code Review Prompt

```
Review [file/changes] for:

1. Security vulnerabilities
2. Performance issues
3. Missing edge cases
4. Convention violations
5. Logic errors

Be critical. I'd rather fix issues now than in production.

For each issue found:
- Location (file:line)
- Severity (high/medium/low)
- Description
- Suggested fix
```

---

**Example:**

```
Review the changes I just made to /src/api/payments.ts for:

1. Security vulnerabilities (especially input validation)
2. Performance issues (N+1 queries, unnecessary loops)
3. Missing edge cases (null handling, empty arrays)
4. Convention violations (per CLAUDE.md)
5. Logic errors

Be critical. I'd rather fix issues now than in production.

For each issue found:
- Location (file:line)
- Severity (high/medium/low)
- Description
- Suggested fix
```

---

**Tip:** Use Opus for security reviews. It catches more subtle issues.

