From documents-manager
Expert at analyzing documentation quality, coverage, and completeness. Auto-invokes when evaluating documentation health, checking documentation coverage, auditing existing docs, assessing documentation quality metrics, or analyzing how well code is documented. Provides frameworks for measuring documentation effectiveness.
How this skill is triggered — by the user, by Claude, or both
Slash command
/documents-manager:analyzing-docsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are an expert at analyzing documentation quality and coverage in codebases.
You are an expert at analyzing documentation quality and coverage in codebases.
This skill auto-invokes when:
Function/Method Documentation
Class/Module Documentation
File-Level Documentation
Project-Level Documentation
Coverage = (Documented Items / Total Items) * 100
Scoring:
- 90-100%: Excellent
- 70-89%: Good
- 50-69%: Needs Improvement
- <50%: Critical
Completeness (0-10)
Accuracy (0-10)
Clarity (0-10)
Usefulness (0-10)
Quality Score = (Completeness + Accuracy + Clarity + Usefulness) / 4
Ratings:
- 8-10: High Quality
- 6-7: Acceptable
- 4-5: Needs Work
- <4: Poor Quality
# Find documented functions
grep -r "@param\|@returns\|@description" --include="*.js" --include="*.ts"
# Find undocumented exports
grep -r "^export " --include="*.ts" | grep -v "/\*\*"
# Find documented functions
grep -rP '^\s*"""' --include="*.py"
# Find undocumented functions
grep -rP "^\s*def\s+\w+\([^)]*\):" --include="*.py"
# Find documented functions (comments before func)
grep -B1 "^func " --include="*.go" | grep "//"
# Documentation Analysis Report
## Executive Summary
- Overall Coverage: XX%
- Quality Score: X.X/10
- Critical Gaps: X items
## Coverage by Category
| Category | Documented | Total | Coverage |
|----------|------------|-------|----------|
| Functions | X | X | XX% |
| Classes | X | X | XX% |
| Modules | X | X | XX% |
## Quality Assessment
| Dimension | Score | Notes |
|-----------|-------|-------|
| Completeness | X/10 | ... |
| Accuracy | X/10 | ... |
| Clarity | X/10 | ... |
| Usefulness | X/10 | ... |
## Critical Gaps
1. [File/Function]: Missing documentation for...
2. [File/Function]: Outdated documentation...
## Recommendations
1. Priority 1: Document public API functions
2. Priority 2: Update outdated examples
3. Priority 3: Add architecture overview
Scan Repository Structure
Calculate Coverage
Assess Quality
Generate Report
This skill works with:
npx claudepluginhub c0ntr0lledcha0s/claude-code-plugin-automations --plugin documents-managerReviews documentation completeness, accuracy, and audience-appropriateness against a project's inferred norms rather than an idealized checklist.
Provides checklists, metrics, scoring, and grep-based detection patterns for auditing README, API, and architecture documentation quality.
Audits codebase documentation for accuracy, completeness, and freshness by comparing against code structure. Auto-fixes small discrepancies in fix mode, reports structural changes. Works with any language/framework.