audit

audit is a skill for Claude Code, Codex from akira993/doc-audit-harness. It costs 80 tokens per session (25,055 once invoked), scanned B, original, MIT.

A report-only workflow that checks whether project documentation still matches recent code or configuration changes. It uses project-specific settings and can also scan the whole documentation set.

In plain words
What is it for?
Use it to review documentation since the last audit, run a full consistency check, or confirm that release documentation is not stale.
Why use it?
Documentation can become outdated when files or settings change. This audit identifies affected or inconsistent documents before a release without changing them.

Skill for Claude CodeCodex

Written for Claude Code and Codex: argument-hint in frontmatter, but also runs codex exec. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Part of the docaudit plugin — 2 skills, 3 agents shipped together

Good fit Use it to review documentation since the last audit, run a full consistency check, or confirm that release documentation is not stale.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/akira993/doc-audit-harness/audit
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.

Any agent
npx skills add akira993/doc-audit-harness --skill audit
Clone the repo
git clone --depth 1 https://github.com/akira993/doc-audit-harness

Made for: Claude Code, Codex.

Or install docaudit, the plugin that ships this one along with the rest of its 2 skills, 3 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 audit

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/akira993/doc-audit-harness/audit"><img src="https://agentmods.dev/badge/skills/akira993/doc-audit-harness/audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 25,055 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 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.00080 $0.25055
Opus 5 $0.00040 $0.12527
Sonnet 5 $0.00016 $0.05011
Haiku 4.5 $0.00008 $0.02506

Measured 2d ago against content hash 96635112fc22, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade B, and why

audit scanned grade B 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 2d ago.

The scan reads SKILL.md. This mod also ships 47 executable files (references/claim-adjudication-workflow.js, references/workflow-template.js, scripts/ax-probe.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Downloads and executes remote codemediumSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- `AX_AVAILABLE` false → `💡 ax: not active — external-URL claims go unverified; install: curl -fsSL https://ax.yusuke.run/install | sh`

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

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `AX_AVAILABLE` false → `💡 ax: not active — external-URL claims go unverified; install: curl -fsSL https://ax.yusuke.run/install | sh`
skills/audit/SKILL.md · 958 lines

How it starts

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

docaudit:audit — change-driven documentation audit

Report-only orchestrator. Reads the per-project adapter ${CLAUDE_PROJECT_DIR}/.claude/doc-audit.json. If that file is absent, tell the user to run /docaudit:init (Plan 3) or that this repo has no adapter yet — do NOT invent project facts.

SD="${CLAUDE_SKILL_DIR}" ; CFG="${CLAUDE_PROJECT_DIR}/.claude/doc-audit.json". Also bind ANCHOR_PATH="$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1])).get("anchorPath",""))' "$CFG")" for the run lifecycle and Phase 5. --full forces whole-corpus mode (ignores the anchor diff scope).

Open the run before every Phase-0 probe — this is the audit's first action after confirming the config exists. Bind RUN_BASE="$CLAUDE_PROJECT_DIR/.claude/state/docaudit-run". If --break-lock was supplied, run only python3 "$SD/scripts/open-run.py" --run-base "$RUN_BASE" --repo-root "$CLAUDE_PROJECT_DIR" --anchor-path "$ANCHOR_PATH" --break-lock, report its JSON (including holder), and exit; this path does not acquire a new lock or run any phase. It is an emergency operation that intentionally breaks report serialization; while the gate holds its flock, including the complete gate+report interval, it MUST be refused with reason:"gate-running" and must never be bypassed. Otherwise run Before acquiring a run lock, run AUDIT_SCOPE_CHECK="$(python3 "$SD/scripts/import-audit-scope.py" --repo-root "$CLAUDE_PROJECT_DIR" --config "$CFG" --check --json)". Bind PRECHECK_CONFIG_SHA, AUDIT_SCOPE_PATH, and AUDIT_SCOPE_STATE from that same JSON's configSha, scopePath, and state fields; do not read the config again between this check and open. If AUDIT_SCOPE_STATE is drift or path-mismatch, or errors[] is non-empty, stop without calling the lock-acquiring open-run.py; for path-mismatch, show both scopePath and recordedScopePath, otherwise show diff.missing / diff.extra (or errors[]), and tell the user to run /docaudit:init --import-audit-scope to restore the generated map. If it is not-imported, show only 💡 audit-scope.json は未導入です。 and continue. absent and in-sync are silent. python3 "$SD/scripts/open-run.py" --run-base "$RUN_BASE" --repo-root "$CLAUDE_PROJECT_DIR" --anchor-path "$ANCHOR_PATH" --expect-config-sha "$PRECHECK_CONFIG_SHA" --skill-version 0.22.0 [--accept-config], adding --accept-config only when the skill received it. Assign the complete stdout JSON, unchanged, to EVIDENCE; bind RUNID and RUN_DIR from its runid and runDir fields. Do not create RUN_DIR yourself. If stdout includes previousReportStatus with pending, failed, or written-durability-unknown, report that unresolved or uncertain prior report state to the user before Phase 0; do not silently discard it. Continue the newly locked run normally. Exit 4 with {locked:true,holder} means a prior run owns the lock: show the holder and stop with “先行 run が lock を保持しています。死んでいるなら /docaudit:audit --break-lock を実行してください。” Exit 6 means an earlier run detected an unapproved config change: stop, ask the user to inspect git diff .claude/doc-audit.json, and re-run with --accept-config only after approving that difference. Neither exit path owns a lock. Exit 2 with stderr containing unrecognized arguments: --skill-version or does not match plugin engine version means the plugin and this skill have different versions: start a new session and rerun /docaudit:audit. This exit path also owns no lock.

After every successful open and at the beginning of every later turn or phase before its first config consumer, re-derive CONFIG_SHA="$(python3 -c 'import json,sys; print(json.loads(sys.argv[1])["config"])' "$EVIDENCE")". CONFIG_SHA is never restored from a checkpoint as an independent value.

EVIDENCE is the sole transport for evidence hashes. open-run.py seeds it; every later evidence producer (write-evidence.py, plan-dispatch.py, start-run.py, and seal-run.py) receives --evidence "$EVIDENCE" and its complete stdout JSON MUST replace EVIDENCE verbatim. Never parse hashes into separate carried variables, merge JSON by hand, add sentinel fields by hand, or reconstruct an earlier value. Operational values such as MODE, tool availability, and status lines may be bound normally, but the only carried evidence state is RUNID plus the one EVIDENCE string. The gate receives it only as --expect-json "$EVIDENCE". probe-record.py also receives --evidence "$EVIDENCE" for run-dir validation only; it is not an evidence producer and its stdout MUST NOT replace EVIDENCE.

Read the full file on GitHub · 958 lines

Files

What ships with it

52 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago Changed · -13 lines 96635112fc22
  2. 3d ago Changed · -7 lines · -5 tokens per session 3d1ab04ea06e
  3. 8d ago First seen · 978 lines · 85 tokens per session scan B 6b80d13bd493

Subscribe to this mod's changes

audit is a skill published in the GitHub repository akira993/doc-audit-harness (3 stars, last pushed 2d ago), licensed MIT. It adds 80 tokens to every session and 25,055 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

stale-docs

Use when a stale-docs hook or /stale-docs audit reports documentation referencing code that was just changed. Repairs the affected docs against the current source, from a one-word patch up to a full rewrite, staged in the same commit as the code change.

SectionTN/stale-docs · 58 tokens

chief-strategy-officer

Owns where the business plays and how it wins over a multi-year horizon — portfolio choices, corporate development, strategic partnerships, and planning under uncertainty. Use this for a decision about which markets or businesses to be in, whether to build, buy, or partner, how to allocate capital across business…

cbrock84/headcount · 93 tokens

seo-strategy

Audits and improves organic search performance — technical health, site architecture, internal linking, structured data, and the content decisions that determine what can rank. Use this to run an SEO audit, diagnose why pages are not ranking or were deindexed, plan a site's URL and navigation structure, add structured…

cbrock84/headcount · 74 tokens

youtube-producer

Plans, packages, and scripts long-form video for retention and channel growth — idea selection, titles and thumbnails, script structure, and diagnosing why a video or channel underperforms. Use this for video ideas, packaging, scripting, a retention teardown, or channel strategy — including when someone describes a…

cbrock84/headcount · 86 tokens

chief-revenue-officer

Owns the revenue engine end to end: sales, monetization, pricing, customer success, retention, and partnerships. Use this for pricing and packaging decisions, sales strategy and coverage, forecast and pipeline health, churn and expansion, partner and channel strategy, or when marketing-sourced demand is not…

cbrock84/headcount · 80 tokens

ai-ml-governance

Governs models and AI systems in production — intended use, evaluation, monitoring, human oversight, documentation, and the decision to deploy or retire. Use this before deploying a model or AI feature, when defining evaluation criteria, when a model's behavior has drifted, when assessing AI risk or regulatory…

cbrock84/headcount · 83 tokens