Skip to content
Skill

Deprecation

Guides an agent to walk a removal's callers and migrate them before deleting code

Deprecation 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
19
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Deprecation

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.

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 2 files (15 KB) on GitHub on 1 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 mokata plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

gemini skills install https://github.com/JasGujral/mokata-oss.git --path src/mokata/skills/deprecation

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

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

More from JasGujral/mokata-oss

  1. Makes the agent design API contracts first and check callers before changing them

    • Open source
    • 19 GitHub stars
    • Developer tools
  2. Gives an agent NestJS rules for guards, DTO validation, modules and tests

    • Open source
    • 19 GitHub stars
    • Developer tools
  3. Guides an agent through Socratic exploration of an approach before any spec or code

    • Open source
    • 19 GitHub stars
    • Developer tools
  4. Guides an agent to capture live browser console, network and page state for tests

    • Open source
    • 19 GitHub stars
    • Developer tools
  5. Guides the agent to reproduce a reported bug with a failing test before fixing it

    • Open source
    • 19 GitHub stars
    • Developer tools
  6. Guides an agent on CI/CD pipelines, release builds and pinned supply-chain posture

    • Open source
    • 19 GitHub stars
    • Developer tools