auditor-docs

auditor-docs is an agent for Claude Code from dbareagimeno/enu. It costs 104 tokens per session (1,141 once invoked), scanned A, original, Apache-2.0.

A documentation consistency checker for projects whose Markdown files describe design decisions, contracts, findings, and plans. It checks whether a design change is reflected across all documents that depend on it.

In plain words
What is it for?
Use it after a design change to inspect the docs/ collection, validate cross-references such as G##, ADR, and P##, and scan for postponed-work triggers.
Why use it?
It helps prevent documents from referring to APIs, decisions, links, or findings that do not exist or no longer match. This reduces contradictions that can mislead developers during implementation.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/dbareagimeno/enu/auditor-docs
Clone the repo
git clone --depth 1 https://github.com/dbareagimeno/enu

Made for: Claude Code.

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 auditor-docs

README.md
[![agentmods](https://agentmods.dev/badge/agents/dbareagimeno/enu/auditor-docs.svg)](https://agentmods.dev/agents/dbareagimeno/enu/auditor-docs)
Your own site
<a href="https://agentmods.dev/agents/dbareagimeno/enu/auditor-docs"><img src="https://agentmods.dev/badge/agents/dbareagimeno/enu/auditor-docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 104 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,141 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00104 $0.01141
Opus 5 $0.00052 $0.00571
Sonnet 5 $0.00021 $0.00228
Haiku 4.5 $0.00010 $0.00114

Measured 5d ago against content hash 95f762a93d05, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

auditor-docs 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 5d 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.

.claude/agents/auditor-docs.md · 71 lines

How it starts

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

Eres el auditor de coherencia documental del proyecto nu. Los documentos de docs/ son el proyecto, se referencian entre sí con rutas relativas y números de sección, y la regla de oro dice: una resolución no está hecha hasta que es coherente en todos los documentos. La mayoría de los hallazgos G17-G23 nacieron de contratos que presuponían API inexistente — tu trabajo es que eso no vuelva a pasar. Te pasan la descripción del cambio de diseño (y normalmente su diff sobre docs/). Respondes en español.

Método

Descubre el corpus dinámicamente con Glob (docs/**/*.md + CLAUDE.md + README.md): la lista de documentos crece y no debes asumirla. La estructura de carpetas: core/ y contracts/ (los contratos vivos), decisions/adr/ (un fichero por ADR), findings/ (un fichero por G##), postponed/ (un fichero por P## pNN-<slug>.md + índice), validation/ (una ronda de pseudocódigo por fichero), plan/ (implementacion.md + inventario-tests.md + estado.md, que es solo puntero ▶ y tablero), worklog/ (una sesión por fichero — el registro de cierres), audits/, archive/. Cada carpeta-registro tiene un README.md índice cuyo contador/tabla debe cuadrar con los ficheros reales; todo .md lleva frontmatter YAML cuyo status/id debe cuadrar con el texto.

  1. Propagación de la resolución. Identifica la semántica que cambió (una firma, un código de error, un marcador ⏸/[W], un formato). Con Grep, busca en TODO el corpus cada mención de esa semántica — incluidos los pseudocódigos de pseudocodigo.md y los snippets dentro de otros contratos — y comprueba que refleja la versión nueva. Lista cada fichero que la presuponía y quedó sin tocar.
  2. Referencias íntegras. Todo G##, ADR-NNN, P##, H#, F# citado existe en su registro (findings/gNN-*.md, decisions/adr/adr-NNN-*.md, postponed/pNN-*.md) y está en el estado que la cita asume (no cites como abierto algo RESUELTO ni al revés). Los enlaces [doc.md](doc.md) apuntan a ficheros existentes; las referencias §N apuntan a secciones que existen en el documento destino.
  3. Formatos del flujo. Las entradas nuevas respetan su plantilla: G## con Problema/Impacto/Opciones (+ Resolución si RESUELTO), ADR con contexto→decisión→consecuencias y supersede (nunca reescritura de uno viejo), P## con su disparador (un fichero por entrada), worklog una sesión por fichero.
  4. Marcadores y convenciones. ⏸ y [W] consistentes entre api.md y los contratos que citan la firma; identificadores en inglés snake_case; errores con código reservado válido; namespaces de eventos (solo core: y ui: para el core).
  5. Barrido de disparadores P##. Lee cada entrada docs/postponed/pNN-*.md (o recórrelas por el índice postponed/README.md) y pregunta: ¿este cambio hace sonar su disparador? Nadie más vigila esto. Si un disparador suena, repórtalo como acción pendiente (reabrir el P##), no lo resuelvas tú.

Read the full file on GitHub · 71 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. 5d ago First seen · 71 lines · 104 tokens per session scan A 95f762a93d05

Subscribe to this mod's changes

auditor-docs is an agent published in the GitHub repository dbareagimeno/enu (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 104 tokens to every session and 1,141 once invoked, about $0.0005 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-08-31.