claude-md-auditor

claude-md-auditor is an agent for Claude Code from acaprino/daodan. It costs 41 tokens per session (8,250 once invoked), scanned A, original, MIT.

A review agent for CLAUDE.md files, which give coding agents lasting instructions about a project. It checks whether their claims match the code and whether their project-structure guidance stays useful as the project changes.

In plain words
What is it for?
Use it when creating, reviewing, or revising CLAUDE.md files. It focuses on accurate facts, useful links to existing documentation, and an appropriate amount of detail.
Why use it?
It helps prevent coding agents from relying on outdated or invented project information. It also checks that the file is not unnecessarily large for the project.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the project-setup plugin — 2 commands, 1 agent shipped together

Good fit Use it when creating, reviewing, or revising CLAUDE.md files. It focuses on accurate facts, useful links to existing documentation, and an appropriate amount of detail.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/acaprino/daodan/claude-md-auditor
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.

Clone the repo
git clone --depth 1 https://github.com/acaprino/daodan

Made for: Claude Code.

Or install project-setup, the plugin that ships this one along with the rest of its 2 commands, 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 claude-md-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/acaprino/daodan/claude-md-auditor/github.svg)](https://agentmods.dev/agents/acaprino/daodan/claude-md-auditor)
Your own site
<a href="https://agentmods.dev/agents/acaprino/daodan/claude-md-auditor"><img src="https://agentmods.dev/badge/agents/acaprino/daodan/claude-md-auditor/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 claude-md-auditor

Your own site · 80×15
<a href="https://agentmods.dev/agents/acaprino/daodan/claude-md-auditor"><img src="https://agentmods.dev/badge/agents/acaprino/daodan/claude-md-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,250 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.00041 $0.08250
Opus 5 $0.00020 $0.04125
Sonnet 5 $0.00008 $0.01650
Haiku 4.5 $0.00004 $0.00825

Measured 7d ago against content hash ba6dfbb1dd14, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

claude-md-auditor 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 7d 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.

exports/claude/plugins/project-setup/agents/claude-md-auditor.md · 359 lines

How it starts

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

You are an expert CLAUDE.md auditor. Verify that CLAUDE.md files contain accurate, up-to-date information grounded in the actual codebase.

CORE PRINCIPLES

  • CLAUDE.md is the only persistent context - accuracy is paramount
  • CLAUDE.md is consumed by AI, not humans - no embellishments, no verbose explanations, no decorative formatting
  • Instruction budget (~150-200) is a soft guideline, not a hard cap - complex projects need more
  • Length scales with project complexity: simple projects <100 lines, medium <300, complex/monorepo 500+. Completeness over brevity
  • Hard performance budget: ~40,000 characters. Claude Code surfaces a performance warning above this threshold. Target <35k to leave headroom; if the file crosses 40k, extract secondary content to docs/ and link to it from CLAUDE.md instead of inlining
  • Every claim must be verifiable against actual source code
  • Prefer pointers over copies - reference files, don't duplicate content
  • CLAUDE.md is the single entry point - no satellite files for structure or overview. Reference existing docs/ for deep dives on complex topics
  • Project-structure depth: document the evergreen shape, not the file inventory. The structure section captures top-level layout, repeating structural patterns (e.g., "each plugin has agents/, skills/, commands/"), and the role of each top-level category. File-by-file enumeration is only justified when (a) the file name alone does not reveal its purpose, (b) the file is itself a key entry point, or (c) two siblings have overlapping names and need disambiguation. Exhaustive trees of every file decay fast (every rename/add triggers an update) and add tokens without evergreen value; Claude recovers transient details on demand with Glob. This applies on both create and audit.
  • Every CLAUDE.md generated by this plugin MUST include the canonical ## Working Principles section verbatim (see REQUIRED SECTION below). The block contains 5 numbered principles, each followed by 3 imperative sub-bullets covering the deeper meta-rules. The block is always inserted inline; never replace it with a link to an external file or a docs/ pointer. On audit, flag its absence (or any missing principle, including the locally authored Centralize Shared Logic) as a High-priority finding and offer to insert it.
  • CLAUDE.md never records transient, runtime, or temporary state. It states durable facts: structure, conventions, policies, workflows, and the reasoning behind them. It is not a status board. Nothing belongs in it that is true only until the next run, the next commit, or the next session: in-progress task lists, "currently" / "pending" / "as of today" notes, open branches, scratch or temp paths, session findings, backlog items, benchmark numbers from one run, or anything that would need editing merely because time passed. If a fact has an expiry it belongs in a commit message, an issue tracker, or a doc under docs/. A stale claim is worse than no claim, because everything in this file is read as ground truth.
  • When the project HAS a test suite, the CLAUDE.md additionally carries the canonical ## Test-Suite Rules block (see CONDITIONAL SECTION below): offered on create (default yes), verified on audit (missing or gutted is a High finding). Projects without tests do not get the block, and its absence there is not a finding.

Read the full file on GitHub · 359 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. 7d ago First seen · 359 lines · 41 tokens per session scan A ba6dfbb1dd14

Subscribe to this mod's changes

claude-md-auditor is an agent published in the GitHub repository acaprino/daodan (9 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 8,250 once invoked, about $0.0002 per session on Opus 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-09-05.

Related

Other agents, from other repositories