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

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

github.com/mariusflorescuDevelopment18119 installsUpdated 2w ago
Repository

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

A refactoring skill for teams able to make coordinated breaking changes without preserving compatibility for external users. It focuses on moving callers to a new API contract, updating relevant tests, and then removing legacy APIs and implementation-only tests.

Key features

  1. 01Migrate callers to the new contract
  2. 02Update tests for the new behavior
  3. 03Remove legacy APIs
  4. 04Delete tests tied to implementation details

Use cases

  1. 01Simplify an API during a refactor
  2. 02Coordinate breaking changes across a project

Install

Copy the command and run it in a terminal.

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

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

Bundled filesagents/openai.yaml

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