audit-docs
FreeNo executable scriptsNot checkedOrchestrate sequential documentation audits with checkpointing and resumption.
by leogodin217★ 65 GitHub starsAbout this skill
Audit Docs
Orchestrate sequential documentation audits with file-based checkpointing. Enables resumption across sessions.
Context posture
Task-scoped — the audited subsystem's docs and the code they claim. Do NOT
run /understand; do NOT load repo-wide architecture. An audit asks whether
this subsystem's docs match its own code, and wider context lets the
orchestrator paper over a gap from memory instead of flagging it. The
doc-auditor agents load what each audit area needs, in their own contexts.
Output Location
An audit writes beside the docs it audited. <audit-root> below means an
audits/ sibling of the architecture/ directory the discovery step globbed
— so findings live with the subsystem they concern, in either repo layout. In
this repo that resolves to packages/<pkg>/docs/audits/.
<audit-root>/
YYYY-MM-DD_HHMMSS/
manifest.yaml # checkpoint state
summary.md # generated after all audits complete
findings/
config.md
validation.md
...
Process
1. Check for Incomplete Session
Look for existing sessions:
Glob: <audit-root>/*/manifest.yaml
For each manifest found, read it. If any has status: auditing or status: summarizing:
Ask in chat — not via the question interface (CLAUDE.md § Asking Questions):
name the session id and its status, and offer resuming it or starting fresh
(which abandons it).
If "Resume" → skip to Phase 2 or 3 based on manifest status. If "Start fresh" → continue to initialization.
If no incomplete sessions found, proceed to initialization.
2. Initialize Session
Create session folder:
session_id = current timestamp as "YYYY-MM-DD_HHMMSS"
folder = <audit-root>/{session_id}/
Create the folder structure:
<audit-root>/{session_id}/
<audit-root>/{session_id}/findings/
Ask the repo where its subsystem docs live, rather than assuming a layout:
~/.claude/skills/understand/load.py . --field subsystem-docs
Glob *.md under what it prints — that is one directory per subsystem in a
packaged repo, and a single flat directory in a repo that keeps them together.
This one call is the whole reason this skill can run unmodified in either.
Exclude:
README.md(index/navigation)
Write initial manifest:
session_id: "{session_id}"
created_at: "{ISO timestamp}"
status: "auditing"
docs:
- name: "config.md"
path: "{discovered path}" # repo-relative, as globbed above
status: "pending"
error: null
# ... one entry per discovered doc
Report: "Created audit session {session_id} with {N} docs to audit."
3. Audit Phase (Sequential, Checkpointed)
Read manifest to find docs with status: pending.
For each pending doc, one at a time:
Update manifest - set doc
status: "auditing"Launch doc-auditor agent via the Agent tool (foreground — one doc at a time):
Agent( subagent_type="doc-auditor", description="Audit {doc_name}", prompt="Audit this architecture doc against implementation.\n\ndoc_path: {doc_path}" )The call blocks until the agent finishes and returns its final message directly as the result.
Write findings file - take agent response and write to
findings/{doc_name}:# Audit: {doc_name} **Audited:** {ISO timestamp} **Doc path:** {doc_path} ## Findings {findings from agent, numbered list} ## Verified Accurate {verified items from agent, bullet list}Update manifest - set doc
status: "complete"Report progress: "Completed {n}/{total}: {doc_name} - {X} findings"
Continue to next pending doc
If agent returns error: Set doc status: "error", error: "{message}", continue to next doc.
Checkpoint guarantee: After each doc, manifest reflects current state. If context exhausts, next session resumes from manifest.
4. Summary Phase
Once all docs have status: complete or status: error:
Update manifest - set
status: "summarizing"Read all findings files from
findings/folderGenerate summary.md:
# Documentation Audit Summary **Session:** {session_id} **Completed:** {ISO timestamp} ## Overview - Docs audited: {total} - Docs with findings: {count with findings} - Docs verified accurate: {count with no findings} - Docs with errors: {count with errors} ## Findings ### {doc_name} {copy findings section from that doc's file} ### {doc_name} ... ## Verified Accurate - {doc_name} - {doc_name} - ... ## Errors - {doc_name}: {error message} - ...Update manifest - set
status: "complete"Report: "Audit complete. Summary written to
/{session_id}/summary.md"
5. Present and Ask for Approval
Display the summary to the user (read and output summary.md content).
Then ask in chat how to proceed — fix all find
Install audit-docs in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the audit-docs skill do?
Orchestrate sequential documentation audits with checkpointing and resumption.
How do I install the audit-docs skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the audit-docs skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic