aiskillstore/documentation-audit
This skill should be used when verifying documentation claims against codebase reality. Triggers on "audit docs", "verify documentation", "check docs", "docs accurate", "documentation drift", "before release", "after refactor", "docs don't match". Uses two-pass extraction with pattern expansion for comprehensive detection.
This is a copy. The original lives at comeonoliver/documentation-audit.
npx skills add https://github.com/aiskillstore/marketplace --skill documentation-audit
<!-- ABOUTME: Documentation audit skill for verifying claims against codebase -->
<!-- ABOUTME: Uses two-pass extraction with pattern expansion for comprehensive detection -->
Systematically verify claims in documentation against the actual codebase using a two-pass approach.
Core principle: Low recall is worse than false positives—missed claims stay invisible.
Two-pass process:
plans/, audits/)docs/audits/AUDIT_REPORT_YYYY-MM-DD.md| Type | Example | Verification |
|------|---------|--------------|
| file_ref | scripts/foo.py | File exists? |
| config_default | "defaults to 'AI Radio'" | Check schema/code |
| env_var | STATION_NAME | In .env.example + code? |
| cli_command | --normalize flag | Script supports it? |
| behavior | "runs every 2 minutes" | Check timers/code |
Verification confidence:
After Pass 1, analyze false claims and search for similar patterns:
Dead script found: diagnose_track_selection.py
→ Search: all script references → Found 8 more dead scripts
Wrong interval: "every 10 seconds"
→ Search: "every \d+ (seconds?|minutes?)" → Found 3 more
Wrong service name: ai-radio-break-gen.service
→ Search: service/timer names → Found naming inconsistencies
Common patterns to always check:
scripts/*.py referencesevery \d+ (seconds?|minutes?)ai-radio-*.service, *.timerRADIO_* environment variables--flag patterns in bash blocksGenerate docs/audits/AUDIT_REPORT_YYYY-MM-DD.md:
# Documentation Audit Report
Generated: YYYY-MM-DD | Commit: abc123
## Executive Summary
| Metric | Count |
|--------|-------|
| Documents scanned | 12 |
| Claims verified | ~180 |
| Verified TRUE | ~145 (81%) |
| **Verified FALSE** | **31 (17%)** |
## False Claims Requiring Fixes
### CONFIGURATION.md
| Line | Claim | Reality | Fix |
|------|-------|---------|-----|
| 135 | `claude-sonnet-4-5` | Actual: `claude-3-5-sonnet-latest` | Update |
## Pattern Summary
| Pattern | Count | Root Cause |
|---------|-------|------------|
| Dead scripts | 9 | Scripts deleted, docs not updated |
## Human Review Queue
- [ ] Line 436: behavior claim needs verification
For execution checklist and anti-patterns: checklist.md
For claim extraction patterns: extraction-patterns.md
Take aiskillstore/documentation-audit from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.