Review code against spec compliance - checks implementation matches spec requirements, identifies deviations, reports compliance score, triggers evolution if needed
View on GitHubsdd/skills/review-code/SKILL.md
February 1, 2026
Select agents to install to:
npx add-skill https://github.com/rhuss/cc-superpowers-sdd/blob/main/sdd/skills/review-code/SKILL.md -a claude-code --skill review-codeInstallation paths:
.claude/skills/review-code/# Code Review Against Specification ## Overview Review code implementation against specification to ensure compliance. **Key Difference from Standard Code Review:** - Primary focus: **Does code match spec?** - Secondary focus: Code quality, patterns, best practices - Output: **Compliance score** + deviation list - Triggers: **Spec evolution** if mismatches found ## When to Use - After implementation complete (called by `sdd:implement`) - Before merging/deploying code - When validating existing code against spec - As part of verification workflow ## The Process ### 1. Load Spec and Code **Read specification:** ```bash cat specs/features/[feature-name].md ``` **Identify implementation files:** ```bash # From implementation plan or code exploration ls -la [implementation-files] ``` ### 2. Review Functional Requirements **For each functional requirement in spec:** 1. **Find implementation** in code 2. **Compare behavior**: Does code do what spec says? 3. **Check completeness**: All aspects implemented? 4. **Note deviations**: Any differences? **Create compliance matrix:** ``` Requirement 1: [Spec text] Implementation: [file:line] Status: ✓ Compliant | ✗ Deviation | ? Missing Notes: [If deviation, explain] Requirement 2: [Spec text] ... ``` ### 3. Review Error Handling **For each error case in spec:** 1. **Find error handling** in code 2. **Check error response**: Matches spec? 3. **Verify error codes**: Correct HTTP status / error codes? 4. **Test error messages**: Clear and helpful? **Error handling compliance:** ``` Error Case 1: [From spec] Implemented: Yes/No Location: [file:line] Response: [What code returns] Spec Expected: [What spec says] Status: ✓ / ✗ ``` ### 4. Review Edge Cases **For each edge case in spec:** 1. **Find handling** in code 2. **Check behavior**: Matches spec? 3. **Verify tests**: Edge case tested? ### 5. Check for Extra Features **Identify code features NOT in spec:** - Functions/endpoints not mentioned