一键导入
review-docs
Documentation accuracy review skill. Compares .sdd/docs/ content against implementation for accuracy, completeness, and staleness.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Documentation accuracy review skill. Compares .sdd/docs/ content against implementation for accuracy, completeness, and staleness.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Architecture adherence review skill. Evaluates component design, tech stack compliance, directory structure, SOLID principles, dependency direction, and scope discipline.
Dependency review skill. Checks for known CVEs, abandoned packages, unnecessary dependencies, license compatibility, version pinning, and supply chain integrity.
Performance review skill. Detects N+1 queries, missing indexes, blocking in async contexts, unbounded data fetching, unnecessary computation, inefficient data structures, and missing caching opportunities.
Code quality review skill. Evaluates readability, complexity, naming, comments, error handling, style consistency, dead code, and duplication.
Security review skill. Audits implementation against all 14 OWASP Secure Coding Practices categories. Cross-references spec security requirements. Uses web research to verify unfamiliar patterns.
Spec adherence review skill. Evaluates implementation against functional requirements, success criteria, and acceptance scenarios from the specification. Verifies SHALL obligations, preconditions, postconditions, error paths, edge cases, data models, and API contracts.
| 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 |
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):
.sdd/docs/ files and compare against the actual codebase.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).
The project maintains 6 standard documentation files under .sdd/docs/. For each file, compare the documented content against the actual implementation.
.sdd/docs/architecture.md exist and contain substantive content?.sdd/docs/api-reference.md exist and contain substantive content?.sdd/docs/configuration-guide.md exist and contain substantive content?.sdd/docs/user-guide.md exist and contain substantive content?.sdd/docs/developer-guide.md exist and contain substantive content?.sdd/docs/deployment-guide.md exist and contain substantive content?.sdd/docs/?Use N/A with justification when a category does not apply. Example justifications:
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/user-guide.md
- .sdd/docs/developer-guide.md
- .sdd/docs/deployment-guide.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.