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

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

github.com/cursorDevelopment14.6k4.3k installsUpdated 1d ago
Repository

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

A development skill for refactors where backward compatibility is unnecessary. It guides teams to move callers and tests to a new API contract, then remove legacy APIs and implementation-only tests.

Key features

  1. 01Migrate callers to the new API
  2. 02Update tests for the new contract
  3. 03Remove legacy APIs
  4. 04Delete implementation-detail tests

Use cases

  1. 01Simplifying an internal API during a refactor
  2. 02Coordinating breaking changes without external compatibility needs

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/cursor/plugins --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