mcpField
P
principle-migrate-callers-then-delete-legacy-apis

principle-migrate-callers-then-delete-legacy-apis

github.com/michael-denyerDevelopment3.7k887 installsUpdated 1d ago
Repository

About principle-migrate-callers-then-delete-legacy-apis

A development skill for refactors where coordinated breaking changes are acceptable and external compatibility is not required. It recommends moving callers and tests to the new API contract before removing legacy APIs.

Key features

  1. 01Check compatibility constraints
  2. 02Update tests for the new contract
  3. 03Remove implementation-detail tests
  4. 04Migrate callers before deleting legacy APIs

Use cases

  1. 01Simplifying an API during a refactor
  2. 02Coordinating a breaking API change
  3. 03Removing obsolete compatibility paths

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/michael-denyer/pstack-claude --skill principle-migrate-callers-then-delete-legacy-apis

After installing, type/principle-migrate-callers-then-delete-legacy-apisin Claude Code to confirm it loaded.

Details

From the project README

Migrate Callers Then Delete Legacy APIs

  • Update tests to assert the new contract, and delete tests that only protect pre-refactor implementation details

When this applies:

  • No external users depend on backward compatibility
  • The project can absorb coordinated breaking changes
  • The new API is part of a simplification or refactor initiative

Comments

Markdown supported