
principle-migrate-callers-then-delete-legacy-apis
Apply when introducing a new internal API while old callers still exist
by cursorFree
Description
principle-migrate-callers-then-delete-legacy-apis is an agent skill from Cursor's plugins collection that applies a working principle when a new internal API replaces an old one while old callers still exist. Once the team has decided the new API is the right design, the principle says to migrate the callers and remove the old API in the same refactoring wave, instead of keeping compatibility layers around. The rule is that legacy API paths should not be kept simply because internal callers still use them. The steps are to inventory the callers, migrate them, and delete the old API straight away. Temporary adapters are allowed, but only as exceptions with a time limit, not as the default architecture. Tests should be updated to assert the new contract, and tests that only protect implementation details of the old code should be deleted. The principle applies when no external users rely on backward compatibility, when the project can absorb coordinated breaking changes, and when the new API is part of a simplification effort. The stated reason is that keeping both old and new APIs creates dual-path complexity, slows cleanup, and makes a codebase feel append-only. The skill is useful for teams that are tidying up an internal library or service and are tempted to leave the old interface in place. It is listed on skills.sh, where the page shows install counts and GitHub stars for the Cursor plugins repository. Install it with npx skills add https://github.com/cursor/plugins --skill principle-migrate-callers-then-delete-legacy-apis.…
Highlights
- Migrate callers in the same wave
- Delete the legacy API
- Time-boxed adapters only
- Tests assert the new contract
- Applies when no external users depend on it
- Installs from skills.sh
Ratings & Reviews
No ratings yet
Be the first to rate principle-migrate-callers-then-delete-legacy-apis.
People also visit

legacy-modernizer
Designs incremental migration strategies, identifies service boundaries

principle-outcome-oriented-execution
Apply during planned rewrites and migrations with explicit phase boundaries

tool-rename-deprecation
Ensure renamed built-in tool references preserve backward compatibility

principle-subtract-before-you-add
Apply when sequencing an addition, refactor, or rewrite

refactor-plan
Detailed multi-file refactor planning with safety checks and rollback guidance
principle-migrate-callers-then-delete-legacy-apis FAQ
What does the principle say to do?
Migrate the internal callers and delete the old API in the same refactor wave, rather than keeping compatibility layers.
When does it apply?
When no external users depend on backward compatibility and the project can absorb coordinated breaking changes.
Are adapters allowed?
Only as exceptions, and time-boxed.
How do I install it?
Run npx skills add https://github.com/cursor/plugins --skill principle-migrate-callers-then-delete-legacy-apis.
How popular is it?
The page shows about 3.4K installs, and the cursor/plugins repository has 11.4K GitHub stars.
What are the best principle-migrate-callers-then-delete-legacy-apis alternatives?
Popular alternatives to principle-migrate-callers-then-delete-legacy-apis include legacy-modernizer, principle-outcome-oriented-execution and deprecation-and-migration. See all principle-migrate-callers-then-delete-legacy-apis alternatives













