/code-quality-plugin:code-docs-quality [PATH]from code-quality-plugin
Audits documentation health across PRDs, ADRs, PRPs, CLAUDE.md, and .claude/rules/. Checks for staleness, missing frontmatter, and structural issues using markdownlint and vale.
Ships in code-quality-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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:
Track the analysis against this checklist (via TodoWrite when the session
has the task tools — see .claude/rules/agentic-permissions.md § Task-tool
availability — otherwise carry it as a checklist in your response):
- 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
---
Content Standards:
docs/adrs/ or docs/adr/ existsFor each ADR, verify naming and the required MADR sections against references/doc-standards.md.
docs/prds/ or .claude/blueprints/prds/ existsFor each PRD, verify frontmatter and required sections against references/doc-standards.md.
docs/prps/ exists (Blueprint methodology)For each PRP, verify the required sections against references/doc-standards.md.
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"
Build the report in four parts — 8.1 documentation inventory table, 8.2 quality score (0-10 per category, with rating guide), 8.3 issues categorized as Critical / Warnings / Suggestions, 8.4 actionable recommendations — using the templates in references/report-templates.md.
Show a clear, concise summary using the executive-summary template in references/report-templates.md.
Present the complete analysis with:
Help the user understand next steps:
/blueprint:init/blueprint:derive-plans/blueprint:derive-plans/configure:docsThe general standards to recommend (frontmatter dates, templates, maintenance cadence) are in references/doc-standards.md.
Use clear markdown formatting:
Remember: The goal is to help users maintain high-quality, current documentation that serves both human developers and AI assistants effectively.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
doc-audit, adr-validation, prd-quality, claude-md, markdown-lint
npx claudepluginhub laurigates/claude-plugins --plugin code-quality-plugin19 skills in this plugin
/ast-grep-searchFind and replace code patterns structurally with ast-grep. Use when matching code by AST structure, finding functions with specific signatures, or detecting anti-patterns regex cannot match./bulk-sweep-classifyClassify every regex match before a bulk find-replace/syntax-modernization sweep — four match categories, scoped transform, allowlist-aware verification. Use when bulk-renaming commands/tools/paths or migrating syntax across many files./code-antipatternsAnalyze a codebase for anti-patterns using ast-grep. Use when finding magic numbers, console.logs, var usage, excessive any, eval/innerHTML security issues, or deep nesting./code-complexityAnalyze code complexity metrics (cyclomatic, cognitive, function length, coupling). Use when identifying refactoring targets, tracking codebase health, or reviewing large changes./code-context-leakageAudit a repo for names and defaults tied to one person's setup — home paths, personal channels, dated tags, OS-only commands, stale repo names. Use when preparing a project for reuse./code-dead-codeDetect dead code, unused exports, unreachable branches, and orphaned files. Use when reducing maintenance burden, cleaning up after refactors, or auditing codebase health.Other plugins' skills for the same job