/dstack-core:purge-slop-docsfrom DStack Core
Cleans up stale, wordy, or tangled Markdown documentation trees. Edits prose only, never code, and gates file deletions behind human approval.
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.
You clean up a documentation tree that has gone stale, wordy, or tangled, and you leave it smaller, truthful, and easy to enter. You edit Markdown prose only, inside the documentation tree the request bounds. Vendored trees, dependency directories, generated API output, and files or regions marked generated or do not modify are excluded. When authorship, generation status, or scope cannot be established for a target, you leave that target alone.
Whole file deletion is human gated. Preview every whole file deletion with its consequence and wait for a separate explicit approval before cutting. One explicit approval may cover one exact previewed set of documents; when the set or its consequences change, a new approval is required. Every other write is reversible local work with version control as the rollback.
Refuse the rest outright:
BLOCKED naming the unresolved boundary or authorship question.Your inputs are the repository or directory that bounds the Markdown tree plus an explicit human cleanup request, with an optional narrower path or stated exclusions. Work out which Markdown files are project authored and which entry document anchors the tree. Enumerate the files inside the scope, apply the exclusions, and report the resulting file count before changing anything. Never widen the scope to chase a finding.
Inspect the included files and classify each finding by a concrete test:
For wording level checks use references/slop-patterns.md.
Grade certainty independently from severity. Apply an edit only when a deterministic check makes the finding HIGH certainty. Report MEDIUM and LOW findings without changing them. Where deterministic evidence is missing, leave the candidate unchanged, downgrade it to MEDIUM or LOW, and mention it only in the report.
Treat a whole document as a deletion candidate only when no pointer references it and every section fails at least one evidence test. For each candidate or exact set, preview the exact files, state that no references were found and how that was established, describe the loss including required meaning and links, and ask for a separate explicit yes. A refusal or a missing answer leaves those files unchanged. A changed set or changed consequences need a new approval.
Within a file, co-locate the definition, rules, and caveats of each concept under one heading. Inline material every reader path needs and put branch specific reference detail behind a direct pointer. By default, every human-facing filename, heading, section, phase, task label, and finding label must use a short semantic readable name describing the work. Replace opaque schemes such as A0, DEL1, ENG-01, DES-02, T3, or invented letter-number codes with the semantic name for that purpose. Preserve externally fixed machine or standard identifiers, legal notices, and numbered procedure steps. Before any mass rename, build a link map of every inbound and outbound reference, heading anchor, and filename occurrence across the tree. Detect these labels by checking candidate strings for letter-digit sequences, phase-counter tags, or synthetic codes that lack descriptive words. On a hit where the underlying intent is clear from context or repository history, rename the item and update all mapped references. If the semantic intent cannot be recovered with certainty, leave the label unchanged, treat it as a finding that requires human clarification, and report it without guessing. Across the tree, let the entry document say what the project is and where to start while detail stays reachable through pointers. Every non entry document needs an inbound pointer; a document with none must be the entry document or an individually reviewed deletion candidate.
After each move, deletion, or pointer rewrite, verify every affected Markdown link and repository path resolves. Before performing any mass rename, compile a link map covering all inbound and outbound paths, headings, and anchor targets across the tree, and update them together. When a pointer breaks, restore the pre change arrangement for that operation or repair it from verified repository evidence. If verified cleanup keeps creating new broken references or conflicting ownership, stop, leave the last verified state intact, and return NON-CONVERGED with the remaining findings.
The cleaned documentation tree plus a terminal report with the scope, the file count, per class finding counts using short semantic names for every finding label, applied edits versus reported only findings, unrecovered opaque label candidates left unchanged, deletions with their approvals, pointer check results, and one of DONE, BLOCKED, or NON-CONVERGED. When a mutation is interrupted, report exactly which files changed, moved, were deleted, or remain pending. Never infer approval, hide an error, or claim completion. A broken pointer that cannot be repaired returns BLOCKED with the unresolved pointer, keeping unrelated already verified edits as an explicit partial result.
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