comments:audit

comments:audit is a skill for Claude Code from bendrucker/claude. It costs 111 tokens per session (1,242 once invoked), scanned A, original, MIT.

A code-comment review process that finds comments adding little useful information, such as restatements or narration.

In plain words
What is it for?
It reviews comments in a code change or whole repository, ranks them, asks judging agents whether to keep, shorten, or rewrite them, and can apply the results on a new branch.
Why use it?
It helps reduce comments that make code harder to read without explaining something the code does not already show.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the comments plugin — 1 skill, 1 agent shipped together

Good fit It reviews comments in a code change or whole repository, ranks them, asks judging agents whether to keep, shorten, or rewrite them, and can apply the results on a new branch.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bendrucker/claude/audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bendrucker/claude --skill audit
Clone the repo
git clone --depth 1 https://github.com/bendrucker/claude

Made for: Claude Code.

Or install comments, the plugin that ships this one along with the rest of its 1 skill, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for comments:audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/bendrucker/claude/audit/github.svg)](https://agentmods.dev/skills/bendrucker/claude/audit)
Your own site
<a href="https://agentmods.dev/skills/bendrucker/claude/audit"><img src="https://agentmods.dev/badge/skills/bendrucker/claude/audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for comments:audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/bendrucker/claude/audit"><img src="https://agentmods.dev/badge/skills/bendrucker/claude/audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,242 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 150
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00111 $0.01242
Opus 5.5 $0.00044 $0.00497
Sonnet 5.5 $0.00022 $0.00248
Haiku 4.5 $0.00011 $0.00124

Measured 10d ago against content hash bcf1c0e10484, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

comments:audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/apply.ts, scripts/audit.test.ts, scripts/audit.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/comments/skills/audit/SKILL.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Comments Audit

Find low-value comments and act on them. A comment earns its place when it adds information not readily available in the adjacent code. The judge returns one action per comment: keep, trim (delete or shorten), or rewrite (keep the fact, strip the AI voice). judge/prompt.md holds the comment model and its carve-outs.

Run three steps in order: preflight (extract, rank, build the job), one judge agent per shard, and apply (write the trims or report them). The run is done when apply has printed its branch name or its report, and every comment it could not splice is listed for the user.

Scope and Flags

  • Default, --base <ref>, --mr <iid>: diff scope. Judges the comments a change introduced. Default is the working tree (staged, unstaged, and untracked). --base main diffs the same working tree against 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. Use it on a first --all run on a large repo to cap the agent count.
  • --sort lines|chars|score (default score): rank by comment complexity so the longest, densest comments judge first.
  • --limit <n>: keep only the top N ranked comments.
  • --fix: ask the judge for a concrete suggestion per finding.
  • --report: at apply time, print findings instead of writing a branch.
  • --format <template>: at apply time, pipe each edited file through a formatter before committing.
  • --max-width <n>: at apply time, refuse a splice that would exceed n columns. Without it, the limit is the widest line of the comment being replaced or 80 columns, whichever is wider.

Preflight

Run from the repository being audited. The script resolves the git root itself.

bun <plugin-dir>/skills/audit/scripts/audit.ts preflight $ARGUMENTS

The script prints a human summary followed by a machine block:

Read the full file on GitHub · 86 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago Changed · -13 lines bcf1c0e10484
  2. 11d ago Changed eb6d0172c757
  3. 1mo ago Changed dd2a05032610
  4. 1mo ago Changed · -89 lines · +1 tokens per session 9b9e272c5ca3
  5. 1mo ago Changed · +11 lines 077ab4df87a1
  6. 2mo ago Changed · +7 lines d5c5431e66cf
  7. 2mo ago First seen · 170 lines · 110 tokens per session scan A 3b9813dfe41a

Subscribe to this mod's changes

comments:audit is a skill published in the GitHub repository bendrucker/claude (18 stars, last pushed today), licensed MIT. It adds 111 tokens to every session and 1,242 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

comments:audit compared with skills from other repositories

comments:audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
comments:auditbendrucker/claudeSkill18todayMITA111Claude Code
reviewSethGammon/CitadelSkill9284d agoMITA17Claude Code
critical-code-reviewerposit-dev/skillsSkill5617d agoMITA67Claude Code
brooks-sweephyhmrright/brooks-lintSkill1.6ktodayMITA178Claude Code
pr-reviewnitinjain999/platform-skillsSkill71yesterdayApache-2.0A81Claude Code
skill-distilleriliaal/whetstoneSkill36todayMITA91Claude Code
review-depthjszmajda/lidSkill118todayMITA93Claude Code