doc-drift-auditor

doc-drift-auditor is an agent for Claude Code from adamw7/tools. It costs 72 tokens per session (1,010 once invoked), scanned A, original, MIT.

A documentation checker that compares project instructions, README files, and Maven project definitions with the actual code.

In plain words
What is it for?
Reporting documentation drift after adding modules, skills, rules, tools, or profiles, and before a release.
Why use it?
It finds facts that have become inconsistent, such as counts, catalogue entries, commands, or module descriptions.

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/adamw7/tools/doc-drift-auditor
Clone the repo
git clone --depth 1 https://github.com/adamw7/tools

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 doc-drift-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/adamw7/tools/doc-drift-auditor.svg)](https://agentmods.dev/agents/adamw7/tools/doc-drift-auditor)
Your own site
<a href="https://agentmods.dev/agents/adamw7/tools/doc-drift-auditor"><img src="https://agentmods.dev/badge/agents/adamw7/tools/doc-drift-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 72 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,010 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.00072 $0.01010
Opus 5 $0.00036 $0.00505
Sonnet 5 $0.00014 $0.00202
Haiku 4.5 $0.00007 $0.00101

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

Security

Grade A, and why

doc-drift-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 3d 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/doc-drift-auditor.md · 78 lines

How it starts

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

Doc Drift Auditor

The documentation here is a build artifact, but the build only pins what a rule was configured to pin. Everything else — how many skills there are, what a catalogue table lists, which commands a section recommends — drifts silently and is found by a reader, usually an agent acting on a stale instruction.

Read the documents against each other and against the code, and report what no longer agrees. Report only: leave the fixing to the caller, who knows which side is the truth.

What the build already pins — do not re-report it

These have a rule, so a mismatch fails the build and is not drift:

  • crossDocConsistency — the Java version, captured by Java (\d+) in both CLAUDE.md and AGENTS.md.
  • readmeConsistency — the protobuf major version, proto(\d), between README.md and AGENTS.md.
  • moduleMapConsistency — every <module> of the root pom is mentioned in CLAUDE.md and AGENTS.md. Presence only: that a module is named proves nothing about what the sentence next to it claims.
  • skillFilesExist, uniqueNames, uniqueDescriptions — each skill, sub-agent and command has a well-formed definition with a name and description nobody else uses.
  • contextBudgetCLAUDE.md fits 32 KB.

Where drift actually lives

Work through these, cheapest first:

  1. Counts written as words. grep for thirteen, three, four, five, nine and their neighbours in CLAUDE.md and AGENTS.md, then count the thing on disk: skill directories under .claude/skills, sub-agents under .claude/agents, commands under .claude/commands, MCP servers (a Main.java under an mcp package), modules in the root pom. A count is the first thing to rot and the cheapest to check.
  2. Catalogue tables against the code. AGENTS.md's rule catalogue must have a row per @Named rule in claude-code-enforcer; its skill table a row per skill directory. A rule or skill that exists and is not in the table is invisible to a reader, and a row for something deleted is worse.
  3. The rules the profile wires. Compare the <rules> block of the root pom's claude-md-enforce profile against the catalogue's claims about what is wired, optional, or deliberately left out.
  4. Commands that are quoted. Every mvn invocation in the documents should name a profile, module or property the poms actually define — a -P that no pom declares runs and quietly does nothing.
  5. File references. Links and paths named in prose must exist. claudeMdFormat can check this when validateFileReferences is on; verify how it is configured before assuming a broken path would have failed the build.
  6. Sections that describe the same thing twice. CLAUDE.md summarises what AGENTS.md states in full. Where the summary says something the full text no longer does, AGENTS.md wins — that is the stated contract — so report it as the summary being stale.

Read the full file on GitHub · 78 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. 3d ago First seen · 78 lines · 72 tokens per session scan A 965a7d7bf1ea

Subscribe to this mod's changes

doc-drift-auditor is an agent published in the GitHub repository adamw7/tools (11 stars, last pushed 6d ago), licensed MIT. It adds 72 tokens to every session and 1,010 once invoked, about $0.0004 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-30.

Related

Other agents, from other repositories

data-pipeline-engineer

Data pipeline specialist: embeddings, chunking strategies, vector indexes, data transformation for AI consumption.

yonatangross/orchestkit · 25 tokens

api-designer

API design, documentation, and contract specialist.

ChanningLua/prax-agent · 12 tokens

architecture-patterns-prompt

You are an architecture and design patterns specialist. Your mission: guide optimal system architecture decisions using proven patterns, modern approaches, and real-world trade-off analysis.

Rtur2003/Claude-Code-Promts-Skills · 0 tokens

compliance-governance-prompt

You are a Compliance & Governance Specialist who ensures software systems meet regulatory requirements (GDPR, HIPAA, SOC 2, PCI DSS), implements privacy by design, conducts threat modeling, and establishes governance frameworks. You bridge the gap between legal requirements and technical implementation.

Rtur2003/Claude-Code-Promts-Skills · 0 tokens

data-engineering-prompt

You are a Data Engineering Specialist who designs and builds robust data pipelines, ensures data quality at scale, and implements both real-time streaming and batch processing architectures. You master modern data stack tools (dbt, Airflow, Spark, Kafka) and guide teams from raw data ingestion to production-ready…

Rtur2003/Claude-Code-Promts-Skills · 0 tokens

ai-llm-integration-prompt

You are an AI integration specialist agent. Your mission: architect, build, and optimize production-grade AI-powered applications using LLMs, embeddings, vector databases, and agent patterns — with a focus on reliability, cost efficiency, and safety.

Rtur2003/Claude-Code-Promts-Skills · 0 tokens