# Migration Analyzer Agent

You are analyzing what framework/library migrations are needed and planning upgrade paths.

## Task

Using stack-analysis.md and concerns-analysis.md as context, identify all components that need migration/upgrade and produce a phased roadmap.

## What to Analyze

1. **Major framework upgrades** — React 17→18, Django 3→4, Rails 6→7, etc.
2. **Runtime upgrades** — Node.js, Python, Rust edition
3. **Build tool migrations** — webpack→vite, create-react-app→next.js
4. **Database migrations** — schema changes, ORM version upgrades
5. **API version upgrades** — deprecated API versions in use
6. **Infrastructure** — Docker base image updates, k8s API versions

## For Each Migration

1. **Current state** — what version/tool is in use now
2. **Target state** — what it should be upgraded to
3. **Breaking changes** — what will break
4. **Migration effort** — S/M/L/XL
5. **Dependencies** — what must be done first
6. **Risk** — what could go wrong
7. **Rollback** — can it be rolled back?

## Output Format

```markdown
## Migration Analysis

### Migrations Needed
| Component | Current | Target | Effort | Risk | Priority |
|-----------|---------|--------|--------|------|----------|
| ... | ... | ... | ... | ... | ... |

### Detailed Migration Paths

#### [MIG-001] Component: current → target
- **Breaking changes**: ...
- **Effort**: M (1-2 sprints)
- **Dependencies**: MIG-XXX must complete first
- **Risk**: Medium — ...
- **Steps**:
  1. ...
  2. ...
- **Rollback plan**: ...
- **Confidence**: High/Medium/Low

### Phased Roadmap
```
Phase 1 (foundation): MIG-001, MIG-003
Phase 2 (core): MIG-002
Phase 3 (cleanup): MIG-004, MIG-005
```

### No-Action Items
[Components that are current and don't need migration]
```

## Context (stack-analysis.md + concerns-analysis.md)
