AGENT SKILL

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.

License 许可
MIT
所属仓库
mmdmcy/fluttAIrbar
最近更新
2026-11-14
Stars
★ 0
Forks
0

01 前言 Front Matter

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.

02 资源文件 1

03 SKILL.md 正文

Migrate Callers Then Delete Legacy APIs

When we decide a new API is the right design, migrate callers and remove the old API in the same refactor wave instead of preserving compatibility layers.

Rule:

  • Do not keep legacy API paths alive only because internal callers still exist
  • Inventory callers, migrate them, and delete the old API immediately
  • Treat temporary adapters as exceptional and time-boxed, not default architecture
  • 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

Keeping both old and new APIs creates dual-path complexity, slows cleanup, and makes the codebase feel append-only.

04 同仓库更多 Skills

mmdmcy
mmdmcy/fluttAIrbar

fluttairbar

Check the AI command-line tools on this device (Claude Code, Codex, OpenCode, Pi, Cursor Agent, Grok Build, fx, Ori, ZCode) for their installed and newest versions and safe updates, and how much of the Claude, Codex and Cursor subscriptions signed in here is used, which agent skills, hooks and instructions file each coding agent has, and whether conversation history is kept on two devices, with fluttAIrbar's command line `fluttairbar-cli`. Use when asked whether AI tools are up to date, how much usage or limit is left, when a limit resets, before updating an AI command-line tool, or which skills an agent has.

★ 0
mmdmcy
mmdmcy/fluttAIrbar

why

Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.

★ 0
mmdmcy
mmdmcy/fluttAIrbar

unslop

Cut AI tells from any writing. Must always apply.

★ 0
mmdmcy
mmdmcy/fluttAIrbar

typescript-best-practices

TypeScript best practices. Use when reading or editing any .ts or .tsx file.

★ 0
mmdmcy
mmdmcy/fluttAIrbar

technical-writing

Layered technical-writing standard: Diátaxis structure, Google developer style sentences, STE instruction rules, Global English syntax. Use for $technical-writing or when writing or reviewing docs, RFCs, readmes, PR descriptions, or commit messages.

★ 0
mmdmcy
mmdmcy/fluttAIrbar

teach

Explain a body of work plainly so a person actually understands it. Runs the `how` and `why` skills and weaves what they find into one clear explanation. Use for 'teach me this', 'help me really understand X', 'explain this change or subsystem to me'.

★ 0