/migration-safety:migration-safetyfrom migration-safety
Analyze proposed schema migrations, dependency upgrades, and breaking changes for production safety. Use when adding or changing DB migrations, bumping major versions of dependencies, modifying APIs that have external consumers, or touching lockfiles. Triggers on "migration", "schema change", "upgrade dep", "breaking change", "lockfile bump", and on any diff that touches `migrations/`, `package.json`, `requirements.txt`, `Cargo.lock`, `Gemfile.lock`, `go.sum`, or `**/*.migration.sql`.
Ships in migration-safety. 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.
This skill is registered in pilot's routing table (Phase 7.5 Migration) but its full content is queued for a follow-up session. Until then, this file performs the role of a transparent redirect: when pilot routes here, hand off to a working fallback that covers the same use case, and document what the full skill will do so the redirect feels honest, not broken.
to-issues to break the migration into a tracer-bullet sequence: write the forward migration, write the reverse migration, dry-run the forward on a snapshot of prod data, write the rollback playbook, ship the forward with a feature flag.diagnose to assess regression risk: read the dep's CHANGELOG, identify every BREAKING entry, grep the codebase for callsites, surface what's likely to break.to-prd to make the contract change explicit, then superpowers:requesting-code-review to gate external-consumer impact.State explicitly to the user: "migration-safety is scaffold-only; using <fallback> for this turn."
For each migration touching live tables:
ACCESS EXCLUSIVE, SHARE, etc.)CREATE INDEX CONCURRENTLY, two-step add-column-with-default, etc.)MIGRATION-SAFETY.md block.information_schema / equivalentBREAKING / MAJOR entries between the current and target versionBREAKING-IMPACT.md with a table: API → callsite count → suggested migrationFull skill writes MIGRATION-SAFETY.md to the phase artifact directory (.planning/phase-XX/MIGRATION-SAFETY.md when GSD project state exists, else docs/migration-safety/<branch>.md).
The report sections mirror sections 1-5 above. Each section has a verdict: PASS / CAUTION / BLOCK. Any BLOCK halts the Pre-deploy phase until resolved.
ALTER TABLE), MySQL, SQLite, Rails ActiveRecord, Django, Alembic.package.json, package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, Pipfile.lock, Cargo.lock, Gemfile.lock, go.sum.MIGRATION-SAFETY.md artifact with all 5 sections populated./pilot-doctor — a "branch ship-readiness" check that surfaces any BLOCK verdicts.tests/skills/migration-safety/ covering at least: lock-blocking migration, missing reverse migration, major dep bump with breaking-change scan.git diff includes paths matching migrations/, package.json, requirements.txt, Cargo.lock, Gemfile.lock, go.sum, **/*.migration.sqlFull content scheduled for a follow-up session. See docs/superpowers/plans/2026-05-20-production-hardening.md for the implementation queue. Until then, the redirect above keeps users unblocked.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub bhargavch19/claude-pilot --plugin migration-safety