
Deprecation and migration
Guides an agent through safe deprecation, user migration and expand/contract schema
Deprecation and migration is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 123K
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Deprecation and migration
This skill gives the agent a structured way to retire old systems, APIs or features without breaking the people who depend on them. It frames removal as ongoing maintenance work, walks through a decision checklist for whether something should be kept or sunset, and distinguishes advisory deprecation from compulsory deadlines with migration tooling.
The workflow covers building the replacement first, announcing the deprecation with a migration guide, moving consumers one at a time, and removing the old code only after usage has been verified at zero. It also describes migration patterns such as strangler routing, adapters and feature-flag cutovers, and flags zombie code that has no owner but still has active consumers.
For production databases it lays out an expand, backfill and contract sequence for renaming or dropping columns, with rules for batched backfills, concurrent index builds and tested rollback paths. The skill is plain markdown guidance with code examples in TypeScript and a markdown notice template; it ships no scripts and sets no tool requirements.
When your agent uses it
Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (13 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the agent-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add chrisalehman/bionic
/plugin install agent-skills@bionicOr copy only this skill to ~/.claude/skills/deprecation-and-migration:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/deprecation-and-migration &&
cp -R "$tmp/skills/deprecation-and-migration" ~/.claude/skills/deprecation-and-migration &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/deprecation-and-migration inside it instead.
Copy the skill folder to ~/.agents/skills/deprecation-and-migration to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/deprecation-and-migration &&
cp -R "$tmp/skills/deprecation-and-migration" ~/.agents/skills/deprecation-and-migration &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/deprecation-and-migration inside it instead.
Copy the skill folder to ~/.cursor/skills/deprecation-and-migration to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/deprecation-and-migration &&
cp -R "$tmp/skills/deprecation-and-migration" ~/.cursor/skills/deprecation-and-migration &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/deprecation-and-migration inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/addyosmani/agent-skills.git --path skills/deprecation-and-migrationOr copy the folder to ~/.gemini/skills/deprecation-and-migration yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/deprecation-and-migration:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/deprecation-and-migration &&
cp -R "$tmp/skills/deprecation-and-migration" ~/.copilot/skills/deprecation-and-migration &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/deprecation-and-migration inside it instead.
Get the folder:
git clone --depth 1 https://github.com/addyosmani/agent-skills.gitThen copy agent-skills/skills/deprecation-and-migration into your agent's skills folder as deprecation-and-migration. Agents that support SKILL.md read one folder per skill.
What it does
- Deprecation decision checklist
- Five questions to ask before retiring a system, covering unique value, consumers, replacements, migration cost and maintenance burden.
- Incremental consumer migration
- A step-by-step process for moving users from an old implementation to a replacement one at a time.
- Migration patterns
- Strangler routing, adapter layers and feature-flag cutovers for shifting traffic between old and new code.
- Expand and contract schema changes
- A phased approach for renaming or dropping database columns in production without downtime.
- Zombie code triage
- Signs of unowned code that still has consumers, with guidance to either assign an owner or remove it.
- Verification checklists
- Completion checks for deprecations and schema migrations, including removal of references and tested rollback paths.
Good for
- Plan the sunset of an old internal API and its migration guide
- Rename a production database column without downtime
- Decide whether a legacy service should be maintained or retired
- Move users from one library to its replacement incrementally
- Set up a feature flag to switch traffic between two implementations
- Clean up dead code that still has active consumers
Deprecation and migration FAQ
When does Deprecation and migration trigger?
It is meant for tasks involving removing old systems, APIs or features, migrating users between implementations, changing a production database schema with expand/contract, or deciding whether to maintain or sunset existing code.
Does Deprecation and migration run any scripts or require specific tools?
No. The folder contains only the SKILL.md file, with no scripts, and it does not set any allowed tools.
What does the schema migration guidance recommend?
It recommends adding new nullable columns first, dual-writing and backfilling in batches, switching reads, and dropping the old column in a separate later deploy, with each migration having a tested down path.
Which languages are used in the examples?
The code examples are in TypeScript, along with markdown for the deprecation notice and SQL-style migration concepts.
How do I install Deprecation and migration in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/deprecation-and-migration to use it in all your projects, or to .claude/skills/deprecation-and-migration in one project. Or install the agent-skills plugin, which includes it: /plugin marketplace add chrisalehman/bionic, then /plugin install agent-skills@bionic.
Does Deprecation and migration run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Deprecation and migration?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Deprecation and migration?
The closest alternatives to Deprecation and migration are Deprecation, Dependency upgrade, API versioning helper, Contract design and Principle migrate callers then delete legacy APIS.
Where this comes from
- Description: from the skill's own SKILL.md.
More from addyosmani/agent-skills

Lets your coding agent inspect and test live browser pages through Chrome DevTools
- Open source
- 123K GitHub stars
- Browser automation

Guides an agent through red-green-refactor test-first development and bug reproduction
- Open source
- 123K GitHub stars
- Developer tools

Audits interfaces against WCAG 2.2 AA and guides fixing the violations found
- Open source
- 123K GitHub stars
- Developer tools

Guides designing stable, hard-to-misuse APIs, REST endpoints and module contracts
- Open source
- 123K GitHub stars
- Design and media

Sets up CI/CD quality gates, deployment strategies and rollback plans for agents
- Open source
- 123K GitHub stars
- Developer tools

Guides an agent through multi-axis code review before changes are merged
- Open source
- 123K GitHub stars
- Developer tools




