Loading...
Loading...
Plan zero-downtime schema changes across code, data backfills, and cutovers. Use for expand-contract database changes. NOT for fresh schema design or DBA ops.
npx skill4agent add wyattowalsh/agents schema-evolution-planner| Term | Definition |
|---|---|
| expand | Additive schema change compatible with existing code |
| backfill | Data migration that populates new structures from old data |
| dual-write | Temporarily writing old and new representations |
| dual-read | Temporarily reading from both old and new representations |
| cutover | The point where traffic or logic switches to the new path |
| contract | Removal of deprecated schema after compatibility window closes |
| compatibility window | Period where old and new code must both work |
| invariant | Condition that must remain true during migration |
| shadow column | New field added beside the old field during migration |
| rollback point | Last safe state that can be restored without data loss |
| $ARGUMENTS | Mode |
|---|---|
| Build the full migration sequence |
| Audit an existing evolution plan |
| Design the data backfill strategy |
| Plan read or write switchover |
| Plan the contract and removal stage |
| Natural language about zero-downtime schema changes | Auto-detect the closest mode |
| Empty | Show the mode menu with examples |
| # | Mode | Example |
|---|---|---|
| 1 | Plan | |
| 2 | Review | |
| 3 | Backfill | |
| 4 | Cutover | |
| 5 | Deprecate | |
database-architectrelease-pipeline-architectplanreferences/change-type-decision-matrix.mdreferences/sample-rollout-sequences.mdreferences/output-templates.mdreferences/migration-failure-modes.mdreferences/change-type-decision-matrix.mdreferences/output-templates.mdreferences/migration-failure-modes.mdreferences/output-templates.mdreferences/sample-rollout-sequences.mdreferences/migration-failure-modes.mdreferences/output-templates.mdreferences/output-templates.md| Complexity | Strategy |
|---|---|
| Small | Use a single additive compatibility path for simple renames, nullable adds, or shadow-column introductions. |
| Medium | Use explicit staged execution: expand, deploy compatibility logic, backfill in chunks, validate, cut over, then contract. |
| Large | Treat the change as a rollout program with separate read and write cutovers, evidence gates, and phased consumer movement. |
references/change-type-decision-matrix.mdreferences/migration-failure-modes.mdreferences/sample-rollout-sequences.mdreferences/output-templates.md| File | Purpose | When to Read |
|---|---|---|
| Maps schema change types to safe evolution patterns, compatibility windows, and red flags | Any |
| Catalog of common rollout, backfill, and cutover failure modes with mitigations | |
| Reference expand-contract sequences for common migration shapes | Multi-phase |
| Standard response templates for plans, reviews, backfills, cutovers, and deprecations | Presenting final output in any mode |