audit-documentation

audit-documentation is a skill for Claude Code from handarbeit/fabrik. It costs 27 tokens per session (1,919 once invoked), scanned A, original, Apache-2.0.

A documentation-audit workflow for comparing recently shipped features with the project's user guide, README, and documentation index.

In plain words
What is it for?
Use it to scan recently closed issues or commits since a Git tag, file GitHub issues for documentation gaps, and close issues whose missing content is now covered.
Why use it?
It finds behavior that was added but never documented, and identifies documentation issues that are already resolved. This reduces the chance that users rely on missing or outdated instructions.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

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 skills/handarbeit/fabrik/audit-documentation
Any agent
npx skills add handarbeit/fabrik --skill audit-documentation
Clone the repo
git clone --depth 1 https://github.com/handarbeit/fabrik

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-documentation

README.md
[![agentmods](https://agentmods.dev/badge/skills/handarbeit/fabrik/audit-documentation.svg)](https://agentmods.dev/skills/handarbeit/fabrik/audit-documentation)
Your own site
<a href="https://agentmods.dev/skills/handarbeit/fabrik/audit-documentation"><img src="https://agentmods.dev/badge/skills/handarbeit/fabrik/audit-documentation.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,919 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.1 $0.00027 $0.01919
Opus 5 $0.00014 $0.00959
Sonnet 5 $0.00005 $0.00384
Haiku 4.5 $0.00003 $0.00192

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

Security

Grade A, and why

audit-documentation 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 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.

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.

.claude/skills/audit-documentation/SKILL.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.

Audit Documentation

Compare recently shipped features against USER_GUIDE.md, README.md, and docs/index.md. File GitHub issues for documentation gaps and close existing documentation issues whose gaps are now covered.

Usage

/audit-documentation                  # Scan issues closed in the last 30 days
/audit-documentation --since v0.0.20  # Scan issues referenced in commits since a tag

Known limitation: Rate limits may apply for repos with hundreds of closed issues. The tag-based mode may miss issues if their PRs used Fixes or bare URLs instead of Closes #NNN.

Steps

Step 1 — Parse arguments and pre-flight

Detect whether --since <tag> was provided:

# Tag-based mode
TAG="v0.0.20"  # extracted from --since argument

# Validate tag exists locally
git rev-parse --verify "refs/tags/$TAG" 2>/dev/null
if [ $? -ne 0 ]; then
  # Try fetching tags and retry
  git fetch --tags origin
  git rev-parse --verify "refs/tags/$TAG" 2>/dev/null || {
    echo "Error: tag '$TAG' not found locally or on origin. Aborting."
    exit 1
  }
fi

For the default 30-day mode, compute the cutoff date using Python (portable across macOS and Linux):

CUTOFF_DATE=$(python3 -c "from datetime import datetime,timedelta; print((datetime.now()-timedelta(days=30)).strftime('%Y-%m-%d'))")
echo "Scanning issues closed since: $CUTOFF_DATE"

Step 2 — Discover source issues

Tag-based mode (two-pass):

Pass 1 — extract issue numbers from commit messages since the tag:

git log "$TAG..HEAD" --format="%s%n%b" | grep -oE '#[0-9]+' | grep -oE '[0-9]+' | sort -u

Pass 2 — get the tag's commit date, then find merged PRs since that date and extract Closes #NNN references:

TAG_DATE=$(git log -1 --format="%ci" "refs/tags/$TAG" | cut -d' ' -f1)
gh pr list -R handarbeit/fabrik --state merged \
  --search "merged:>=$TAG_DATE" \
  --json number,body \
  --limit 500 \
  --jq '.[] | .body' \
  | grep -oiE '(closes|fixes|resolves) #[0-9]+' \
  | grep -oE '[0-9]+' \
  | sort -u

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. 6d ago First seen · 234 lines · 27 tokens per session scan A 056ba7d2087e

Subscribe to this mod's changes

audit-documentation is a skill published in the GitHub repository handarbeit/fabrik (22 stars, last pushed 2d ago), licensed Apache-2.0. It adds 27 tokens to every session and 1,919 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-30.