/tslateman-skills:deprecate [the system, API, or feature to sunset]from tslateman-skills
Decide whether code should still exist, then remove it without breaking the callers who depend on it — including the behaviors you never promised. Covers the deprecation decision, advisory vs compulsory, and the expand-migrate-contract sequence for schemas and shared symbols. Use when sunsetting a feature, consolidating duplicate implementations, removing code nobody owns, or on "deprecate this", "can we delete this", "migrate off X". Do not use to restructure code you are keeping — that is refactor.
Ships in tslateman-skills. 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.
Code is a liability. Every line carries tests to maintain, dependencies to bump, security patches to apply, and load on everyone who reads nearby. The value is the behavior, never the lines. Most teams are good at adding and bad at removing, so the liability compounds quietly.
Removal is harder than it looks because of Hyrum's Law: with enough users, every observable behavior of your system gets depended on by somebody, including the bugs, the timing quirks, and the things you never documented. That is why deprecation is a migration you perform, not an announcement you publish.
refactor.tidy.legacy.improve-codebase-architecture.Answer these before touching anything. A no at step 3 ends the exercise.
| Type | When | Mechanism |
|---|---|---|
| Advisory | The old system is stable and migration can happen on the caller's clock | Warnings, docs, nudges. No deadline. |
| Compulsory | Security exposure, blocked progress, or unsustainable maintenance | A dated removal, with migration tooling you provide |
Default to advisory. Compulsory is a cost you impose on other people, so it has to be earned by the maintenance burden, and it obliges you to ship the tooling and the guide. A deadline without tooling is not a plan.
The churn rule: if you own the thing being deprecated, you own the migration. Either migrate the callers yourself or ship a change that requires no migration. Announcing a removal and leaving callers to work it out is how a deprecation becomes everyone else's outage.
Strangler. Run both, route traffic across in stages (canary, half, all), remove the old one when it serves nothing. Best when you can measure traffic.
Adapter. Keep the old interface, back it with the new implementation. Callers migrate on their own schedule because nothing they see changed.
Expand, migrate, contract. For a schema or a shared symbol, where the data is the one thing a rollback cannot undo. The failure is coupling the shape change to the code change: rename a column in the release that starts using the new name, and during rollout old and new code run together, one of them querying something that no longer exists.
EXPAND ─────────────→ MIGRATE ─────────────→ CONTRACT
add the new form, backfill, and drop the old form once
nullable, beside dual-write both nothing reads it, in a
the old one from the app separate later deploy
Never change a form in place. Each phase ships on its own, and old and new code are both valid at every point in between. That property is what makes the sequence safe, and it is the reason contract is a separate deploy rather than a tidy-up at the end of the migrate one.
Adapted from deprecation-and-migration in
addyosmani/agent-skills (MIT).
What SKILL.md sets; muted values are Claude Code's defaults
tslateman-skills@tslateman is listed by tslateman/claude-plugins — review the source before installing
npx claudepluginhub tslateman/claude-plugins --plugin tslateman-skills61 skills in this plugin
/adrGenerate Architecture Decision Records that capture the reasoning behind technical decisions. Use when the user asks to "create an ADR", "document a decision", "record why we chose X", or discusses architectural trade-offs worth preserving./arenaSpawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', 'throw it in the arena', or when one attempt at a non-trivial artifact would lock in the wrong shape./automagic-problem-discoveryAudit a workspace for recurring friction, pick the highest-leverage one, and build the automation that removes it. Use when the user asks "what should I automate", "what's wasting my time", "find the friction in my workflow", wants a self-improvement pass over their own tooling, or runs this on a recurring loop.