**TL;DR**: `/code-review [files]` - Automated code review with severity-tiered feedback.

---

## Usage

```bash
/code-review                    # Review recent changes
/code-review src/api/           # Review specific directory
/code-review --security         # Security-focused review
/code-review --performance      # Performance-focused review
```

## Severity Tiers

| Level | Action | Examples |
|-------|--------|----------|
| **CRITICAL** | Must fix | Security vulnerabilities, data loss risks |
| **HIGH** | Should fix | Performance issues, missing validation |
| **MEDIUM** | Consider | Code duplication, missing types |
| **LOW** | Nice to have | Minor optimizations |
| **NITPICK** | Optional | Style preferences |

## What Gets Reviewed

### Security
- Injection vulnerabilities (SQL, XSS, command)
- Authentication/authorization issues
- Hardcoded secrets
- Input validation gaps

### Performance
- N+1 query patterns
- Unnecessary re-renders
- Missing caching opportunities
- Inefficient algorithms

### Code Quality
- Type annotations
- Error handling
- Code duplication
- Naming conventions

### Testing
- Test coverage for new code
- Edge cases covered
- Test isolation

## Example Output

```markdown
## Code Review Summary

**Files Reviewed:** 3
**Issues Found:** 5

### CRITICAL: SQL Injection
**File:** src/api/users.py:45
```python
# Before
cursor.execute(f"SELECT * FROM users WHERE id = {user_id}")

# After
cursor.execute("SELECT * FROM users WHERE id = ?", (user_id,))
```

### HIGH: Missing Input Validation
**File:** src/api/users.py:23
...
```

## Integration

This command invokes the **Code Reviewer Agent** which:
- Analyzes code for issues across categories
- Provides actionable fix suggestions
- Integrates with security reviewer for auth code
