| name | review-docs |
| description | Documentation accuracy review skill. Compares .sdd/docs/ content against implementation for accuracy, completeness, and staleness. |
| argument-hint | Invoked by Review Coordinator - do not call directly |
review-docs - Documentation Accuracy Review Skill
This skill is invoked by the Review Coordinator as a subagent. It compares documentation files in .sdd/docs/ against the actual implementation to detect inaccuracies, stale content, and missing documentation.
Input contract (received via subagent prompt):
- Read this SKILL.md file for review instructions.
- Read the specification file for documentation requirements.
- Read the WP file to identify what was implemented.
- Read all
.sdd/docs/ files and compare against the actual codebase. Use #tool:search/searchSubagent to discover implementation files for cross-referencing documentation accuracy.
- Evaluate each checklist item below.
- Write structured findings to the specified output path.
- Return a brief summary (counts of PASS/WARN/FAIL/N/A).
Constraint: Do NOT modify any documentation files, source code, the WP file, or the spec file. Only write to the specified output path (FR-028).
Documentation Checklist
The project maintains 7 standard documentation files under .sdd/docs/. For each file, compare the documented content against the actual implementation.
Category 1: Architecture Docs (FR-046.1)
Category 2: API Reference (FR-046.2)
Category 3: Configuration Guide (FR-046.3)
Category 4: Data Model Docs (FR-046.4)
Data model documentation may appear in spec contract artifacts, inline code docs, or within architecture.md. There is no standalone data-model doc file.
Category 5: User Guide (FR-046.5)
Category 6: Developer Guide (FR-046.6)
Category 7: Deployment Guide (FR-046.7)
Category 8: Staleness (FR-046.8)
Category 9: Changelog (FR-046.9)
Category 10: Completeness (FR-046.10)
Severity Guidance (FR-047)
FAIL - Must fix before approval
- Missing or empty required documentation files
- Inaccurate content: documented behavior contradicts actual implementation
- Stale content that references removed features as if they still exist
WARN - Should address, does not block approval
- Minor omissions: a parameter missing from an otherwise accurate API doc
- Slightly outdated examples that still convey correct concepts
- Documentation exists but could be more detailed
N/A - Not applicable
Use N/A with justification when a category does not apply. Example justifications:
- "No API endpoints in this WP" for API Reference checks
- "No environment variables introduced" for Configuration Guide checks
- "No user-facing features in this WP" for User Guide checks
Output Format
Write findings to the specified output path using the format below. Finding IDs use the DOC- prefix.
---
skill: review-docs
wp: <WP-ID>
spec: <spec-path>
reviewed_at: <ISO-8601-timestamp>
status: completed
finding_counts:
pass: <count>
warn: <count>
fail: <count>
na: <count>
files_reviewed:
- .sdd/docs/architecture.md
- .sdd/docs/api-reference.md
- .sdd/docs/configuration-guide.md
- .sdd/docs/deployment-guide.md
- .sdd/docs/user-guide.md
- .sdd/docs/developer-guide.md
- .sdd/docs/CHANGELOG.md
---
# review-docs Findings for <WP-ID>
## Summary
<Brief overview: doc files checked, accuracy assessment, staleness findings.>
## Findings
### DOC-001 [FAIL]
- **Checklist item**: API Reference - Endpoint mismatch
- **Requirement**: FR-046 category 2
- **File**: .sdd/docs/api-reference.md#L45
- **Description**: API reference documents GET /users/:id but implementation uses GET /api/v1/users/:id.
- **Expected**: API reference path should match actual route definition.
- **Evidence**: Route defined in src/routes/users.js#L12 as `/api/v1/users/:id`.
### DOC-002 [WARN]
- **Checklist item**: Configuration Guide - Missing parameter
- **Requirement**: FR-046 category 3
- **File**: .sdd/docs/configuration-guide.md
- **Description**: Environment variable LOG_FORMAT is used in code but not documented.
- **Expected**: All env vars should be listed with type, default, and description.
- **Evidence**: `os.getenv("LOG_FORMAT", "json")` found in src/config.py#L18.
### DOC-003 [N/A]
- **Checklist item**: Deployment Guide - Prerequisites
- **Justification**: No deployment changes in this WP. Deployment guide remains accurate.
Quality Checklist
Before completing, verify: