← ClaudeAtlas

commentsauditlisted

Audit code comments for AI slop: restatement, narration/decision-log, self-praise, docstring-scope, and section-divider banners. Audits a diff (the comments a change introduced) or a whole repo, ranks by intrinsic complexity, fans out judging agents, and applies the trims to a fresh branch. Use when asked to audit, trim, or clean up code comments, or as the comment pass of a branch-finishing flow. Not a general code review: skip it when the change added no comments.
bendrucker/claude · ★ 16 · Code & Development · score 76
Install: claude install-skill bendrucker/claude
# Comments Audit Find low-value comments and act on them. A deterministic Shiki pass extracts comments over TextMate grammars, the scope selects which to judge, a fan-out of Claude Code agents judges each against the owner's comment model, and a deterministic applier writes the changes to a branch. The judge returns one of three actions per comment: `keep` (it earns its place), `trim` (it carries no fact, delete or shorten it), or `rewrite` (it carries a real fact under AI voice, strip the voice and keep the fact). A comment earns its place when it adds information not readily available in the adjacent code. See [`judge/prompt.md`](../../judge/prompt.md) for the full model and carve-outs. Model-invocable so `ship` can run it as its comment pass. The consent gate at [Preflight](#preflight) caps the cost of a misfire at one cheap extraction. The pipeline is three steps: `preflight` (extract, rank, build the job), the Workflow tool (judge), and `apply` (write the trims or report them). ## Scope and Flags Two scopes run the same pipeline. The flags select scope and narrow it: - Default, `--base <ref>`, `--mr <iid>`: diff scope. Judges the comments a change introduced. Default is the working tree (staged plus unstaged). `--base main` is the merge-base with a ref. `--mr <iid>` is a GitLab merge request over `glab`. - `--all`: repo scope. Judges every tracked code file's comments. - `--path <glob>`: narrow either scope to matching paths. Repeatable. Prefer it on a first