Migration Planning
Purpose
Plan a safe, incremental migration from a current state to a target state, keeping the system working between steps where possible and preserving a rollback path. Produces a migration work item in ../../work-items/migrations/.
When to Use
- Request classified as migration (framework/version/data/schema/infra).
- Not for in-place feature work or behavior-preserving cleanup.
Inputs
- Current state and target state (versions, schema, infra).
- Audit findings (
existing-project-audit, dependency-audit, environment-audit).
Discovery Questions
- What is the exact from → to, and why now?
- What breaks between them (breaking changes, data shape, contracts)?
- Can old and new coexist during transition (compatibility window)?
- What is the rollback plan, and are backups in place for data/schema?
- Is production involved (requires approval)?
Responsibilities
- Characterize the gap (from → to) and breaking changes.
- Plan incremental, reversible steps with a compatibility strategy.
- Define per-step verification and a rollback path.
- Define an explicit cutover with go/no-go criteria.
- For data/schema: require backups and a tested rollback.
- Flag production steps for approval (
../../mcp/PERMISSION_RULES.md).
Required Workflow
- Audit current + target state; list breaking changes.
- Design a compatibility strategy (dual-run/adapters where possible).
- Break into incremental, reversible steps.
- Define verification per step + rollback.
- Define cutover criteria.
- Record the migration work item; mark approval-required steps.
Decision Rules
- Prefer incremental + reversible over big-bang cutover.
- Data/schema migrations require backups and a tested rollback before running.
- Keep the system functional between steps whenever feasible.
- Production migrations are outward-facing — explicit approval (
../../system/OPERATING_RULES.md).
Rules
- No irreversible data step without a verified backup/rollback.
- Verify at each step, not just at the end.
- Record the "why now" and the cutover criteria.
Anti-Patterns
- Big-bang production migration with no rollback.
- Skipping the compatibility window when one is feasible.
- Running data migrations without backups.
- Cutting over without go/no-go criteria.
Validation Checklist
Definition of Done
A recorded migration work item: characterized gap, compatibility strategy, incremental reversible steps with verification and rollback, backup plan for data/schema, and explicit cutover criteria — with production steps flagged for approval.
Related Skills
existing-project-audit, dependency-audit, environment-audit, task-planning, testing-strategy, security-review, release-planning, project-orchestrator.
Related Knowledge
../../knowledge/ (current architecture, data model).
Related References
../../references/<migration-topic>/ for framework upgrade guides if needed.
Context Loading Guidance
- Requires: current + target state, audit findings, breaking-change info.
- Does not require: unrelated modules, the full reference tree, unrelated skills.
- May load:
dependency-audit, environment-audit, release-planning for cutover.
- Stop when: steps, verification, rollback, and cutover are recorded.
Token Efficiency Guidance
Focus on the changed surface (deps, schema, config), not the whole app. Summarize breaking changes; link upgrade guides rather than pasting them.
1---2name: migration-planning3description: Use to plan a move from one state to another (framework/version/data/schema/infra) safely and incrementally, with a compatibility strategy, per-step verification, a rollback path, and an explicit cutover. Production migrations require approval.4---56# Migration Planning78## Purpose910Plan a safe, incremental migration from a current state to a target state, keeping the system working between steps where possible and preserving a rollback path. Produces a migration work item in `../../work-items/migrations/`.1112## When to Use1314- Request classified as **migration** (framework/version/data/schema/infra).15- **Not** for in-place feature work or behavior-preserving cleanup.1617## Inputs1819- Current state and target state (versions, schema, infra).20- Audit findings (`existing-project-audit`, `dependency-audit`, `environment-audit`).2122## Discovery Questions2324- What is the exact from → to, and why now?25- What breaks between them (breaking changes, data shape, contracts)?26- Can old and new coexist during transition (compatibility window)?27- What is the rollback plan, and are backups in place for data/schema?28- Is production involved (requires approval)?2930## Responsibilities3132- Characterize the **gap** (from → to) and breaking changes.33- Plan **incremental, reversible steps** with a compatibility strategy.34- Define **per-step verification** and a **rollback path**.35- Define an explicit **cutover** with go/no-go criteria.36- For data/schema: require **backups** and a tested rollback.37- Flag production steps for approval (`../../mcp/PERMISSION_RULES.md`).3839## Required Workflow40411. Audit current + target state; list breaking changes.422. Design a compatibility strategy (dual-run/adapters where possible).433. Break into incremental, reversible steps.444. Define verification per step + rollback.455. Define cutover criteria.466. Record the migration work item; mark approval-required steps.4748## Decision Rules4950- Prefer incremental + reversible over big-bang cutover.51- Data/schema migrations require backups and a tested rollback before running.52- Keep the system functional between steps whenever feasible.53- Production migrations are outward-facing — explicit approval (`../../system/OPERATING_RULES.md`).5455## Rules5657- No irreversible data step without a verified backup/rollback.58- Verify at each step, not just at the end.59- Record the "why now" and the cutover criteria.6061## Anti-Patterns6263- Big-bang production migration with no rollback.64- Skipping the compatibility window when one is feasible.65- Running data migrations without backups.66- Cutting over without go/no-go criteria.6768## Validation Checklist6970- [ ] From → to and breaking changes characterized.71- [ ] Compatibility strategy defined.72- [ ] Incremental reversible steps.73- [ ] Per-step verification + rollback.74- [ ] Backups planned for data/schema.75- [ ] Cutover criteria defined.76- [ ] Production steps flagged for approval.7778## Definition of Done7980A recorded migration work item: characterized gap, compatibility strategy, incremental reversible steps with verification and rollback, backup plan for data/schema, and explicit cutover criteria — with production steps flagged for approval.8182## Related Skills8384`existing-project-audit`, `dependency-audit`, `environment-audit`, `task-planning`, `testing-strategy`, `security-review`, `release-planning`, `project-orchestrator`.8586## Related Knowledge8788`../../knowledge/` (current architecture, data model).8990## Related References9192`../../references/<migration-topic>/` for framework upgrade guides if needed.9394## Context Loading Guidance9596- **Requires:** current + target state, audit findings, breaking-change info.97- **Does not require:** unrelated modules, the full reference tree, unrelated skills.98- **May load:** `dependency-audit`, `environment-audit`, `release-planning` for cutover.99- **Stop when:** steps, verification, rollback, and cutover are recorded.100101## Token Efficiency Guidance102103Focus on the changed surface (deps, schema, config), not the whole app. Summarize breaking changes; link upgrade guides rather than pasting them.