modrex: Skill for Claude Code

.agents/skills/comment-audit/SKILL.md

comment-audit is a skill for Claude Code, Codex from modrexio/modrex. It costs 17 tokens per session (1,269 once invoked), scanned A, original, MIT.

A comment checker that compares code comments with the comment rules in a repository's AGENTS.md file. It can review changed comments, a selected path, or a whole workspace, and can remove comments that merely narrate obvious code.

In plain words
What is it for?
Use it after AI-assisted edits or when auditing comments in existing files and directories.
Why use it?
AI edits often add noisy comments that repeat what the code already says or violate local project rules. This keeps comments focused on constraints and the consequences of breaking them without changing the surrounding code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is modrexio/modrex's own configuration. It tells Claude Code and Codex how to work on modrex itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything modrex configures →

Reuse

Borrowing it

Nothing to install: this file belongs to modrexio/modrex. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/modrexio/modrex/main/.agents/skills/comment-audit/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/modrexio/modrex

Made for: Claude Code, Codex.

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 comment-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/modrexio/modrex/comment-audit/github.svg)](https://agentmods.dev/skills/modrexio/modrex/comment-audit)
Your own site
<a href="https://agentmods.dev/skills/modrexio/modrex/comment-audit"><img src="https://agentmods.dev/badge/skills/modrexio/modrex/comment-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 comment-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/modrexio/modrex/comment-audit"><img src="https://agentmods.dev/badge/skills/modrexio/modrex/comment-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,269 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.
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.00017 $0.01269
Opus 5.5 $0.00007 $0.00508
Sonnet 5.5 $0.00003 $0.00254
Haiku 4.5 $0.00002 $0.00127

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

Security

Grade A, and why

comment-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 14d ago.

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.

.agents/skills/comment-audit/SKILL.md · 169 lines

How it starts

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

comment-audit

Use this skill after AI-assisted edits, or on demand to review existing code. It enforces the Comments section of the repository-root AGENTS.md.

This skill handles cosmetic AI slop. It is lower priority than the five dangerous patterns in .agents/rules/ai-danger-patterns.md.

Scope

  • No argument: audit comments added or modified in uncommitted changes.
  • A file or directory path: audit every comment in that scope.
  • --all: audit a whole workspace app, one directory at a time, reporting per file.

When invoked on existing code (a path or --all), fix violations directly but change nothing except comments. Never touch code while running this skill.

Delete comments that explain what

Delete comments that narrate code.

Bad:

// Get enabled mods
const enabledMods = mods.filter((mod) => mod.enabled)

Bad:

// Loop through files
for (const file of files) {
  installFile(file)
}

Bad:

// Return Ok result
Ok(result)

Enforce the default shape

The default comment is one to four lines stating the constraint and what breaks without it. For anything longer, first check the reserved kinds below. Everything else gets compressed to its operative constraint. The full argument and the history live in git, not in the file.

Bad (an essay where a constraint would do):

// Backfill remote_id before upgrade_negative_ids runs. Ids used to be real
// modworkshop ids, so entries identified before remote_id existed still carry
// the real id in the id field. upgrade_negative_ids cannot tell "never
// identified" apart from "identified before this field existed", and its
// fuzzy name fallback clears the stored version and marks the mod Outdated,
// which would fire en masse for every pre-existing install as a side effect
// of this migration rather than a real update.

Good:

// Must run before upgrade_negative_ids: it cannot tell "never identified"
// from "identified before remote_id existed", and its name fallback would
// mass-mark pre-existing installs Outdated during a plain data migration.

Read the full file on GitHub · 169 lines

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. 14d ago First seen · 169 lines · 17 tokens per session scan A 1ca0bf591805

Subscribe to this mod's changes

comment-audit is a skill published in the GitHub repository modrexio/modrex (21 stars, last pushed today), licensed MIT. It adds 17 tokens to every session and 1,269 once invoked, about $0.0001 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-11-15.

Related

comment-audit compared with skills from other repositories

comment-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
comment-auditmodrexio/modrexSkill21todayMITA17Claude Code, Codex
pr-commentswarpdotdev/warpSkill66kyesterdayAGPL-3.0A16Claude Code, Codex
pr-bodyalibaba/anolisaSkill6888d agoApache-2.0A68Claude Code, Codex
agentsight-code-reviewalibaba/anolisaSkill6888d agoApache-2.0A75Claude Code, Codex
test-uibrowseros-ai/BrowserOSSkill15k2d agoAGPL-3.0A59Claude Code
browseros-neobrowseros-ai/BrowserOSSkill15k2d agoAGPL-3.0A119Claude Code, Codex
browseros-neobrowseros-ai/BrowserOSSkill15k2d agoAGPL-3.0A119Claude Code, Codex