/clavain:migration-safety [migration file, PR number, or description of data change]from clavain
Runs three parallel agents to assess DB migration safety pre-deploy: data-migration expert, integrity review, and deployment checklist. Produces risk level, verification queries, and go/no-go decision.
Ships in clavain. Installing the plugin adds it to Claude Code.
Runs 3 specialized agents in parallel to produce a comprehensive safety assessment for DB/data-risk work.
<migration_context> #$ARGUMENTS </migration_context>
If empty: Ask: "What data change are you making? Include migration files, affected tables/columns, and whether this touches production data."
Read migration files. Identify: affected tables/columns, schema change vs backfill vs both, production data at risk, reversibility.
Every spawn names a model — execution model: sonnet, validation model: opus, frontier-in-the-loop model: inherit (routing doctrine, commands/model-routing.md). Unpinned spawns inherit the session model.
Task(data-migration-expert, model="sonnet"): "Review for safety: <context>. Check: ID mapping correctness, swapped values, orphaned associations, dual-write patterns. Produce validation queries."
Task(interflux:review:fd-correctness, model="sonnet"): "Review for integrity: <context>. Check: referential integrity, transaction boundaries, privacy compliance, constraint violations. Identify invariants."
Task(interflux:review:fd-safety, model="sonnet"): "Create Go/No-Go checklist for: <context>. Include: pre-deploy verification queries, post-deploy checks, rollback procedure, monitoring plan."
## Migration Safety Assessment
### Summary
- **Migration:** [description]
- **Risk Level:** LOW / MEDIUM / HIGH / CRITICAL
- **Reversible:** yes / no / partial
### Data Migration Expert Findings
### Data Integrity Review
### Deployment Checklist
#### Pre-Deploy
- [ ] [verification query]
- [ ] [backup/snapshot taken]
#### Deploy
- [ ] [migration command + monitoring check]
#### Post-Deploy
- [ ] [verification query + data count comparison]
#### Rollback
- [ ] [rollback steps]
### Go/No-Go Decision
- NO-GO if: [blocking conditions]
- GO if: [all pre-deploy checks pass]
Risk level: [HIGH/MEDIUM/LOW]
1. Proceed (all checks pass)
2. Fix issues first (P1 findings)
3. Review full report
git revert.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
66 commands in this plugin
/bead-sweepScan open beads for stale trackers already implemented — deterministic checks then LLM verification./blast-radiusFind what a change could break somewhere else before it ships, and prove the one fact it is safe because of by running real code/brainstormCollaborative brainstorm — assess clarity, research repo, explore approaches, capture design. Auto-handoff to /write-plan./campaignOrchestrate epic execution — read children, topo-sort by dependencies, dispatch phases sequentially with parallel features/changelogCreate engaging changelogs for recent merges to main branch/clavain-doctorQuick health check — verifies MCP servers, external tools, beads, and plugin configuration without making changesclavain@interagency-marketplace is listed by mistakeknot/interagency-marketplace — review the source before installing
npx claudepluginhub mistakeknot/interagency-marketplace --plugin clavain