Agent skill
doc-cspec-reviewer
Comprehensive content review and quality assurance for CSPEC documents - validates code specification completeness, CTR compliance, interface definitions, and identifies issues requiring manual attention
Install this agent skill to your Project
npx add-skill https://github.com/vladm3105/aidoc-flow-framework/tree/main/.claude/skills/doc-cspec-reviewer
Metadata
Additional technical details for this skill
- tags
-
sdd-workflow layer-9-artifact cspec-artifact quality-assurance
- custom fields
-
{ "layer": 9, "version": "1.0", "priority": "primary", "last_updated": "2026-03-01", "subtype_code": 50, "artifact_type": "CSPEC", "skill_category": "quality-assurance", "deliverable_type": "code", "development_status": "active", "upstream_artifacts": [ "CSPEC" ], "downstream_artifacts": [], "architecture_approaches": [ "ai-agent-based" ] }
SKILL.md
doc-cspec-reviewer
Purpose
Comprehensive content review and quality assurance for Code Specification (CSPEC) documents. This skill performs deep content analysis beyond structural validation, checking interface completeness, CTR compliance, algorithm specifications, and identifying issues that require manual review.
Layer: 9.50 (CSPEC Quality Assurance)
Upstream: CSPEC (from doc-cspec-autopilot)
Downstream: None (final QA gate before TSPEC/TASKS generation)
When to Use
Use doc-cspec-reviewer when:
- After CSPEC Generation: Run immediately after
doc-cspec-autopilotcompletes - Manual CSPEC Edits: After making manual changes to CSPEC
- Pre-TASKS Check: Before running
doc-tasks-autopilot - Pre-TSPEC Check: Before running
doc-tspec-autopilot - Periodic Review: Regular quality checks on existing CSPECs
Do NOT use when:
- CSPEC does not exist yet (use
doc-cspec-autopilotfirst) - Only structural validation needed (use
doc-cspec-validator)
Review Checklist
1. Interface Definition Review
- All public interfaces documented
- Method signatures complete (params, returns, exceptions)
- Type definitions accurate
- API contracts match CTR specifications
2. CTR Compliance Review
- CTR reference valid and accessible
- Interface implementations match CTR schema
- Error responses match CTR error definitions
- Data models align with CTR schemas
3. Algorithm Specification Review
- Core algorithms documented
- Complexity analysis provided
- Edge cases identified
- Performance considerations noted
4. Implementation Guidance Review
- Class/module structure defined
- Dependency injection patterns specified
- Configuration options documented
- Resource management specified
5. Test Mapping Review
- Unit test cases cover all methods
- Integration test cases cover interfaces
- Edge cases have test coverage
- Performance test requirements defined
6. Traceability Review
- All cumulative tags present (@brd through @ctr)
- REQ requirements mapped to implementations
- CTR contracts linked
- Test references complete
Review Report Format
# CSPEC-NN Review Report
## Summary
- **Document**: CSPEC-NN_{slug}
- **Review Date**: YYYY-MM-DD
- **CODE-Ready Score**: NN%
- **Status**: PASS/FAIL
## Findings
### Critical Issues
1. [Issue description]
- Location: [section/line]
- Impact: [description]
- Recommendation: [fix]
### Warnings
1. [Warning description]
### Recommendations
1. [Improvement suggestion]
## Metrics
| Metric | Value | Target |
|--------|-------|--------|
| Interface Coverage | NN% | 100% |
| CTR Compliance | NN% | 100% |
| Test Mapping | NN% | 90% |
Output Files
| File | Purpose |
|---|---|
CSPEC-NN.A_audit_report_vNNN.md |
Audit report with findings |
CSPEC-NN.R_review_report_vNNN.md |
Legacy review report format |
Integration with Fixer
After review, issues can be fixed automatically:
- Run
doc-cspec-reviewerto identify issues - Review generates
CSPEC-NN.A_audit_report_vNNN.md - Run
doc-cspec-fixerto apply automated fixes - Re-run reviewer to verify fixes
References
- Template:
ai_dev_ssd_flow/09_SPEC/CSPEC/CSPEC-MVP-TEMPLATE.yaml - Schema:
ai_dev_ssd_flow/09_SPEC/CSPEC/CSPEC_MVP_SCHEMA.yaml - Validation Rules:
ai_dev_ssd_flow/09_SPEC/CSPEC/CSPEC_MVP_SCHEMA.yaml
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
doc-spec-reviewer
Comprehensive content review and quality assurance for SPEC documents - validates YAML structure, REQ coverage, interface definitions, and identifies issues requiring manual attention
doc-prd-fixer
Automated fix skill that reads review reports and applies fixes to PRD documents - handles broken links, element IDs, missing files, and iterative improvement
doc-procspec-autopilot
Automated PROCSPEC (Process Specification) generation from REQ - generates specifications for SOPs, runbooks, playbooks, and operational procedures
doc-riskspec-autopilot
Automated RISKSPEC (Risk Specification) generation from REQ - generates specifications for risk matrices, impact assessments, and mitigation plans
doc-ptest-autopilot
Automated PTEST generation and review orchestration for performance category and threshold validation
doc-adr-autopilot
Automated ADR generation pipeline from BRD Architecture Decision Requirements - analyzes topics, generates Context-Decision-Consequences records
Didn't find tool you were looking for?