code-quality-plugin/skills/code-docs-quality/SKILL.md
Analyze docs quality across PRDs, ADRs, PRPs, CLAUDE.md, .claude/rules/. Use when auditing documentation, checking for stale ADRs/PRDs, or validating rule frontmatter structure.
npx skillsauth add laurigates/claude-plugins code-docs-qualityInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Analyze and validate documentation quality for a codebase, ensuring PRDs, ADRs, PRPs, CLAUDE.md, and .claude/rules/ are up to standards and current.
| Use this skill when... | Use something else instead when... |
|------------------------|------------------------------------|
| Auditing PRD/ADR/PRP/CLAUDE.md/rules for staleness, frontmatter, structure | Reviewing source code quality and architecture → code-review |
| Scoring whether CLAUDE.md still matches recent code changes | Detecting unused/dead code in source → code-dead-code |
| Validating .claude/rules/ markdown structure and metadata | Refactoring source modules → code-refactor |
| Cataloging missing or orphaned ADRs / PRDs | Auditing dependencies and licensing → code-dep-audit |
$1 (defaults to current directory if not specified)find . -path '*/.claude/blueprints' -maxdepth 2 -type dfind . -maxdepth 1 -name 'CLAUDE.md' -type ffind . -path '*/.claude/rules/*' -maxdepth 3 -name '*.md'find . -path '*/docs/adr/*' -maxdepth 3 -name '*.md'find . -path '*/docs/adrs/*' -maxdepth 3 -name '*.md'find . -path '*/docs/prds/*' -maxdepth 3 -name '*.md'find . -path '*/.claude/blueprints/prds/*' -maxdepth 4 -name '*.md'find . -path '*/docs/prps/*' -maxdepth 3 -name '*.md'find . -path '*/.claude/blueprints/prps/*' -maxdepth 4 -name '*.md'$1: Path to analyze (defaults to current directory)Perform a comprehensive documentation quality analysis using the following methodology:
Create a structured todo list for tracking the analysis:
- Analyze CLAUDE.md structure and quality
- Check .claude/rules/ directory and standards
- Validate ADRs (Architecture Decision Records)
- Validate PRDs (Product Requirements Documents)
- Validate PRPs (Product Requirement Prompts)
- Check documentation freshness and git history
- Generate quality report with recommendations
CLAUDE.md exists at project root---
created: YYYY-MM-DD
modified: YYYY-MM-DD
reviewed: YYYY-MM-DD
---
Completeness: Does it provide clear project context?
Clarity: Is it well-organized and readable?
Accuracy: Check for outdated information
Check against CLAUDE.md standards:
.claude/rules/ directory existsFor each rule file in .claude/rules/:
Required Frontmatter:
---
created: YYYY-MM-DD
modified: YYYY-MM-DD
reviewed: YYYY-MM-DD
name: docs-quality-check
---
Content Standards:
docs/adrs/ or docs/adr/ existsFor each ADR, verify:
Naming Convention:
NNNN-kebab-case-title.md (e.g., 0001-plugin-architecture.md)Required Sections (MADR format):
# ADR-NNNN: Title
**Date**: YYYY-MM
**Status**: Accepted | Superseded | Deprecated
**Deciders**: [who made the decision]
## Context
[The issue motivating this decision]
## Decision
[The change being proposed or made]
## Consequences
[What becomes easier or harder]
docs/prds/ or .claude/blueprints/prds/ existsFor each PRD, verify:
Frontmatter (if using Blueprint methodology):
---
created: YYYY-MM-DD
modified: YYYY-MM-DD
reviewed: YYYY-MM-DD
status: Draft | Active | Implemented | Archived
name: docs-quality-check
---
Required Sections:
docs/prps/ exists (Blueprint methodology)For each PRP, verify:
Required Sections:
For all documentation:
modified frontmatter dates with git historyUse git to check activity:
# Check recent commits affecting docs
git log --since="6 months ago" --oneline -- docs/ .claude/ CLAUDE.md 2>/dev/null || echo "Not a git repo or no history"
# Check when documentation was last touched
git log -1 --format="%ai %s" -- CLAUDE.md 2>/dev/null || echo "No git history"
Generate a summary table:
## Documentation Inventory
| Document Type | Status | Count | Issues |
|---------------|--------|-------|--------|
| CLAUDE.md | ✅/❌ | 1 | [list issues] |
| .claude/rules/ | ✅/❌ | N files | [list issues] |
| ADRs | ✅/❌ | N files | [list issues] |
| PRDs | ✅/❌ | N files | [list issues] |
| PRPs | ✅/❌ | N files | [list issues] |
Calculate an overall quality score:
| Category | Score (0-10) | Notes | |----------|--------------|-------| | Structure | X | File organization, naming | | Completeness | X | Required sections present | | Freshness | X | Recent updates, git sync | | Standards Compliance | X | Frontmatter, format | | Content Quality | X | Clarity, specificity | | Overall | X | Average score |
Rating Guide:
Categorize findings:
Critical Issues (must fix):
Warnings (should fix):
Suggestions (nice to have):
For each issue, provide specific guidance:
## Recommendations
### Immediate Actions
1. [ ] Fix [specific issue] in [file]
- **Why**: [reason]
- **How**: [specific steps]
- **Command**: [if applicable]
2. [ ] Update [document]
- **Why**: [reason]
- **How**: [specific steps]
### Maintenance Tasks
1. [ ] Review and update stale documents:
- [file1] - last modified [date]
- [file2] - last modified [date]
2. [ ] Improve documentation coverage:
- [ ] Document [undocumented decision]
- [ ] Create ADR for [architectural choice]
### Best Practices
- Run `/code:docs-quality` monthly
- Update `modified` dates when editing docs
- Review `reviewed` dates quarterly
- Use `/blueprint:adr` for new architecture decisions
- Use `/blueprint:prd` for new features
Show a clear, concise summary:
📊 Documentation Quality Report
═══════════════════════════════
Overall Score: X/10 ([Excellent/Good/Fair/Poor/Critical])
✅ Strengths:
- [strength 1]
- [strength 2]
⚠️ Issues Found:
- [issue 1]
- [issue 2]
📋 Recommendations:
- [top recommendation 1]
- [top recommendation 2]
See full report below for details.
Present the complete analysis with:
Help the user understand next steps:
/blueprint:init/blueprint:adr/blueprint:prd/configure:docsUse clear markdown formatting:
Remember: The goal is to help users maintain high-quality, current documentation that serves both human developers and AI assistants effectively.
development
Debug HTTP APIs: trace requests, inspect headers. Use when a request fails: check status first.
documentation
Render architecture diagrams from text sources. Use when documenting system topology.
tools
Inspect JSON payloads and extract nested fields. Use when parsing API responses.
tools
--- name: no-description allowed-tools: Read --- # No Description This skill has no description and must be dropped with a warning.