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

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

github.com/ericlitmanDevelopment54247 installsUpdated 1w ago
Repository

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

A refactoring principle for projects that can coordinate breaking changes and do not need backward compatibility for external users. It recommends migrating callers and updating tests before removing legacy APIs.

Key features

  1. 01Migrate API callers first
  2. 02Update tests for the new contract
  3. 03Remove tests tied only to implementation details
  4. 04Use when breaking changes are acceptable

Use cases

  1. 01Simplify or refactor an API
  2. 02Coordinate breaking changes across a project
  3. 03Remove legacy interfaces without external compatibility needs

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/ericlitman/open-pstack --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