trove-principle-migrate-then-delete
Migrate Callers Then Delete Legacy APIs — when introducing a new internal API while old callers exist, migrate every caller and delete the old API in the same refactor wave instead of leaving a compatibility layer. Use when replacing an internal API, function, or module that has no external dependents.
- License 许可
- MIT
- 所属仓库
- bravew/trove
- 最近更新
- 2026-11-12
- Stars
- ★ 10
- Forks
- 1
01 前言 Front Matter
- name
- trove-principle-migrate-then-delete
- metadata
- { "trove-category": "code", "trove-category-label": "Code" }
- description
- Migrate Callers Then Delete Legacy APIs — when introducing a new internal API while old callers exist, migrate every caller and delete the old API in the same refactor wave instead of leaving a compatibility layer. Use when replacing an internal API, function, or module that has no external dependents.
- when_to_use
- migrate callers; remove the legacy api; no compatibility shim
- user-invocable
- true
02 资源文件 1
- 其他SKILL.md.tmpl1.1 KB
03 SKILL.md 正文
<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly --> <!-- Regenerate: bun run build:skills -->
Principle: Migrate Callers Then Delete Legacy APIs
For an internal API with no external consumers, migrate and delete in one wave. Don't leave a compatibility shim behind "for safety" — the shim becomes permanent.
- Inventory every caller of the old API.
- Migrate them to the new one.
- Delete the old API in the same change, including tests that protected its pre-refactor implementation details.
The result feels append-only: there is one way to do the thing, not two. This is the core discipline behind the workspace's in-flight migrations (Vue→React, Lambda→jobs). For external/published APIs, normal deprecation rules still apply.
04 同仓库更多 Skills
using-trove
Skill discipline anchor for the Trove marketplace. Loaded once per session; routes the agent to the right trove-* skill before code, planning, review, or git actions.
trove-write-skill
Skill authoring workflow. Use when creating or updating a Codex or Trove skill, including rubrics, tasks, metadata, and validation.
trove-worktree
Git worktree workflow for spikes, risky experiments, and broad refactors that should not disturb the user's current branch.
trove-why
Reconstruct design rationale and decision history from evidence — source control, issue tracker (Linear), docs (Notion), chat (Slack), error tracking (Sentry) — with calibrated confidence. Use for "why does X work this way", "why did we pick Y", regressions, and postmortems. Use trove-explain for how it works now.
trove-verify
Completion verification workflow. Use before claiming done, fixed, complete, ready, or shipped.
trove-unslop
Cut AI tells from writing — PR descriptions, release notes, specs, commit bodies, and replies. Use before finalizing prose, or when the user asks to clean up, de-slop, or make text sound human.