ワンクリックで
audit-docs
Orchestrate sequential documentation audits with checkpointing and resumption.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Orchestrate sequential documentation audits with checkpointing and resumption.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Create, list, and resolve review issues. Critical issues get individual files for research; warnings and gaps go to a quick-fix checklist.
Analyze Claude Code session transcripts — search, summarize, list, or inspect how a session went.
Design architecture docs for new features, refactors, or redesigns. Produces implementation-ready docs with complete file impact analysis.
Review architecture documents against code implementation and principles.
Guide sprint planning from scope assessment to spec artifacts.
Adversarial evaluation of sprint spec before implementation.
| name | audit-docs |
| description | Orchestrate sequential documentation audits with checkpointing and resumption. |
| disable-model-invocation | true |
Orchestrate sequential documentation audits with file-based checkpointing. Enables resumption across sessions.
docs/audits/
YYYY-MM-DD_HHMMSS/
manifest.yaml # checkpoint state
summary.md # generated after all audits complete
findings/
actors.md
behaviors.md
...
Look for existing sessions:
Glob: docs/audits/*/manifest.yaml
For each manifest found, read it. If any has status: auditing or status: summarizing:
AskUserQuestion:
question: "Found incomplete audit session from {session_id}. How should I proceed?"
options:
- "Resume the incomplete session"
- "Start a fresh audit (abandons previous)"
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.
Create session folder:
session_id = current timestamp as "YYYY-MM-DD_HHMMSS"
folder = docs/audits/{session_id}/
Create the folder structure:
docs/audits/{session_id}/
docs/audits/{session_id}/findings/
Discover architecture docs:
Glob: docs/architecture/*.md
Exclude:
README.md (index/navigation)PROCESS.md (workflow documentation)Write initial manifest:
session_id: "{session_id}"
created_at: "{ISO timestamp}"
status: "auditing"
docs:
- name: "actors.md"
path: "docs/architecture/actors.md"
status: "pending"
error: null
- name: "behaviors.md"
path: "docs/architecture/behaviors.md"
status: "pending"
error: null
# ... all discovered docs
Report: "Created audit session {session_id} with {N} docs to audit."
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 (NOT in background):
Task(
subagent_type="doc-auditor",
prompt="Audit this architecture doc against implementation.\n\ndoc_path: {doc_path}",
run_in_background=false
)
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.
Once all docs have status: complete or status: error:
Update manifest - set status: "summarizing"
Read all findings files from findings/ folder
Generate 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 docs/audits/{session_id}/summary.md"
Display the summary to the user (read and output summary.md content).
Then ask:
AskUserQuestion:
question: "How should I proceed with documentation updates?"
options:
- "Fix all findings"
- "Show me the specific changes first"
- "Skip updates for now"
For each finding to fix:
Report each change made.
After fixes, offer to re-run audit on modified docs only:
AskUserQuestion:
question: "Want me to verify the fixes?"
options:
- "Yes, re-audit modified docs"
- "No, I'll review manually"
session_id: str # "YYYY-MM-DD_HHMMSS"
created_at: str # ISO 8601 timestamp
status: str # "auditing" | "summarizing" | "complete"
docs:
- name: str # "actors.md"
path: str # "docs/architecture/actors.md"
status: str # "pending" | "auditing" | "complete" | "error"
error: str | null # error message if status=error
# Audit: {doc_name}
**Audited:** {ISO timestamp}
**Doc path:** {path}
## Findings
1. **{title}**
- Doc says: "{quote from doc}"
- Code does: {actual behavior}
- Location: {file}:{line}
2. **{title}**
...
## Verified Accurate
- {item verified correct}
- {item verified correct}
The doc-auditor agent discovers code paths from within the doc itself:
src/fabulexa/... paths in the doc{name}.md often maps to src/fabulexa/{name}/The agent should NOT rely on a hardcoded mapping.
User: /audit-docs
Claude: Checking for incomplete sessions...
No incomplete sessions found.
Creating audit session 2025-01-21_143022 with 10 docs to audit.
Auditing actors.md...
Completed 1/10: actors.md - 2 findings
Auditing behaviors.md...
Completed 2/10: behaviors.md - 0 findings
...
Audit complete. Summary written to docs/audits/2025-01-21_143022/summary.md
# Documentation Audit Summary
...
How should I proceed with documentation updates?
[Fix all findings] [Show changes first] [Skip updates]
User: /audit-docs
Claude: Checking for incomplete sessions...
Found incomplete audit session from 2025-01-21_143022.
Progress: 6/10 docs complete.
How should I proceed?
[Resume the incomplete session] [Start a fresh audit]
User: Resume
Claude: Resuming session 2025-01-21_143022...
Auditing simulation.md...
Completed 7/10: simulation.md - 1 finding
...