/dstack-core:no-commentsfrom DStack Core
Removes source comments by replacing them with clear code or accessible documentation. Preserves legal notices and required directives.
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.
Remove the dependence on comments, then remove the comments. Preserve the knowledge and behavior that still matter. Nothing should remain that the code or its documentation does not already carry. A comment describing a hidden decision moves into the module, its contract, its test, or its design record.
Use this when asked to clear source comments by replacing them with clear code or reachable documentation. It never covers deleting legal notices, required tool directives, or public documentation contracts without an equivalent home for them.
You need the target files, directory, or code surface named before you start.
An implementation request authorizes reversible local changes to the target code and to the callers, tests, and documentation needed to preserve its contracts. An audit-only or plan-only request authorizes findings and proposed edits, never source changes.
Honor explicit user exclusions. Leave generated or managed sources unedited and point at their authoring source instead. Do not publish, change credentials, delete user data, or cross a public compatibility boundary without explicit authorization for that action and its consequence.
Read the repository instructions and the relevant code, including surrounding control flow and consumers. Learn the languages, documentation conventions, and documentation consumers from the repository itself. Record unreadable files, generated sources, and uncertain spans as coverage gaps by name. Never treat them as silent exclusions. Coverage is complete when every target is accounted for or gapped by name.
Inventory comments with a language-aware method that keeps comment tokens and source spans intact. A bare syntax tree may silently drop comments, so lexical analysis carries this step. Tell comments apart from strings, regular expressions, raw literals, template contents, and embedded languages by their lexical state. A text search may surface candidates but it never decides what gets deleted. Record each comment with its location, the code it attaches to, and its purpose, including documentation comments and commented-out code. Treat docstrings and other runtime-visible documentation by their real language semantics (including introspection surfaces such as __doc__), not as disposable comment tokens. Where no reliable tool exists for a language, read its lexical forms by hand. Where classification stays uncertain, leave the span untouched and report the exact gap. Never run a naive strip. The inventory is complete when every real comment in reachable scope is recorded and every uncertain span is gapped.
Preserve license, copyright, attribution, and other required legal notices. Preserve directives consumed by compilers, interpreters, build tools, formatters, linters, coverage tools, documentation generators, and code generators, including placement-sensitive annotations and delimiters. Identify the consumer before judging any directive obsolete. An ordinary explanation of a business rule is not automatically a legal notice. Carry the rule itself into the implementation, its invariants, its tests, or its documentation. Never weaken or disable a lint, and never drop a proof or check, to reach a line-count or percentage goal. This step is complete when every legal and mechanical comment is identified with its consumer and excluded from removal.
Read what each remaining comment compensates for, then take the smallest action that fully preserves it:
This step is complete when every removable comment is either deleted under the no-information exception with its justification, or relocated to its destination and then removed.
Before relocating API documentation, identify the documentation generator, the packaged output, the symbol association, the examples, the links, and any runtime documentation consumers. Relocate the content only when those consumers can still discover and use equivalent documentation. Update navigation, cross-references, generation inputs, and affected examples together. Keep a mechanically required attachment comment when the established documentation system needs it. Where equivalent discoverability or compatibility cannot be kept, retain the affected documentation and name the exact constraint. Never turn comment removal into an unapproved documentation-system migration. This step is complete when relocated documentation is discoverable through its established consumers, or the blocking constraint is named and the comment retained.
Delete every remaining removable comment in scope. Keep only explicit user exclusions (a user instruction to keep a comment category, such as contract comments, keeps that category rewritten to its contract content, and the report names the exclusion), legal or mechanical necessities, comments whose useful contract cannot yet be preserved safely, and the narrow evidence floor: a minimum SAFETY comment where an actual unsafe block would otherwise fail undocumented_unsafe_blocks, a necessary public rustdoc or module invariant with no equivalent type or contract home yet, and a load-bearing clause identifier, evidence row, or measured fact its consumer still needs. Give each retained exception a specific reason tied to a consumer, an invariant, a compatibility mechanism, or an approval. Vague helpfulness and bare design-decision claims are not sufficient. No blanket permission for documentation comments, and no invented lint requirements. No-information deletions from the previous step stand as completed removals with their justifications. They do not retroactively need destinations. This step is complete when every target comment is removed, relocated with its content preserved, removed under the no-information exception with justification, or retained with a specific reason.
Re-inventory the final source with the same language-aware method. Recheck affected behavior, directive consumers, and documentation discovery wherever they changed. Use the repository's existing checks rather than inventing a parallel verification system. A lower comment count alone proves nothing about correctness. Where verification is prohibited or unavailable, state the unproved claims and the precise restriction instead of calling them verified. The work is complete when the final inventory, the behavior evidence, and the documentation evidence all support the reported result.
The implemented change, or the requested read-only proposal, with the target coverage and any uncovered files or spans, the structural changes and where useful knowledge went, the no-information deletions with their one-line justifications, the retained comments with their legal, mechanical, contractual, or explicit-exclusion reasons, and the evidence obtained with any remaining blocker. Completion means every target comment is accounted for, every removable comment is removed or relocated, useful contracts are preserved, and the evidence supports the reported result. No persistent ledger and no per-comment approval round is required for authorized local implementation. Audit-only scope, explicit exclusions, and compatibility boundaries keep their approval gates.
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