Principle Migrate Callers Then Delete Legacy Apis principle-migrate-callers-then-delete-legacy-apis
Apply when introducing a new internal API while old callers still exist. Migrate callers and delete the old API in the same wave instead of preserving compatibility layers.
Works in Claude, ChatGPT, Codex and more
- Our test
- 6/10
- tested Dec 6, 2026
- GitHub stars
- 20k
- elizaos/eliza
- Added by
- 0
- members
- Updated
- Dec 6
- commit e932464
- Content
- 1 file
- no scripts · 1 KB
- License
- MIT
- free to use
What our test found
The skill gives a clear, useful migration principle and sensible applicability conditions, but offers little guidance for finding callers or validating a complete migration.
Request we tested it on“We’re replacing an internal API with a simpler one. How should we handle the old API and its callers?”
Limits spotted
- Does not explain how to identify all callers or external consumers.
- Provides no checklist or validation steps for a safe coordinated migration.
name: principle-migrate-callers-then-delete-legacy-apis description: "Apply when introducing a new internal API while old callers still exist. Migrate callers and delete the old API in the same wave instead of preserving compatibility layers." disable-model-invocation: true
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