/supermatt:improve-commentsfrom SuperMatt
Removes redundant comments and corrects stale wording in diffs, files, or directories. Preserves API docs, legal notices, and useful rationale.
Ships in SuperMatt. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Apply verified comment edits as you find them. Preserve information that people or tools depend on.
Use the requested file, directory, diff, or explicit whole-repository scope. With no target, use the current staged and unstaged diff. If that diff is empty, ask for a target.
In a diff, edit only added or modified comment lines. Locate each candidate by path and line in the version shown on the added side of the diff. Map staged lines from the index through the unstaged hunks to the working file. For a supplied diff, establish the version on its added side before tracing its lines to the working file. Skip and report lines that were removed, replaced, or cannot be mapped to a single location. Confirm the text at the mapped location and read the full comment in context. Preserve the Git index.
In a directory or repository, focus on project-owned source and skip generated, vendored, and third-party files.
Use the language's parser or tokenizer when available. Otherwise inspect each candidate in context. Edit only text you can identify as a comment. Comment markers inside strings, fixtures, and embedded data need particular care.
Apply these checks in order:
For example, # Enqueue the job. above enqueue(job) is redundant. Keep # Enqueue before commit because v1 clients cannot retry a missing job. while that constraint applies.
Limit edits to comments and whitespace needed to remove them. Preserve token boundaries, significant newlines, and unrelated changes. Treat linter changes, ratchets, issue filing, and new documentation workflows as separate tasks.
Run relevant syntax, lint, or test checks in read-only mode. Report checks you could not run without modifying files. Then compare the final files with their pre-run state to confirm that only scoped comment text and necessary whitespace changed. If an edit's safety is uncertain, undo that edit and report the reason. Repeat the comparison after any undo.
Summarize the scope, edits, unresolved findings, and checks run. When asked for counts, report actual comment-only lines removed and count inline removals separately.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
42 skills in this plugin
/ask-supermattAsk which skill or flow fits your situation. A router over the skills in this repo./babysit-prWatch a pull request until it is ready to merge: open it when the branch has none, handle review feedback before CI, recover CI within a bounded budget, keep the branch current, and stop without merging./codebase-designShared vocabulary for designing deep modules. Use when designing interfaces, data contracts, state transitions, shared mutable state, or retryable effects; deepening a module; choosing test seams; or consulting the deep-module vocabulary.npx claudepluginhub svyatov/supermatt --plugin supermattOther plugins' skills for the same job