# Deprecation

> Deprecation is an open-source agent skill for developer tools. Guides an agent to walk a removal's callers and migrate them before deleting code. 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/JasGujral/mokata-oss/tree/main/src/mokata/skills/deprecation
- **Repository:** https://github.com/jasgujral/mokata-oss
- **GitHub stars:** 19
- **License:** Apache-2.0
- **Skill name:** deprecation
- **Collection:** https://github.com/JasGujral/mokata-oss
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill governs work that takes code away: removing a symbol, endpoint, flag or module, migrating callers off an old shape, or retiring a legacy shim. It asks the agent to find the real callers of the thing being removed first, migrate them, and only delete the old path once nothing depends on it. It also prompts the agent to understand why existing code is there before removing it, and to prefer an incremental migration that keeps a shim only while a caller still needs it.

The guidance is built around a few named engineering ideas: Chesterton's Fence, the Strangler Fig migration pattern, and semantic versioning for breaking changes. It includes a rationalizations table and a verification checklist the agent works through before calling a removal complete. A reference file holds the fuller write-up of these principles with their source links.

The skill is written for the mokata pipeline. It expects call-graph tooling such as mokata's callers and blast_radius commands, and when that is unavailable it falls back to reading and grepping for callers. Removal decisions are meant to be recorded through mokata's human-gated memory and audit path rather than a bare commit.

## When your agent uses it

> mokata · Deprecation & migration — remove nothing without walking its blast-radius first.

## What it can access

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

- [Instructions only, no scripts](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/deprecation)
- [License: Apache-2.0](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/deprecation)

## Features

- **Blast-radius before deletion:** Finds the real callers of a symbol and requires them to be migrated before the old path is removed.
- **Incremental migration:** Guides replacing legacy code gradually with a shim kept only while callers need it.
- **Chesterton's Fence check:** Asks the agent to understand why code exists before deleting or simplifying it.
- **Breaking-change versioning:** Treats caller-visible removals as breaking changes that should be announced and versioned.
- **Removal verification checklist:** Provides a checklist the agent works through to confirm a removal is complete and recorded.
- **Decision recording:** Describes saving the reason for a removal so future changes know why the code is gone.

## Good for

- Remove a deprecated API endpoint safely after migrating its callers
- Retire a feature flag and clean up every code path that reads it
- Replace a legacy module with a new implementation one caller at a time
- Delete an unused helper only after confirming nothing still calls it
- Plan a deprecation window before dropping a public function

## Install

### Claude Code

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

```sh
/plugin marketplace add JasGujral/mokata-oss
/plugin install mokata@mostack
```

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/deprecation &&
cp -R "$tmp/src/mokata/skills/deprecation" ~/.claude/skills/deprecation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/deprecation` inside it instead.

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/deprecation &&
cp -R "$tmp/src/mokata/skills/deprecation" ~/.agents/skills/deprecation &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/deprecation` inside it instead.

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/deprecation &&
cp -R "$tmp/src/mokata/skills/deprecation" ~/.cursor/skills/deprecation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/deprecation` 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/JasGujral/mokata-oss.git --path src/mokata/skills/deprecation
```

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

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/deprecation &&
cp -R "$tmp/src/mokata/skills/deprecation" ~/.copilot/skills/deprecation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/deprecation` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git
```

Then copy `mokata-oss/src/mokata/skills/deprecation` into your agent's skills folder as `deprecation`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Deprecation run any scripts?

No, the skill has no scripts. It relies on mokata's callers and blast_radius commands when they are available and otherwise tells the agent to read and grep for callers.

### When does Deprecation trigger?

It is meant to engage when a change removes or retires a symbol, endpoint, flag or module, migrates callers, or deletes a legacy path or shim. It is not meant for purely additive changes or in-place refactors that keep callers intact.

### Which tools does Deprecation need?

The skill does not set an allowed-tools list. Its call-graph steps assume mokata's callers and blast_radius commands, with a fallback to reading and grepping the code.

### How do I install Deprecation in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/deprecation to use it in all your projects, or to .claude/skills/deprecation in one project. Or install the mokata plugin, which includes it: /plugin marketplace add JasGujral/mokata-oss, then /plugin install mokata@mostack.

### Does Deprecation 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?

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?

The closest alternatives to Deprecation are Principle migrate callers then delete legacy APIS, Refactor seams, Principle subtract before you add, Blast radius and Codebase comprehension.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [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.
- [Refactor seams](https://ai-powered.com/skills/refactor-seams): Refactor seams is an open-source agent skill for developer tools.
- [Principle subtract before you add](https://ai-powered.com/skills/principle-subtract-before-you-add): Principle subtract before you add is an open-source agent skill for developer tools.
- [Blast radius](https://ai-powered.com/skills/blast-radius-michael-denyer): Blast radius is an open-source agent skill for developer tools.
- [Codebase comprehension](https://ai-powered.com/skills/codebase-comprehension): Codebase comprehension is an open-source agent skill for developer tools.
- [Refactor](https://ai-powered.com/skills/refactor): Refactor is an open-source agent skill for developer tools.
- [Principle laziness protocol](https://ai-powered.com/skills/principle-laziness-protocol): Principle laziness protocol is an open-source agent skill for developer tools.
- [Safe change](https://ai-powered.com/skills/safe-change): Safe change is an open-source agent skill for developer tools.

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