audit-docs

audit-docs is a command for Claude Code from travisjneuman/.claude. It costs 20 tokens per session (1,595 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: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md.

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,595 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.01595
Opus 5.5 $0.00008 $0.00638
Sonnet 5.5 $0.00004 $0.00319
Haiku 4.5 $0.00002 $0.00160

Measured 20d ago against content hash 0251a6a6dfa7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 20d 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 · 234 lines

How it starts

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

Documentation Audit

Arguments: scope (optional): Optional scope to narrow the audit: 'counts', 'links', 'versions', or 'all' (default: all).

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

Usage

/audit-docs [scope]

Execution Protocol

Before saving findings or repairing documentation, follow Memory and documentation. Update the owning subject note first; keep public repairs scoped to affected references rather than copying private routing policy.

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

Read the full file on GitHub · 234 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. 20d ago Changed · -1 lines 0251a6a6dfa7
  2. 26d ago Changed · +2 lines 483d1a065a88
  3. 2mo 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 (115 stars, last pushed yesterday), licensed MIT. It adds 20 tokens to every session and 1,595 once invoked, about $0.0001 per session on Opus 5.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.

Related

audit-docs compared with commands from other repositories

audit-docs next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
audit-docstravisjneuman/.claudeCommand115yesterdayMITA20Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
analyzegithub/spec-kitCommand153ktodayMITA26Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code
convergegithub/spec-kitCommand153ktodayMITA35Claude Code
implementgithub/spec-kitCommand153ktodayMITA14Claude Code