From claude-skills
Audit and clean up source-code comments in any language. Use when asked to audit comments, clean up comments, remove LLM comment smell, fix comment rot, or do a comment cleanup. Removes stale cross-references (Jira/GitHub/RFC/phase refs), temporal/LLM-authorship tells ("for now", "in a real implementation", "previously"), and WHAT-not-WHY narration; keeps WHY/HOW comments.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-skills:comment-auditThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Audit comments for rot and noise, then apply fixes behind one review gate. Headline principle: **no comment is better than a bad comment.**
Audit comments for rot and noise, then apply fixes behind one review gate. Headline principle: no comment is better than a bad comment.
ONE read pass over the target files into memory. Then THREE sequential audit passes over that in-memory content — do not re-read files per pass. Collect all findings, present them grouped, gate once, then apply approved edits.
Read-only tools (Read, Grep, Glob, git) during the audit. Make edits only after the gate approves.
git diff --name-only plus staged) and state that you are doing so. Skip generated and vendored files (lockfiles, vendor/, node_modules/, dist/, *.pb.go, *_generated.*, minified assets).file:line, the offending comment, which family it hit, and the proposed remedy (delete / rewrite-to-state-constraint / upgrade-to-WHY). Quote the exact replacement for rewrites.AskUserQuestion with header Review and options Apply / Revise. On Apply, make the edits. On Revise, take the user's adjustments and re-present, then gate again. Do not edit before approval.Detail and examples live in references/comment-smells.md. Quick map:
// increment i), commented-out code, and stale doc-comments that contradict the code. Remedy: delete pure WHAT-narration and commented-out code; upgrade salvageable comments to state the WHY (rationale, tradeoff, non-obvious constraint, invariant, gotcha); fix doc-comments that lie. Keep comments that explain WHY, or HOW at a level the code can't show.Apply.uncertain and propose, but defer to the user at the gate rather than auto-deleting.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub mjmorales/claude-skills --plugin claude-skills