P
principle-migrate-callers-then-delete-legacy-apis
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
- 01Migrate callers to the new contract
- 02Update tests for the new behavior
- 03Remove legacy APIs
- 04Delete tests tied to implementation details
Use cases
- 01Simplify an API during a refactor
- 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-apisAfter installing, type/principle-migrate-callers-then-delete-legacy-apisin Claude Code to confirm it loaded.
Bundled filesagents/openai.yaml
Details
From the project READMEMigrate 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