Skip to content
Skill

Principle migrate callers then delete legacy APIS

Guides an agent to migrate internal API callers and remove the old API in one pass

Principle migrate callers then delete legacy APIS is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
5.1K
Last commit
License
MIT
Listing updated

Similar skills

About Principle migrate callers then delete legacy APIS

This skill tells the agent how to handle a refactor where a new internal API replaces an old one while the old callers still exist. Instead of keeping shims or compatibility layers around, the agent is directed to update every caller to the new contract and delete the legacy API within the same change.

The guidance also covers tests: existing tests should be rewritten to assert the new contract, and tests that only pin down implementation details from before the refactor should be removed rather than preserved.

The skill is written for projects where no external users rely on backward compatibility and where coordinated breaking changes are acceptable, such as simplification or refactor initiatives. It is a plain instruction file with no scripts, and it has no tool requirements beyond what the agent already uses to edit code and run tests.

When your agent uses it

Apply when introducing a new internal API while old callers still exist. Migrate callers and delete the old API in the same wave instead of preserving compatibility layers.

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 (671 bytes) 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 pstack plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add michael-denyer/pstack-claude
/plugin install pstack@pstack-claude

Or copy only this skill to ~/.claude/skills/principle-migrate-callers-then-delete-legacy-apis:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/principle-migrate-callers-then-delete-legacy-apis &&
cp -R "$tmp/plugins/pstack/skills/principle-migrate-callers-then-delete-legacy-apis" ~/.claude/skills/principle-migrate-callers-then-delete-legacy-apis &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/principle-migrate-callers-then-delete-legacy-apis inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/principle-migrate-callers-then-delete-legacy-apis to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/principle-migrate-callers-then-delete-legacy-apis &&
cp -R "$tmp/plugins/pstack/skills/principle-migrate-callers-then-delete-legacy-apis" ~/.agents/skills/principle-migrate-callers-then-delete-legacy-apis &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/principle-migrate-callers-then-delete-legacy-apis inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/principle-migrate-callers-then-delete-legacy-apis to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/principle-migrate-callers-then-delete-legacy-apis &&
cp -R "$tmp/plugins/pstack/skills/principle-migrate-callers-then-delete-legacy-apis" ~/.cursor/skills/principle-migrate-callers-then-delete-legacy-apis &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/principle-migrate-callers-then-delete-legacy-apis 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/michael-denyer/pstack-claude.git --path plugins/pstack/skills/principle-migrate-callers-then-delete-legacy-apis

Or copy the folder to ~/.gemini/skills/principle-migrate-callers-then-delete-legacy-apis yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/principle-migrate-callers-then-delete-legacy-apis:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/principle-migrate-callers-then-delete-legacy-apis &&
cp -R "$tmp/plugins/pstack/skills/principle-migrate-callers-then-delete-legacy-apis" ~/.copilot/skills/principle-migrate-callers-then-delete-legacy-apis &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/principle-migrate-callers-then-delete-legacy-apis inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git

Then copy pstack-claude/plugins/pstack/skills/principle-migrate-callers-then-delete-legacy-apis into your agent's skills folder as principle-migrate-callers-then-delete-legacy-apis. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Caller migration step
Directs the agent to update every existing caller to use the new API in the same wave.
Legacy API removal
Tells the agent to delete the old API rather than leave it behind as a fallback.
No compatibility shims
Discourages adapter layers and backward-compatible wrappers during internal refactors.
Test contract updates
Asks the agent to rewrite tests against the new contract and drop tests of old internals.
Applicability checks
Lists conditions under which the approach fits, such as no external dependents and an acceptable breaking-change budget.

Good for

  • Replace an internal service method and update all of its call sites
  • Retire an old helper module after introducing its successor
  • Remove a deprecated internal interface during a simplification refactor
  • Rewrite test suites so they check the new internal contract

Principle migrate callers then delete legacy APIS FAQ

When does Principle migrate callers then delete legacy APIS apply?

It applies when a new internal API is introduced while old callers still exist, and the project has no external users depending on backward compatibility.

Does Principle migrate callers then delete legacy APIS keep the old API for compatibility?

No. The skill instructs the agent to migrate callers and delete the legacy API in the same wave instead of preserving compatibility layers.

What does Principle migrate callers then delete legacy APIS do with existing tests?

Tests should be updated to assert the new contract, and tests that only protect pre-refactor implementation details should be deleted.

Does Principle migrate callers then delete legacy APIS run any scripts?

No. The skill folder contains no scripts; it consists of instructions only.

How do I install Principle migrate callers then delete legacy APIS in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/principle-migrate-callers-then-delete-legacy-apis to use it in all your projects, or to .claude/skills/principle-migrate-callers-then-delete-legacy-apis in one project. Or install the pstack plugin, which includes it: /plugin marketplace add michael-denyer/pstack-claude, then /plugin install pstack@pstack-claude.

Does Principle migrate callers then delete legacy APIS 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 Principle migrate callers then delete legacy APIS?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Principle migrate callers then delete legacy APIS?

The closest alternatives to Principle migrate callers then delete legacy APIS are Deprecation, API, Principle outcome oriented execution, API versioning helper and Refactor seams.

Where this comes from

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

More from michael-denyer/pstack-claude

  1. Makes the agent read pstack's poteto-mode skill first and follow its routing

    • Open source
    • 5.1K GitHub stars
    • Developer tools
  2. Has the agent restate your goals and the problem you're solving in its own words

    • Open source
    • 5.1K GitHub stars
    • Productivity
  3. Sketches types, signatures and module layout before the agent writes code

    • Open source
    • 5.1K GitHub stars
    • Developer tools
  4. Runs parallel candidate attempts at a task, then merges the best parts into one artifact

    • Open source
    • 5.1K GitHub stars
    • Developer tools
  5. Drafts a personal working-style skill from your past agent conversations

    • Open source
    • 5.1K GitHub stars
    • Developer tools