/dmi-superpowers:migrating-safelyfrom dmi-superpowers
Use when replacing or removing a database shape, public API, event contract, dependency, service, or feature that active consumers must leave without downtime or data loss
Ships in dmi-superpowers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Make every migration phase independently deployable, observable, and reversible. Old and new binaries may run together during a rollout; preserve a compatible state until evidence shows every consumer has moved.
Coexistence invariant: while any old or rollback-image producer can run, every new database/API/event field is optional to consumers. Every new producer continues emitting the old representation. State both directions separately for the database, API, and events; no later task may tighten the new field yet. A coexistence schema that lists the new field as required is invalid while an old or rollback producer can omit it.
Do not infer migration scope from search hits alone. Build a census:
| Consumer | Reads | Writes | Contract | Owner | Current usage evidence |
|---|
Include application code, jobs, scripts, reports, database access, public API clients, emitted and consumed events, caches, and operational tooling. Give each consumer its own usage signal; an aggregate counter cannot prove that a quiet consumer has migrated.
Use separate tasks and deploys for phases whose rollback or compatibility conditions differ:
One task may not combine two numbered phases. In particular, bridging writes does not switch reads, and reads do not switch until the historical backfill has reconciled successfully.
If a system has no historical data, write bridge, or external consumers, mark
that phase Not applicable with evidence rather than silently omitting it.
Record these fields in the plan:
Rollback usually means reverting application behavior while retaining additive schema or data. Do not make rollback delete newly collected data.
Contract is a separate, final change. Before it begins, require observed zero usage for every inventoried surface during the agreed bake period:
Search results and passing tests support this gate but do not replace production usage evidence. If telemetry cannot distinguish consumers, add that telemetry before migration.
Zero use means zero access to or emission of the legacy field, including dual-field traffic. Counting only traffic that contains the old field without the new one is insufficient.
A backfill must be idempotent and resumable from a durable checkpoint. Use a dedicated migration ledger keyed by batch range with status, attempts, and last update; do not infer progress only from partially written destination rows. Specify batch key/order, batch size, throttling signal, retry policy, lock strategy, reconciliation query, and completion criterion. Expose completed, pending, retrying, failed, and divergent row/range counts plus checkpoint lag. Commit progress only after the batch mutation and post-write reconciliation succeed. Record failed attempts in durable state that survives rollback of the data mutation. Test a failed batch, retry, stopped run, and resumed run; prove that progress neither skips work nor advances on rollback. A high-water mark advances only across a contiguous completed range. If locking or concurrency can skip rows, keep skipped ranges in a durable pending set and requeue them; completion requires that set to be empty. Reconciliation detects omissions but is not a substitute for making them eligible again. Do not put an unbounded table update on the request path or in the schema deploy.
Before the first production batch, the plan must name the ledger schema, batch key, a concrete initial batch size, throttle signal and threshold, retry policy, and all progress metrics above. “Choose during rollout” or “add after the first batch” does not pass this gate.
Report the current phase, evidence actually observed, remaining consumers, rollback state, and next gated phase. Never describe a migration as complete because code for later phases exists or because proposed checks are expected to pass.
down migration the rollback planWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hundredbillion/dmi_superpowers --plugin dmi-superpowers30 skills in this plugin
/brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./creating-a-pull-requestUse when opening, creating, or writing a pull request, pushing a branch for review, or running gh pr create - covers the PR title, body, and evidence so the description reads for both a non-developer and a developer.