**TL;DR**: `/learn` - Extract patterns from current session for future skill building.

---

## Usage

```bash
/learn                      # Extract patterns from session
/learn --review             # Review extracted patterns
/learn --export             # Export to skills directory
```

## What Gets Learned

### Code Patterns
- Recurring solutions applied
- Error fixes that worked
- Refactoring approaches used

### Workflow Patterns
- Commands used frequently
- Verification steps taken
- Documentation practices

### Project-Specific
- Naming conventions observed
- Architecture patterns used
- Testing approaches applied

## Example Output

```markdown
Session Learning Report
=======================

## Patterns Detected

### 1. Error Handling Pattern
Used 5 times this session:
```python
try:
    result = operation()
except SpecificError as e:
    logger.error("operation_failed", error=str(e))
    raise ValidationError(f"Failed: {e}") from e
```

### 2. Test Pattern
Used 3 times:
```python
@pytest.mark.parametrize("input,expected", [...])
def test_function(input, expected):
    assert function(input) == expected
```

### 3. API Pattern
Used 2 times:
```python
@router.post("/resource", status_code=201)
def create_resource(data: CreateRequest) -> Resource:
    ...
```

## Suggested Skills

These patterns could become skills:
- [ ] Error handling with structured logging
- [ ] Parametrized testing approach
- [ ] REST API endpoint pattern

Export to skills? [y/N]:
```

## Integration

This command:
- Analyzes session history
- Identifies recurring patterns
- Suggests skill extractions
- Can export to `.claude/skills/`
