Agent Skills
› wibus-wee/see
› principle-migrate-callers-then-delete-legacy-apis
principle-migrate-callers-then-delete-legacy-apis
GitHub指导在替换内部 API 时,同步迁移调用方并删除旧接口,避免保留兼容性层。适用于重构场景下的 API 版本迭代与清理工作。
触发场景
替换内部 API
API 迁移与废弃
安装
npx skills add wibus-wee/see --skill principle-migrate-callers-then-delete-legacy-apis -g -y
SKILL.md
Frontmatter
{
"name": "principle-migrate-callers-then-delete-legacy-apis",
"description": "Move callers to the new shape and delete the old path in the same migration wave instead of carrying a compatibility layer. Use when when replacing an internal api."
}
Migrate Callers Then Delete Legacy APIs
Trigger
When replacing an internal API.
Rule
Move callers to the new shape and delete the old path in the same migration wave instead of carrying a compatibility layer.
Application
- Name the concrete decision this principle changes.
- Apply the rule to that decision, not as a decorative citation.
- Prefer evidence from the current repository/runtime over generic preference.
- If the principle conflicts with an explicit user constraint, keep the constraint and state the tradeoff.
版本历史
- b47adae 当前 2026-11-26 00:11


