From agents
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 claudepluginhub wyattowalsh/agents --plugin agentsThis skill uses the workspace's default tool permissions.
Plan safe, staged database schema changes across application code, backfills,
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Plan safe, staged database schema changes across application code, backfills, and cutovers.
Scope: Expand-contract and compatibility planning for live systems. NOT for greenfield schema design (database-architect) or DBA operations.
| 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 |
|---|---|
plan <change> | Build the full migration sequence |
review <migration or rollout> | Audit an existing evolution plan |
backfill <change> | Design the data backfill strategy |
cutover <change> | Plan read or write switchover |
deprecate <change> | 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 | plan rename users.username to handle |
| 2 | Review | review migration plan for orders status enum change |
| 3 | Backfill | backfill new account_id on invoices |
| 4 | Cutover | cutover reads to new customer_profile table |
| 5 | Deprecate | deprecate legacy address columns |
Use this as the classification gate before choosing a mode:
database-architect.release-pipeline-architect.plan mode and explicitly decide whether the change is additive evolution or a broader redesign.references/change-type-decision-matrix.md to pick the safest expand-contract pattern for the change type.references/sample-rollout-sequences.md if the change touches multiple deploys, readers, writers, or downstream consumers.references/output-templates.md.references/migration-failure-modes.md and references/change-type-decision-matrix.md.references/output-templates.md.references/migration-failure-modes.md for duplicate-write, drift, and reconciliation hazards.references/output-templates.md.references/sample-rollout-sequences.md and references/migration-failure-modes.md for abort and rollback patterns.references/output-templates.md.references/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.md on demand for change classification and ambiguity handling.references/migration-failure-modes.md on demand for reviews, backfills, and cutovers.references/sample-rollout-sequences.md on demand for multi-phase execution planning.references/output-templates.md on demand when presenting the final response.| File | Purpose | When to Read |
|---|---|---|
references/change-type-decision-matrix.md | Maps schema change types to safe evolution patterns, compatibility windows, and red flags | Any plan or review request |
references/migration-failure-modes.md | Catalog of common rollout, backfill, and cutover failure modes with mitigations | review, backfill, or cutover work |
references/sample-rollout-sequences.md | Reference expand-contract sequences for common migration shapes | Multi-phase plan or cutover work |
references/output-templates.md | Standard response templates for plans, reviews, backfills, cutovers, and deprecations | Presenting final output in any mode |
IS for: zero-downtime renames, splits, merges, backfills, staged cutovers, compatibility sequencing.
NOT for: greenfield schema modeling, query tuning, or database administration.