/dstack-core:breaking-drivenfrom DStack Core
Rebuilds bloated modules from their consumer contract instead of refactoring. Deletes everything the contract doesn't require and commits atomically with tested behaviors.
Ships in DStack Core. 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.
Some modules are past patching: layers of accretion, duplicated branches, indirection that no longer serves any caller. This skill rebuilds such a module from its consumer contract instead of refactoring its structure, so the accretion cannot reproduce itself under fresh names. It runs on one target at a time, deletes everything the contract does not require, and commits each target atomically with its essential behaviors tested.
It works only where version control can undo it: every mutation touches VCS-tracked targets, the exact set is shown before anything is deleted, and nothing is pushed anywhere. There is no remote mutation in this skill. Before the first deletion, the target paths must have no uncommitted changes; if they do, stop and report those paths, because reverting to the last green commit would also discard them.
A named path goes straight to work. A blank invocation or explicit repo-wide wording is the only license to survey: rank candidates by bloat signal, size, duplication, indirection depth, and branch density, then work the list in order, one target committed before the next begins. Anything identifiable scopes to itself. Each invocation is one run with no standing cadence; a recurring sweep needs a cadence request in that invocation. Escalating a named grievance into a whole-tree campaign is this skill's worst failure, and trigger phrasing alone never distinguishes a single target from a sweep.
Inventory the target's consumers and mark each surface as one of:
Interior is a conclusion, not a default: every consumer channel static analysis cannot resolve (reflection, string dispatch, generated code, external integrations, operator runbooks) carries boundary class until evidence or an explicit yes moves it. An empty grep over dynamic dispatch is not evidence; unresolved means boundary. Nothing below proceeds on an unclassified surface.
State what the target owes its callers, sourced from call-site usage, existing tests, and the public signature (never from the target's own internals), and build the replacement from that statement alone. Reaching into the old structure for the contract is how the accretion reproduces itself; state the contract, then look away.
Go through the old implementation function by function, branch by branch within a single function, and for each behavior name where it lives in the replacement or classify it. Read for behavior rather than structure: branches, guards, early returns, side effects, ordering guarantees, error and failure semantics, state transitions. This audit is the only backstop in the method (nothing executable proves the replacement equivalent), so a behavior never read is a feature deleted by accident, and the walk is exhaustive, not impressionistic. Classify each behavior with a one-line reason as one of:
Performance characteristics are out of scope; benchmark separately when the target is hot. Nothing is cut or kept without its classification.
Present every boundary surface and get an explicit answer before touching it. Interior surfaces need no ask; demolish them. Each boundary surface carries a recorded answer:
Cut none on silence or after a no. A general instruction such as no defer or do all of it is never a recorded answer for a boundary surface. Each boundary surface needs its own yes or no after it has been presented with its class. This is the one place the skill stops, and stopping is the design, not hedging.
Delete the old implementation and every surface reachable only from it. Do not write an adapter from the new shape back to the old: that resurrects the demolished structure under a new name. Run the repo's existing test suite, and cover every behavior classified essential that had no test. Commit this target atomically before starting the next. A search for every symbol classified residue must return nothing (no unused imports, deps, types, or files survive), while surfaces kept essential or refused at the boundary gate keep their identifiers: they are the contract, not leftovers. Half-demolished is the forbidden state: finish a target or revert it via version control to the last green commit, never ship the middle.
Each target produces a clean demolition: consumer contract restated, replacement derived from it, every old behavior classified essential or residue, residue deleted, essential behaviors tested, target committed atomically with the verifier green. A repo-wide campaign produces one such commit per target in ranked order.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gosuda/dstack-skills --plugin dstack-core89 skills in this plugin
/abstract-wellUse when the user wants to classify abstractions as useful, bad, or busy and keep one shallow level. Not for tasks requiring source or remote-system changes./architectUse when non-trivial code needs a design, codebase architecture needs improving through survey and deepening, or one module needs targeted interface narrowing, seams, or testability. Not for rendered visual artifacts, deploy, or irreversible changes./architecture-simplificationUse when the user explicitly asks to simplify an architecture, collapse modules or crates, or cut a dependency graph within approved boundaries. Executes an approved layout direction slice by slice. Not for single-module cleanup: use code-simplification. Not for layout planning from nothing: use architect. Not for blind re-derivation: use breaking-driven.Other plugins' skills for the same job