/mastermind:deprecatefrom mastermind
Removes, retires, or migrates away from features, endpoints, config keys, packages, services, and dead code. Guides safe multi-phase deprecation (expand → migrate → contract) and thorough usage verification.
Ships in mastermind. 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.
Read when SKILL.md points to them.
Every other skill adds or fixes. This one deletes, migrates and retires: the half of engineering where the reward (a smaller system) arrives long after the risk, and where what breaks is whatever you couldn't see was still reading it.
Any removal that can't land in one atomic commit takes three phases, in this order, each shipped on its own:
Renaming users.email_addr to users.email on a live system, as five deploys:
1 add `email` · backfill · write both · still read `email_addr` ← expand, fully reversible
2 read `email` · keep writing both ← the only behavior change; watch it
3 move every caller off `email_addr`, batch by service ← migrate
4 stop writing `email_addr` · leave the column for one rollback window
5 drop the column ← contract
Each line deploys and reverts on its own; the sequence is the safety. Collapse any two and you get the classic outage: during a rolling deploy both versions run at once, so the instance that hasn't restarted yet is still writing to the column you just dropped.
Never contract on a search you didn't run, and never treat one symbol search as the answer. "Nothing references it" is a claim about the whole system, and the places that break are the ones a symbol search can't see: config and environment, infra and CI, docs, runbooks and dashboards, other repos and clients you don't build, and every dynamic reference: a name assembled from a string, reflection, a container registration, a route table, a serialized payload, a stored default, an analytics event name. Search for the spelling, everywhere it could be written, not the identifier inside one tree.
The excuses to catch in yourself: "it's obviously dead": obvious to you, not to the caller in someone else's repo · "the search came back empty": empty for that spelling, in that tree · "we can always put it back": not for data, and not for whoever broke in between.
When you can't prove it from the outside, measure it from the inside. Ship a counter or a log line on the old path, wait a real interval: one full business cycle, including the monthly job and the quarterly report, then delete against recorded evidence instead of against absence of evidence.
A deprecation with no removal date is advisory, and advisory deprecations get ignored, correctly: nothing happens to anyone who skips them. A date makes it compulsory: and the date is a promise you now owe. Choose, and say which:
If you own the thing being deprecated, you own migrating its users. A deprecation notice doesn't remove the work, it multiplies it by the number of teams and bills them for a decision they didn't make. Where you can reach the code, do the migration. Where you can't, ship the codemod, the adapter or the script: a tool, not an announcement.
The state worth naming, because most rot lives in it: code nobody maintains that something still calls. It isn't dead (the traffic proves it) and it isn't alive (nobody will change it), and limbo protects it, nobody dares delete it, nobody dares touch it, and every incident inside it opens with an archaeology dig.
A zombie gets an owner or a removal date. There is no third state. Write down which one it got.
The check proving nothing broke is the work: ~/.mastermind/engineering/core/rigor.md governs the
verification and the evidence-backed report. Its "say first, then do" tier covers a data migration.
Deleting or overwriting what you did not create is on the kernel's Ask before list: ask, then
delete. Two things belong to removal specifically:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
deprecation, migration, cleanup, retirement, removal-strategy
33 skills in this plugin
/analyzeUse when a feature's spec, plan and task list all exist and need checking against each other before code is written: "check the spec and plan agree", "is this ready to build?", "find gaps before we start", or before building anything that touches money, auth or data from a task list. Read-only. Not for one concern inside the spec (`checklist`), not for code against the documents after building (`converge`)./assessUse when someone wants to know whether an idea deserves building before anyone builds it: "is this worth doing?", "should we build X?", "would users actually want this?", a product idea with no code yet, or a feature request nobody has said yes to. Ends in go, clarify or stop. Not for specifying something already decided (`specify`), not for choosing a library (`tech-scout`)./npx claudepluginhub mehrad-dm/mastermind --plugin mastermindOther plugins' skills for the same job