docs-audit

docs-audit is a command for Claude Code from ihudak/ihudak-claude-plugins. It costs 165 tokens per session (17,432 once invoked), scanned A, original, MIT.

A documentation-audit command that finds what a product's documentation does not cover and writes a prioritised backlog. A backlog is an ordered list of work still to do.

In plain words
What is it for?
Use it to scan a product's code repositories and specifications, create a coverage grid, and save the resulting backlog in the documentation repository.
Why use it?
It replaces an informal search through code and documents with a repeatable view of missing coverage and what should be written first. It keeps the audit separate from writing the actual pages.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions .claude-plugin.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the docs-workflows plugin — 1 skill, 6 commands, 11 agents shipped together

Good fit Use it to scan a product's code repositories and specifications, create a coverage grid, and save the resulting backlog in the documentation repository.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ihudak/ihudak-claude-plugins
Claude Code
/plugin install docs-workflows

Made for: Claude Code.

Or install docs-workflows, the plugin that ships this one along with the rest of its 1 skill, 6 commands, 11 agents.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/ihudak/ihudak-claude-plugins/docs-audit"><img src="https://agentmods.dev/badge/commands/ihudak/ihudak-claude-plugins/docs-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 165 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 17,432 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.00165 $0.17432
Opus 5.5 $0.00066 $0.06973
Sonnet 5.5 $0.00033 $0.03486
Haiku 4.5 $0.00016 $0.01743

Measured 2mo ago against content hash 7a053561c217, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docs-audit 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 2mo 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.

plugins/docs-workflows/commands/docs-audit.md · 403 lines

How it starts

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

Core references. A citation of the form workflows-core:<name> names a shared reference in the workflows-core plugin. Load it with Skill(skill: "workflows-core:reference", args: "<name>") — never by path: ${CLAUDE_PLUGIN_ROOT} resolves to this plugin, which does not carry it.

Audit a documentation repository's coverage: $ARGUMENTS

/docs-audit answers one question — what is this product missing documentation about, and which of it is worth writing first. It builds a denominator from the product's own code and from the committed documents in the specs tree, crosses that denominator with the page types each thing actually earns, ranks the result, and writes .dev-workflows/docs-backlog.yml in the resolved documentation repository. It writes no documentation content: its output is a backlog and a coverage grid, and turning a unit into a page is a later act. Its bulk lives in this plugin's own references and it does not restate them — the coverage vocabulary, the file's schema and the evidence contract are ${CLAUDE_PLUGIN_ROOT}/references/docs-audit/'s, and a second copy of any of them is a second thing to keep in step. This command body names the entry point it is executing at each step, the inputs it owes each agent, and the merges no agent can make on its own.

Signature: /docs-audit [<docs-repo-path>] [--audience user|engineering|both] [--refresh] [--threshold <n>]

Every stop in this command takes the same route, and each site says so. A stop is still a run: it prints its DOCS_AUDIT_* line, skips to the Phase 6 report, which states that stop and nothing else, and then runs the emitter tail (Phases 7–9) — so its cost and feedback are recorded and commit-artifacts runs as the last action, which is the family invariant every command writing into $SPECS_PATH holds. That is what takes the stop route means wherever this body uses it below. The exceptions are the runs that end before Phase 0 step 2 has resolved a repository — step 1's three flag stops, and a Cancel at step 2's own choice — since there is nothing yet to report against; Phase 9 states them.

Four guarantees are this orchestrator's and no agent's, and they are the reason this command is more than three dispatches in a row. docs-auditor and ia-planner each guarantee their own rules within their own return; only this command holds the file, so only this command can reconcile a return against what is already in it. Those four are: the volatility: unknown substitution (Phase 5), handing each agent what already exists on a --refresh (Phases 3 and 4), keeping a theme the scan could not settle out of the gap list (Phases 2 and 4), and applying priority_comparisons[] (Phase 5). A fifth is the tutorial mint (Phase 4.5), which ia-planner is forbidden to perform and ${CLAUDE_PLUGIN_ROOT}/references/docs-audit/backlog-format.md §1 assigns to --refresh — this command — by name.


Phase 0 — Resolve

  1. Flags. Strip --refresh, --audience <value> and --threshold <n> from $ARGUMENTS — each of the last two together with the token immediately after it — before reading a positional token. What remains is the optional <docs-repo-path>. A value read as a path because the flag ahead of it was not stripped is a run that audits the wrong repository, or none. --audience takes user, engineering or both, and nothing else: any other value stops with DOCS_AUDIT_UNKNOWN_AUDIENCE: <value> is not an audience (user, engineering or both). Absent, it is both. --threshold takes a positive integer: anything else stops with DOCS_AUDIT_BAD_THRESHOLD: <value> is not a positive integer. After the recognised flags are stripped, any remaining token that begins with -- stops the run — DOCS_AUDIT_UNKNOWN_FLAG: <token> is not a flag of /docs-audit. All three of this step's stops are exceptions to the stop route, with step 2's Cancel: they fire before step 2 resolves anything, so there is no repository to report against and nothing to file a cost entry to — the stop is printed and the run ends there, which is the exception Phase 9 states from the other end. The rule is general, not a list: resolve-docs-repo rung 1 takes the first positional token as given, with no signal test, so a mistyped --dryrun would become the resolved repository and Phase 5 would write --dryrun/.dev-workflows/docs-backlog.yml. That includes --docs and --no-docs, which this command deliberately does not have — it resolves no documentation grounding, see step 7 for why.

Read the full file on GitHub · 403 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. 2mo ago Changed 7a053561c217
  2. 2mo ago First seen · 403 lines · 165 tokens per session scan A 2ffb5ce367aa

Subscribe to this mod's changes

docs-audit is a command published in the GitHub repository ihudak/ihudak-claude-plugins (2 stars, last pushed 2mo ago), licensed MIT. It adds 165 tokens to every session and 17,432 once invoked, about $0.0007 per session on Opus 5.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-23.

Related

docs-audit compared with commands from other repositories

docs-audit next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docs-auditihudak/ihudak-claude-pluginsCommand22mo agoMITA165Claude Code
memorizelucasrosati/claude-code-memory-setupCommand1.1kyesterdayMITA0Claude Code
opsfrankxai/agentic-creator-osCommand14yesterdayApache-2.0A35Claude Code
commitjoaquimscosta/arkhe-claude-pluginsCommand241mo agoMITA11Claude Code
gws-peoplefakoli/fakoli-pluginsCommand44d agoMITA9Claude Code
package-reviewoborchers/fractional-ctoCommand391mo agoMITA41Claude Code
searchcoltonbearden/carrelCommand22d agoMITA29Claude Code