**TL;DR**: `/plan [feature]` - Create detailed implementation plan before coding. Get approval, then execute.

---

## Usage

```bash
/plan                       # Plan current task
/plan add user auth         # Plan specific feature
/plan --approve             # Approve and begin execution
/plan --revise              # Request changes to plan
```

## What You Get

### 1. Requirements Analysis
- Clarified requirements from original request
- Scope definition (in/out of scope)
- Dependencies identified

### 2. Technical Analysis
- Files to create/modify
- Database changes needed
- External dependencies

### 3. Risk Assessment
- Potential issues identified
- Mitigation strategies
- Rollback plans

### 4. Step-by-Step Implementation
- Ordered task list
- TDD integration (tests first)
- Verification checkpoints

## Example Output

```markdown
# Implementation Plan: User Authentication

## Summary
Add JWT-based authentication with email/password login.

## Requirements
- User registration with email/password
- Login returns JWT token
- Protected routes require valid token

## Technical Approach
Use PyJWT for tokens, bcrypt for password hashing.

## Files to Create/Modify
| File | Action | Description |
|------|--------|-------------|
| `src/auth.py` | Create | Auth endpoints |
| `src/models/user.py` | Modify | Add password field |

## Implementation Steps (TDD)
1. [ ] Write failing test for User.set_password()
2. [ ] Implement password hashing
3. [ ] Write failing test for /register
4. [ ] Implement registration endpoint
...
```

## Integration

This command invokes the **Planner Agent** which:
- Creates comprehensive plans
- Integrates with TDD workflow
- Gets user confirmation before execution
- Tracks progress through implementation
