Documentation Freshness Audit Skill
Systematically audit all documentation for freshness, accuracy, and completeness.
Trigger Conditions
- •Documentation audit is scheduled
- •Release preparation begins
- •Quarterly review cycle
- •User invokes with "doc freshness" or "documentation-freshness"
Input Contract
- •Required: Path to documentation root and source code root
- •Optional: Last audit date for delta reporting
Output Contract
- •Freshness score per document (last modified vs last code change)
- •Stale documents (code changed but docs not updated)
- •Orphaned documents (reference deleted code/features)
- •Missing documents (new code without documentation)
- •Dead links in documentation
- •Overall documentation health score
Tool Permissions
- •Read: All documentation files, source code (for cross-reference)
- •Write: Freshness audit report
- •Search: Grep for file references, URLs, code references in docs
- •Shell: Run link checkers, markdown linters
Execution Steps
- •Inventory documents: List all
.mdfiles, OpenAPI specs, and inline doc comments - •Check freshness: Compare last-modified dates of docs vs corresponding source files
- •Check references: Verify all file paths, function names, and URLs in docs still exist
- •Check coverage: For each exported function/endpoint, verify documentation exists
- •Check links: Validate all URLs and cross-references in documentation
- •Score: Assign health score based on freshness, coverage, and accuracy
- •Report: Produce audit report with specific files and remediation actions
Freshness Thresholds
- •Fresh: Doc updated within 7 days of corresponding code change
- •Aging: Doc updated 7-30 days after code change
- •Stale: Doc not updated 30+ days after code change
- •Orphaned: Doc references code that no longer exists
References
- •
.cursor/rules/048-documentation-standards.mdc