audit-docs

audit-docs is a command for Claude Code from travisjneuman/.claude. It costs 20 tokens per session (1,551 once invoked), scanned A, original, MIT.

A command that checks documentation for broken links, outdated counts, old version references, and inconsistencies. It compares written information with the files and configuration currently on disk.

In plain words
What is it for?
Use it to audit documentation versions, file counts, marketplace listings, templates, hooks, and other project references.
Why use it?
It finds documentation that no longer matches the project, helping prevent users from following incorrect instructions.

Command for Claude Code

Written for Claude Code: arguments in frontmatter. Also seen: reads .claude/ paths.

Good fit Use it to audit documentation versions, file counts, marketplace listings, templates, hooks, and other project references.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/travisjneuman/.claude/audit-docs
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/travisjneuman/.claude

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/travisjneuman/.claude/audit-docs"><img src="https://agentmods.dev/badge/commands/travisjneuman/.claude/audit-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 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,551 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 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.00020 $0.01551
Opus 5 $0.00010 $0.00776
Sonnet 5 $0.00004 $0.00310
Haiku 4.5 $0.00002 $0.00155

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

Security

Grade A, and why

audit-docs scanned grade A with 2 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 6d 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.

Reads agent configuration directorieslowAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

head -20 ~/.claude/CHANGELOG.md

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Enumerates other installed skillslowAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

ls ~/.claude/skills/ | grep -v "^_\|README\|MASTER\|EXPERT\|^$" | wc -l

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

commands/audit-docs.md · 233 lines

How it starts

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

Documentation Audit

Scans all documentation files for staleness, broken references, count mismatches, and version drift.

Usage

/audit-docs [scope]

Execution Protocol

Step 1: Determine Current Truth

Gather ground-truth values by reading the filesystem directly:

# Current version (from CHANGELOG.md first entry or package.json)
head -20 ~/.claude/CHANGELOG.md

# Actual skill count
ls ~/.claude/skills/ | grep -v "^_\|README\|MASTER\|EXPERT\|^$" | wc -l

# Actual agent count
ls ~/.claude/agents/*.md 2>/dev/null | wc -l

# Actual command count
ls ~/.claude/commands/*.md 2>/dev/null | wc -l

# Actual marketplace repo count
ls -d ~/.claude/plugins/marketplaces/*/ 2>/dev/null | wc -l

# Actual template count
ls ~/.claude/templates/ 2>/dev/null | wc -l

# Actual hook count
grep -c '"PreToolUse"\|"PostToolUse"\|"Notification"\|"UserPromptSubmit"\|"Stop"\|"PreCompact"\|"SubagentStop"' ~/.claude/settings.json

Store these as the source of truth for comparison.


Step 2: Scan for Version References

If scope is versions or all:

Search all documentation files for version strings and compare against the current version:

Directories to scan: docs/, commands/, skills/, templates/, README.md, CHANGELOG.md

Patterns to check:

Pattern Example Match Check Against
v\d+\.\d+\.\d+ v2.4.0 Latest version in CHANGELOG
version \d+\.\d+\.\d+ version 2.4.0 Latest version in CHANGELOG
Version: \d+\.\d+ Version: 2.4 Latest version in CHANGELOG

Report any version references that do not match the current version, with file path and line number.

Exceptions: CHANGELOG.md itself contains historical versions -- only flag non-CHANGELOG files with outdated versions.


Step 3: Scan for Count Mismatches

If scope is counts or all:

Search documentation files for count references and compare against ground truth:

Read the full file on GitHub · 233 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. 6d ago First seen · 233 lines · 20 tokens per session scan A 91d1f4691ccf

Subscribe to this mod's changes

audit-docs is a command published in the GitHub repository travisjneuman/.claude (97 stars, last pushed 4d ago), licensed MIT. It adds 20 tokens to every session and 1,551 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 2 findings (reads agent configuration directories, enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.