/dstack-core:refactor-break-compatfrom DStack Core
Tears out old API shapes, compat shims, feature flags, and legacy adapters in one clean cutover, migrating all callers to the replacement contract without leaving backward-compatible paths behind.
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.
Tear out an old API shape and move every caller to its replacement in one clean cutover, leaving no shim, flag, or adapter behind. This skill demolishes the old path, so if the old path must survive, use a regular additive refactor instead. Everything here is local: writes touch only version-tracked refactor targets, rollback is version control, and nothing reaches the network. The demolition owner migrates every consumer in the same cutover and never hands migration work to consumers or keeps a compatibility alias behind.
You need the old surface (compat shims, legacy adapters, feature flags, version gates, backward-compatible interfaces) and the new contract every caller must adopt. If the request does not name the old surface or the new contract, stop and ask one question naming the missing item; a word such as AGGRESSIVE is neither. An optional file or module scope bounds the work; without one, the blast-radius map sets the boundary, and nothing outside the approved manifest gets touched no matter what a review finding suggests.
Before touching code, write down the consumer contract the replacement must satisfy and the behavior proof suited to this target (a test, a check, whatever actually exercises it). If that proof does not exist, stop and name the missing proof in the blocked result. Also confirm there is no known behavior the old shape covers that the replacement cannot reproduce; if such a gap is known, stop before destroying anything and name the consumer plus the unreproduced behavior.
Enumerate every file, module, and caller of the old shape with ast-grep or rg. This demolition manifest is the scope: every file and caller that will be deleted or rewritten, every test that will change, every flag or config key going away.
Present the manifest and its consequences to the human and wait for explicit confirmation. Nothing is deleted on an assumed or timed-out yes. A rejection or silence ends the run with the tree untouched.
Remove the compat layers, adapters, legacy branches, and flags used only by the old path. Delete means delete, never comment out. Spare any flag that also controls the replacement or another live path. Treat this deletion and the caller migration below as one atomic unit: if a gap surfaces mid-cutover, either finish inside the approved scope or restore the whole affected cutover to the pre-change baseline. A half-migrated tree is never shipped and never reported as success.
Migrate every reference from the manifest to the new contract. After each batch, run the strongest static enumerator the project has (compiler or typechecker, including opt-in mypy, pyright, tsc --checkJs, Sorbet). A clean static pass is never sufficient on its own, because no static pass sees reflective, dynamically dispatched, string-constructed, or generated references, nor code excluded from the build. Enumerate those by hand and name them in the report.
Update assertions to the new behavior and delete tests whose entire purpose was the old behavior. Where the new contract is now thinly covered, add tests that prove its independent behavior rather than snapshotting output. A suppressed check or a zero-matched selection counts as no proof at all.
Grep for string references, config keys, env vars, doc links, error messages, and import paths naming the old API until the search returns nothing. Then remove the imports, packages, dependencies, types, and dead files that only the old path needed.
Search for every old symbol, flag, and format name. Anything found sends you back to migration. Where this target exposes metrics, logs, or dependency-analysis channels, corroborate through them that no consumer still uses the old shape after the cutover. The report names the commit range that reverts the removal and, where such channels exist, the post-removal watch set confirming no consumer regressed (otherwise it records those channels as not applicable).
Residue survivors, a broken build, or a stalled half-migration all fail the run, and partial results are never reported as success. Fix forward only inside the approved scope; otherwise restore the whole affected cutover to baseline, name the exact blockers, and stop with the matching exit: 1 for residue, 2 for broken build, 3 for stalled migration. Zero is a clean demolition only: every caller on the new contract, tests asserting the new behavior with old-behavior tests gone, and the zero-residue search empty.
Report the blast-radius manifest, the deleted artifacts, the caller-migration checklist (naming any pre-destruction blocked consumer and its unreproduced behavior), the test-rewrite summary, the zero-residue result with revert range and watch set, and the exit code, in that order.
What SKILL.md sets; muted values are Claude Code's defaults
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