Code docs quality

From laurigates/claude-plugins · View interactive version

Code docs quality is an AI agent skill from the GitHub repository laurigates/claude-plugins. 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.

How to use this skill

Skill file

Analyze and validate documentation quality for a codebase, ensuring PRDs, ADRs, PRPs, CLAUDE.md, and .claude/rules/ are up to standards and current.

When to Use This Skill

| 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 |

Context

Parameters

Your Task

Perform a comprehensive documentation quality analysis using the following methodology:

Phase 1: Plan the analysis

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

Phase 2: CLAUDE.md Analysis

2.1 Check Existence and Structure

```yaml


created: YYYY-MM-DD

modified: YYYY-MM-DD

reviewed: YYYY-MM-DD


```

2.2 Content Quality Checks

2.3 Best Practices

Check against CLAUDE.md standards:

Phase 3: .claude/rules/ Analysis

3.1 Directory Structure

3.2 Individual Rule Validation

For each rule file in .claude/rules/:

Required Frontmatter:

---
created: YYYY-MM-DD
modified: YYYY-MM-DD
reviewed: YYYY-MM-DD
---

Content Standards:

3.3 Rules Organization

Phase 4: ADR Validation

4.1 Check ADR Directory

4.2 ADR Structure Validation

For each ADR, verify naming and the required MADR sections against

references/doc-standards.md.

4.3 ADR Quality Checks

4.4 Coverage Analysis

Phase 5: PRD Validation

5.1 Check PRD Directory

5.2 PRD Structure Validation

For each PRD, verify frontmatter and required sections against

references/doc-standards.md.

5.3 PRD Quality Checks

Phase 6: PRP Validation

6.1 Check PRP Directory

6.2 PRP Structure Validation

For each PRP, verify the required sections against

references/doc-standards.md.

6.3 PRP Quality Checks

Phase 7: Freshness Analysis

7.1 Check Last Modified Dates

For all documentation:

Use 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"

7.2 Cross-Reference with Code Changes

Phase 8: Generate Quality Report

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.

Phase 9: Present Results

9.1 Executive Summary

Show a clear, concise summary using the executive-summary template in

references/report-templates.md.

9.2 Full Report

Present the complete analysis with:

9.3 Guidance for Improvement

Help the user understand next steps:

Best Practices

For the Analysis

For Documentation Standards

The general standards to recommend (frontmatter dates, templates, maintenance

cadence) are in references/doc-standards.md.

Error Handling

Output Format

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.