Agent Skills
› wibus-wee/see
› principle-migrate-callers-then-delete-legacy-apis
principle-migrate-callers-then-delete-legacy-apis
GitHub指导在替换内部API时,应同步迁移调用方并删除旧接口,避免保留兼容性层。适用于重构或优化API结构,确保代码整洁和降低维护成本。
Trigger Scenarios
替换内部API
清理遗留接口
Install
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.
Version History
- b47adae Current 2026-11-26 00:11


