acc-documentation-qa-knowledge
1
总安装量
1
周安装量
#46669
全站排名
安装命令
npx skills add https://github.com/dykyi-roman/awesome-claude-code --skill acc-documentation-qa-knowledge
Agent 安装分布
opencode
1
claude-code
1
Skill 文档
Documentation QA Knowledge Base
Quick reference for documentation quality assessment and audit criteria.
Quality Dimensions
Core Quality Metrics
| Dimension | Description | Weight |
|---|---|---|
| Completeness | All APIs/features documented | 25% |
| Accuracy | Code matches documentation | 25% |
| Clarity | Understandable, no jargon | 20% |
| Consistency | Terms, style, format uniform | 15% |
| Navigation | Easy to find information | 10% |
| Freshness | Up-to-date with latest version | 5% |
Quality Scoring
Score = (Completeness à 0.25) + (Accuracy à 0.25) + (Clarity à 0.20)
+ (Consistency à 0.15) + (Navigation à 0.10) + (Freshness à 0.05)
Rating:
90-100: Excellent
75-89: Good
60-74: Adequate
40-59: Poor
0-39: Critical
Audit Checklists
README Checklist
| Item | Required | Score |
|---|---|---|
| Project name and description | â | /10 |
| Installation instructions | â | /15 |
| Basic usage example | â | /15 |
| Requirements/dependencies | â | /10 |
| License | â | /5 |
| Badges (build, coverage, version) | ⪠| /5 |
| Contributing link | ⪠| /5 |
| Documentation links | ⪠| /10 |
| Changelog link | ⪠| /5 |
| Examples work (copy-paste test) | â | /20 |
Total: /100
API Documentation Checklist
| Item | Required | Score |
|---|---|---|
| All public classes documented | â | /15 |
| All public methods documented | â | /15 |
| Parameters with types and descriptions | â | /15 |
| Return types documented | â | /10 |
| Exceptions documented | â | /10 |
| Usage examples per endpoint | â | /15 |
| Request/response examples | ⪠| /10 |
| Error responses documented | ⪠| /10 |
Total: /100
Architecture Documentation Checklist
| Item | Required | Score |
|---|---|---|
| System overview | â | /15 |
| Component descriptions | â | /15 |
| Data flow diagrams | â | /15 |
| Technology stack | â | /10 |
| Decision records (ADRs) | ⪠| /15 |
| Diagrams render correctly | â | /10 |
| Consistent terminology | â | /10 |
| Cross-references work | ⪠| /10 |
Total: /100
Detection Patterns
Completeness Detection
# Find undocumented public classes
Grep: "^class |^final class |^abstract class " --glob "src/**/*.php"
# Compare with: Grep: "## " --glob "docs/api/**/*.md"
# Find undocumented public methods
Grep: "public function " --glob "src/**/*.php" | wc -l
# Compare with documented count
# Check README sections
Grep: "## Installation|## Usage|## Features" --glob "README.md"
Accuracy Detection
# Find version mismatches
Grep: "version.*[0-9]+\.[0-9]+" --glob "README.md"
# Compare with: Grep: '"version"' --glob "composer.json"
# Find non-existent paths in docs
Grep: "src/[A-Za-z/]+" --glob "docs/**/*.md"
# Verify each path exists
# Find outdated code examples
# Extract code blocks and verify they match current API
Clarity Detection
# Find undefined acronyms
Grep: "\b[A-Z]{2,}\b" --glob "docs/**/*.md"
# Check for glossary/definition nearby
# Find jargon without explanation
# Manual review of: DDD, CQRS, VO, DTO first usage
# Find walls of text (paragraphs > 5 lines)
# Manual review recommended
Navigation Detection
# Find broken internal links
Grep: "\]\((?!http)[^\)]+\)" --glob "**/*.md"
# Verify each relative path exists
# Find missing TOC in long docs (> 100 lines)
wc -l docs/**/*.md | awk '$1 > 100 {print $2}'
# Check for: Grep: "## Table of Contents|## Contents" in each
# Find orphan pages (not linked from anywhere)
# Cross-reference all .md files
Diagram Quality Detection
# Find diagrams with too many elements
Grep: "^\s*[A-Za-z].*\[|^\s*[A-Za-z].*\(" --glob "**/*.md" -A 50
# Count nodes in each mermaid block
# Find diagrams without labels
Grep: "A-->B|1-->2" --glob "**/*.md"
# Should have descriptive IDs
# Find non-rendering mermaid
# Test each ```mermaid block
Issue Severity Levels
Critical (Must Fix)
â Missing installation instructions
â Broken copy-paste examples
â Wrong/outdated code syntax
â Missing license
â Dead links to key resources
â Security-sensitive info in examples
Warning (Should Fix)
â ï¸ Missing API documentation
â ï¸ No usage examples
â ï¸ Outdated screenshots
â ï¸ Inconsistent terminology
â ï¸ Missing error handling docs
â ï¸ Diagrams don't match code
Info (Nice to Have)
â¹ï¸ No badges
â¹ï¸ Missing contributing guide
â¹ï¸ No FAQ section
â¹ï¸ Basic diagrams could be improved
â¹ï¸ Could add more examples
Audit Report Template
# Documentation Audit Report
**Project:** {name}
**Date:** {date}
**Auditor:** Claude Code
## Summary
| Metric | Score | Status |
|--------|-------|--------|
| Overall | X/100 | â ï¸ |
| Completeness | X/100 | â
|
| Accuracy | X/100 | â |
| Clarity | X/100 | â
|
| Consistency | X/100 | â ï¸ |
| Navigation | X/100 | â
|
## Critical Issues
### 1. {Issue Title}
- **Location:** {file:line}
- **Problem:** {description}
- **Impact:** {who is affected}
- **Fix:** {recommendation}
## Warnings
### 1. {Issue Title}
- **Location:** {file}
- **Problem:** {description}
- **Recommendation:** {fix}
## Recommendations
1. {Priority action 1}
2. {Priority action 2}
3. {Priority action 3}
## Detailed Findings
### README.md
- [ ] {item}: {status}
### API Documentation
- [ ] {item}: {status}
### Architecture Documentation
- [ ] {item}: {status}
## Next Steps
1. Fix critical issues immediately
2. Address warnings in next sprint
3. Consider recommendations for roadmap
Quality Improvement Guide
Quick Wins
| Action | Impact | Effort |
|---|---|---|
| Fix broken links | High | Low |
| Add missing badges | Medium | Low |
| Add code examples | High | Medium |
| Create README template | High | Medium |
| Add link checker CI | Medium | Low |
Long-term Improvements
| Action | Impact | Effort |
|---|---|---|
| Generate API docs from code | High | High |
| Implement doc-as-code | High | High |
| Create style guide | Medium | Medium |
| Add example testing | High | Medium |
| Diagram automation | Medium | High |
Automation Opportunities
CI/CD Integration
# Example doc validation workflow
documentation:
checks:
- markdown-lint
- link-check
- spelling
- code-example-test
- mermaid-validate
Tools
| Tool | Purpose |
|---|---|
| markdownlint | Markdown style |
| markdown-link-check | Broken links |
| alex | Inclusive language |
| mermaid-cli | Diagram validation |
| doctoc | TOC generation |
References
For detailed information, load these reference files:
references/audit-procedures.mdâ Step-by-step audit processreferences/scoring-rubrics.mdâ Detailed scoring criteriareferences/common-issues.mdâ Frequent documentation problemsreferences/automation.mdâ CI/CD integration patterns