# Deprecation and migration

> Deprecation and migration is an open-source agent skill for developer tools. Guides an agent through safe deprecation, user migration and expand/contract schema. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/addyosmani/agent-skills/tree/main/skills/deprecation-and-migration
- **Repository:** https://github.com/addyosmani/agent-skills
- **GitHub stars:** 122,545
- **License:** MIT
- **Skill name:** deprecation-and-migration
- **Collection:** https://github.com/addyosmani/agent-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/addyosmani/agent-skills/tree/HEAD/skills/deprecation-and-migration)
- [License: MIT](https://github.com/addyosmani/agent-skills/tree/HEAD/skills/deprecation-and-migration)

## Features

- **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

## Install

### Claude Code

This skill ships in the `agent-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add chrisalehman/bionic
/plugin install agent-skills@bionic
```

Or copy only this skill to `~/.claude/skills/deprecation-and-migration`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/deprecation-and-migration` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/deprecation-and-migration` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/addyosmani/agent-skills.git --path skills/deprecation-and-migration
```

Or copy the folder to `~/.gemini/skills/deprecation-and-migration` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/deprecation-and-migration`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/addyosmani/agent-skills.git
```

Then 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.

## 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.

## Alternatives

- [Deprecation](https://ai-powered.com/skills/deprecation): Deprecation is an open-source agent skill for developer tools.
- [Dependency upgrade](https://ai-powered.com/skills/dependency-upgrade): Dependency upgrade is an open-source agent skill for developer tools.
- [API versioning helper](https://ai-powered.com/skills/api-versioning-helper): API versioning helper is an open-source agent skill for developer tools.
- [Contract design](https://ai-powered.com/skills/contract-design): Contract design is an open-source agent skill for developer tools.
- [Principle migrate callers then delete legacy APIS](https://ai-powered.com/skills/principle-migrate-callers-then-delete-legacy-apis): Principle migrate callers then delete legacy APIS is an open-source agent skill for developer tools.
- [Database migrations](https://ai-powered.com/skills/database-migrations-nabwinsaud): Database migrations is an open-source agent skill for databases.
- [Spec driven develop](https://ai-powered.com/skills/spec-driven-develop): Spec driven develop is an open-source agent skill for developer tools.
- [Review homecore migration](https://ai-powered.com/skills/review-homecore-migration): Review homecore migration is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/deprecation-and-migration
