/deprecation-migration:deprecation-migrationfrom deprecation-migration
Plans deprecations and migrations: whether to sunset or keep a system, moving consumers off an old API, library or feature safely, and zero-downtime schema changes via expand/contract. Use for "sunset the v1 API", "migrate users off the legacy service", "remove this feature safely", "rename or drop a column without downtime".
Ships in deprecation-migration. 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.
Read when SKILL.md points to them.
Code is a liability: every line carries tests, patches, dependency updates and onboarding cost. Deprecation removes code that no longer earns its keep; migration moves its consumers to the replacement without breaking them.
Related, if installed: db-schema-design for designing the schema and its migration files (this skill covers the rollout sequence), postgres or mysql for engine-specific locking, api-rest-design for API versioning and deprecation headers, rollout-plan for staged rollout and rollback of the deploys themselves.
Answer these before deprecating anything:
search_code / search_graph in codebase-memory), don't guess.Advisory or compulsory. Default to advisory (warnings, docs, consumers move on their own timeline) when the old system is stable. Go compulsory (a hard removal date) only for security issues, blocked progress or unsustainable cost, and then you owe migration tooling, docs and support, not only a date.
Deprecation/Sunset response headers, @deprecated annotations).Patterns for steps 3 and 4 (strangler, adapter, per-consumer feature flag) with examples: read references/migration-patterns.md when choosing how to route consumers from old to new.
Data is the one thing a code revert can't roll back. The failure mode is coupling a schema change to the code change: rename a column in the release that starts using the new name, and during the rollout window, when old and new code run at once, one of them queries a column that doesn't exist. Never change a column in place; migrate in additive phases so old and new code are both valid at every step.
Renaming name to full_name:
full_name, nullable. Deploy. Old code ignores it.name to full_name for existing rows in throttled batches, off the hot path; one UPDATE over millions of rows locks the table and floods replication.full_name, still writing both. Deploy and let it bake.name; then, in a separate later deploy, drop it.Each step deploys on its own and can be rolled back: if step 4 misbehaves, revert the code and full_name is still being filled.
Rules:
down before merging.CREATE INDEX CONCURRENTLY, which can't run inside a transaction block and leaves an INVALID index to drop and retry if it fails; MySQL online DDL with ALGORITHM=INPLACE, LOCK=NONE where supported).Code nobody owns but everybody depends on: no commits in months while consumers stay active, no maintainer, failing tests nobody fixes, vulnerable dependencies nobody bumps, docs pointing at systems that are gone. It either gets an owner and real maintenance, or a deprecation with a concrete migration plan. It can't stay in limbo.
Deprecation:
Schema migration:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin deprecation-migration