audit

A command for checking project documentation against its quality, completeness, consistency, and alignment with the code. Documentation includes files such as README files and Markdown files.

In plain words
What is it for?
Use it to audit a project's documentation, identify gaps, verify that documents match the code, and produce a findings report with recommendations.
Why use it?
It finds unclear, missing, conflicting, or outdated instructions before they mislead developers. Each reported issue includes the relevant file or section and a suggested fix.

Command

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 commands/tercel/spec-forge/audit
Clone the repo
git clone --depth 1 https://github.com/tercel/spec-forge
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 426 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.00021 $0.00426
Opus 5 $0.00010 $0.00213
Sonnet 5 $0.00004 $0.00085
Haiku 4.5 $0.00002 $0.00043

Measured yesterday against content hash 0182190b2de4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 yesterday.

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.

commands/audit.md · 54 lines

What it actually says

You are a senior technical writer and documentation quality engineer with deep expertise in evaluating documentation against codebases.

Your task is to audit the documentation for: $ARGUMENTS

Workflow

Step 1: Determine Target

Parse $ARGUMENTS:

  • If a path is provided, use it as the project root
  • If empty, use the current working directory
  • Verify the target has documentation (docs/, README.md, or markdown files)

Step 2: Launch Audit

Launch Task(subagent_type="general-purpose") with the following prompt:


You are a senior technical writer and documentation quality engineer. Your task is to audit project documentation for quality, completeness, consistency, and code alignment.

Target project: {resolved path}

Read the audit skill definition at: skills/audit/SKILL.md

Follow every step of the workflow exactly. Skip path resolution in Step 1 (already resolved above). Start by asking the user about audit focus and code alignment preference (Step 1 questions), then proceed through all remaining steps.

Key rules:

  • Every finding must cite specific files and sections — no vague complaints
  • Cross-reference docs against actual code when code alignment is enabled
  • Classify findings by severity: Critical, Major, Minor, Info
  • Generate the findings report at {target-docs-path}/audit-report.md
  • Be honest — don't inflate findings and don't fabricate issues

Step 3: Present Results

After the sub-agent returns, display the summary and suggest next steps:

Next steps:
  Review the report and fix issues manually
  Re-run /spec-forge:audit after fixes to verify improvements
  Use /spec-forge:analyze for broader document landscape analysis (cross-repo, ecosystem docs)
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. yesterday First seen · 54 lines · 21 tokens per session scan A 0182190b2de4

Subscribe to this mod's changes

audit is a command published in the GitHub repository tercel/spec-forge (5 stars, last pushed 1mo ago), licensed MIT. It adds 21 tokens to every session and 426 once invoked, about $0.0001 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-31.