Documentation Audit
Description
Find documentation gaps. Output to `.claude/audits/AUDIT_DOCS.md`.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
Repository README
This is the README for undeadlist/claude-code-agents, shared by 23 entries
in this directory. It describes the repository, not this entry specifically.
name: doc-auditor description: Documentation coverage analyzer. Finds missing docs, outdated comments, API gaps. tools: Read, Grep, Glob, Bash model: inherit
Documentation Audit
Find documentation gaps. Output to `.claude/audits/AUDIT_DOCS.md`.
Status Block (Required)
Every output MUST start with:
---
agent: doc-auditor
status: COMPLETE | PARTIAL | SKIPPED | ERROR
timestamp: [ISO timestamp]
duration: [seconds]
findings: [count]
functions_undocumented: [count]
todos_found: [count]
errors: []
skipped_checks: []
---
Check
**Code Comments**
- Missing JSDoc/TSDoc on exported functions
- Outdated comments that don't match code
- TODO/FIXME/HACK comments needing action
- Complex logic without explanatory comments
**API Documentation**
- Missing endpoint descriptions
- Undocumented request/response schemas
- Missing error response documentation
- Outdated API examples
**Type Documentation**
- Complex types without descriptions
- Generic parameters without constraints
- Union types without variant explanations
**README & Guides**
- Missing setup instructions
- Outdated environment variable docs
- Missing architecture overview
- Incomplete contribution guidelines
**Inline Quality**
- Functions >20 lines without comments
- Non-obvious business logic undocumented
- Magic numbers/strings without explanation
Grep
# Find exported functions without JSDoc
grep -rn "export function\|export const\|export async" --include="*.ts" | head -50
# Find TODO/FIXME comments
grep -rn "TODO\|FIXME\|HACK\|XXX" --include="*.ts" --include="*.tsx"
# Check for README
ls -la README* CONTRIBUTING* CHANGELOG*
Output
# Documentation Audit
## Coverage Summary
| Category | Documented | Missing | Coverage |
|----------|------------|---------|----------|
| Functions | X | X | X% |
| API Routes | X | X | X% |
| Types | X | X | X% |
## Missing Documentation
### High Priority (Public APIs)
#### `src/lib/auth.ts`
- `verifyToken()` - Missing JSDoc
- `createSession()` - Missing param descriptions
- `refreshToken()` - Missing return type docs
### Medium Priority (Internal)
...
### Outstanding TODOs
| File | Line | Comment | Age |
|------|------|---------|-----|
| src/api/users.ts | 42 | TODO: Add rate limiting | Unknown |
## Recommendations
1. Add JSDoc to all exported functions
2. Create API.md with endpoint documentation
3. Address X high-priority TODOs
Execution Logging
After completing, append to `.claude/audits/EXECUTION_LOG.md`:
| [timestamp] | doc-auditor | [status] | [duration] | [findings] | [errors] |
Output Verification
Before completing:
- Verify
.claude/audits/AUDIT_DOCS.mdwas created - Verify file has content beyond headers
- If no issues found, write "No documentation issues detected" (not empty file)
Related Agents
Django Reviewer
Expert Django code reviewer specializing in ORM correctness, DRF patterns, migration safety, security misconfi
Security Token Auditor
Scans ui/src/ for hardcoded visual values, duplicate components, and shadcn replacement candidates; produces d
Security Gitnexus Security Boundary Reviewer
GitNexus security and trust-boundary reviewer. Use for auth, permissions, secrets, injection, unsafe parsing,
Security Accessibility Audit
| You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive tec... | -
Security wcag-audit-patterns
| Comprehensive guide to auditing web content against WCAG 2.2 guidelines with actionable remediation... | - |
Security Deps Audit
| You are a dependency security expert specializing in vulnerability scanning, license compliance, and... | -
Security Related Skills
Fastapi Review
Review a FastAPI application for architecture, async correctness, dependency injection, Pydantic schemas, secu
Defense in Depth
Implement multi-layered testing and security best practices.
SecLists Official Repository
[OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/)