원클릭으로
documentation-qa-knowledge
Documentation QA knowledge base. Provides quality checklists, audit criteria, and metrics for documentation review.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Documentation QA knowledge base. Provides quality checklists, audit criteria, and metrics for documentation review.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Access Control knowledge base. Provides ACL, RBAC, ABAC, ReBAC models, multi-tenancy patterns, and PHP implementations (Symfony Voters, Laravel Gates) for security audits and generation.
API Design knowledge base. Provides REST constraints, Richardson Maturity Model, HTTP semantics, content negotiation, and GraphQL/gRPC comparison for API audits and generation.
Caching Strategies knowledge base. Provides caching patterns (Cache-Aside, Read-Through, Write-Through, Write-Behind), invalidation approaches, multi-level caching, and Redis data structures for caching audits and generation.
Analyzes PHP code for 12-Factor App compliance. Detects hardcoded configuration, file-based state, env-specific conditionals, non-streaming logs, and missing environment variable usage.
Analyzes PHP code for access control issues. Detects inline role checks, hardcoded permissions, mixed ACL/RBAC models, missing Voter/Policy pattern, and authorization logic in controllers.
Analyzes PHP code for database scaling issues. Detects single DB connection for all queries, missing read replica configuration, SELECT queries hitting master, and missing connection pooling.
| name | documentation-qa-knowledge |
| description | Documentation QA knowledge base. Provides quality checklists, audit criteria, and metrics for documentation review. |
Quick reference for documentation quality assessment and audit criteria.
| 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% |
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
| 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
| 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
| 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
# 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"
# 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
# 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
# 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
# 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
❌ Missing installation instructions
❌ Broken copy-paste examples
❌ Wrong/outdated code syntax
❌ Missing license
❌ Dead links to key resources
❌ Security-sensitive info in examples
⚠️ Missing API documentation
⚠️ No usage examples
⚠️ Outdated screenshots
⚠️ Inconsistent terminology
⚠️ Missing error handling docs
⚠️ Diagrams don't match code
ℹ️ No badges
ℹ️ Missing contributing guide
ℹ️ No FAQ section
ℹ️ Basic diagrams could be improved
ℹ️ Could add more examples
# 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
| 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 |
| 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 |
# Example doc validation workflow
documentation:
checks:
- markdown-lint
- link-check
- spelling
- code-example-test
- mermaid-validate
| Tool | Purpose |
|---|---|
| markdownlint | Markdown style |
| markdown-link-check | Broken links |
| alex | Inclusive language |
| mermaid-cli | Diagram validation |
| doctoc | TOC generation |
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