From spec-forge
Audit existing project documentation for quality, completeness, consistency, and code alignment. Scans docs against the actual codebase to find stale references, missing coverage, internal contradictions, and quality issues. Generates a structured findings report with severity levels and actionable fix recommendations. Works on any project with a docs/ directory.
How this skill is triggered — by the user, by Claude, or both
Slash command
/spec-forge:auditThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Systematically review existing project documentation for quality, completeness, consistency with code, and internal coherence. Produce a prioritized findings report.
Systematically review existing project documentation for quality, completeness, consistency with code, and internal coherence. Produce a prioritized findings report.
| Severity | Meaning | Example |
|---|---|---|
| Critical | Documentation is wrong or dangerously misleading | API doc shows deleted endpoint, security guide has incorrect auth flow |
| Major | Significant gap or inconsistency that causes confusion | Feature doc missing for a core module, conflicting architecture descriptions |
| Minor | Quality issue that degrades usefulness but isn't blocking | Typos in API params, outdated version numbers, missing examples |
| Info | Observation or improvement suggestion | Better organization possible, diagram would help clarity |
Parse the arguments to determine what to audit:
/spec-forge:audit ../../other-project), use that as the project rootdocs/, README.md, or markdown files)If no documentation found, inform the user and stop.
Use AskUserQuestion to ask:
Scan the documentation landscape and build a complete inventory.
api — API reference documentationarchitecture — Architecture, design, system overviewfeature — Feature specifications or descriptionsguide — How-to guides, tutorials, getting startedspec — Protocol specs, conformance, standardsdecision — ADRs, decision recordsreference — Data models, type mappings, glossariesmeta — READMEs, indexes, navigation docsother — Doesn't fit above categoriesDisplay the inventory:
Document Inventory: {project-name}
Path: {project-root}
Total documents: {N}
Category | Count | Files
api | 4 | api/README.md, api/executor-api.md, ...
feature | 8 | features/acl-system.md, ...
guide | 7 | guides/creating-modules.md, ...
...
Skip this step if the user opted out in Step 1 (e.g., docs-only repo).
Cross-reference documentation against the actual codebase:
Report findings:
Report findings:
Check documents against each other for contradictions and coherence:
Evaluate each document (or document category) on quality dimensions:
| Dimension | What to Check |
|---|---|
| Completeness | Missing sections, TBD/TODO markers, placeholder text, empty sections |
| Accuracy | Incorrect information (detected via code alignment or internal contradictions) |
| Clarity | Ambiguous language, undefined terms, unclear instructions |
| Specificity | Vague descriptions vs. concrete details (e.g., "fast" vs. "< 100ms p99") |
| Actionability | Can a developer act on this doc without guessing? Are examples provided? |
| Currency | Signs of staleness — old dates, deprecated references, outdated patterns |
| Navigation | Can readers find what they need? Cross-references, indexes, logical organization |
Write the findings report to {project-docs-path}/audit-report.md (or a user-specified path).
Report format:
# Documentation Audit Report
> Project: {project-name}
> Audited: {date}
> Scope: {full / api-only / feature-only / etc.}
> Documents reviewed: {N}
> Code alignment: {Yes / Skipped}
## Executive Summary
{2-3 paragraph overview: overall documentation health, biggest strengths, most critical gaps}
## Findings Summary
| Severity | Count | Categories |
|----------|-------|------------|
| Critical | {n} | {which areas} |
| Major | {n} | {which areas} |
| Minor | {n} | {which areas} |
| Info | {n} | {which areas} |
## Document Health Matrix
| Document | Completeness | Accuracy | Clarity | Currency | Overall |
|----------|-------------|----------|---------|----------|---------|
| {path} | {A/B/C/D} | {A/B/C/D}| {A/B/C/D}| {A/B/C/D}| {A/B/C/D} |
(A = Excellent, B = Good, C = Needs Work, D = Poor)
## Critical Findings
### CRIT-001: {Finding title}
- **Location**: {file path, section/line}
- **Issue**: {What is wrong}
- **Evidence**: {How you know — code reference, conflicting doc, etc.}
- **Impact**: {Why this matters}
- **Fix**: {Concrete recommendation}
### CRIT-002: ...
## Major Findings
### MAJ-001: {Finding title}
...
## Minor Findings
### MIN-001: {Finding title}
...
## Observations & Suggestions
### INFO-001: {Suggestion title}
...
## Coverage Map
{Mermaid diagram showing documentation coverage — which areas are well-documented vs. gaps}
## Recommended Priority Actions
1. **{Action}** — fixes CRIT-001, CRIT-002 — {estimated effort: small/medium/large}
2. **{Action}** — fixes MAJ-001 through MAJ-003 — {effort}
3. ...
Display a summary to the user:
Audit complete: {project-name}
Documents reviewed: {N}
Findings: {critical} critical, {major} major, {minor} minor, {info} info
Report: {path-to-audit-report.md}
Top 3 priority actions:
1. {action} — {severity} — {effort}
2. {action} — {severity} — {effort}
3. {action} — {severity} — {effort}
Use AskUserQuestion to ask:
If the user wants fixes, proceed to Step 8.
For each finding the user wants fixed:
Rules for fixes:
Update the audit report to mark resolved findings:
### CRIT-001: {Finding title} [RESOLVED]
audit-report.md exists, note which findings are new vs. recurringnpx claudepluginhub tercel/tercel-claude-plugins --plugin spec-forgeProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.