/principle:principle-migrate-callers-then-delete-legacy-apisfrom principle
Guides migrating API consumers before deleting legacy contracts. Useful when replacing supported APIs to avoid breaking callers.
Ships in principle. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Migrate every supported consumer, then delete the old contract.
Inventory supported consumers before deletion: direct calls, generated clients, other repositories, persisted formats and release compatibility. Record unknown coverage as a gap.
For a coordinated internal change, migrate callers and remove the old API in one verifiable unit. Temporary adapters need a named consumer, removal condition and bounded lifetime. Preserve externally supported contracts until consumers migrate or the owner explicitly authorises the compatibility break.
A request to rename, retype or remove a name in a contract with consumers outside the change asks for the new shape; it does not approve the break. Add any new name beside the old one. Keep the old name working. Mark it superseded where its consumers see it. Give it a removal condition. When the owner explicitly approves the break, remove the old name. When the removal fixes a security or privacy exposure, such as an exposed sensitive field, remove the name now and keep no alias for it.
Exercise the replacement through its consumers. Retain tests of supported behaviour, including failures; retire assertions that protect only removed implementation details.
Delete the legacy path when its supported consumers and guarantees are accounted for. Remove transitional and obsolete paths, such as adapters, fallbacks and dual writes, once their consumers and guarantees are covered; keep only the path an uncovered consumer still needs. Before each deletion, check generated artifacts, consumer builds and remaining references; a repository text search alone is insufficient proof.
Distinct from: principle-outcome-oriented-execution (an approved multi-phase change converging on an end state), principle-subtract-before-you-add (about to add a mechanism, owner or layer).
Done: no supported consumer uses the old path; transitional paths whose consumers and guarantees are covered are gone; any remaining temporary adapter has an owner and end date.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
54 skills in this plugin
/principle-attack-the-premiseWHEN repeated fixes sharing an assumption fail the same check; NOT for a first unexplained failure or a settled mechanical edit; tests the shared premise before another fix./principle-build-the-leverWHEN repetitive work or a difficult check benefits from a rerunnable tool; NOT when an existing command or a direct small edit already suffices; builds the smallest useful lever./principle-capture-the-baselineWHEN about to change something whose result you will verify or compare; NOT for read-only investigation or syncing a git base; records pre-change evidence so the check reads old value versus new value./principle-clean-up-what-you-startedWHEN tearing down after a run, verification or failed attempt; NOT for making reruns converge or reverting unrelated edits; releases only resources this run created and keeps the evidence./principle-define-doneWHEN starting a multi-step deliverable, phase or plan, or deciding whether one is finished; NOT for single-step answers or choosing which checks to run; sets a checkable completion criterion first and reports every unmet gate./principle-derive-from-one-ownerWHEN the same fact or decision is computed or stored in more than one place; NOT for modelling legal states or collapsing pass-through layers; gives it one owner that other sites derive from or receive.npx claudepluginhub mintuz/skills --plugin principleOther plugins' skills for the same job