1.7 KiB
1.7 KiB
| description | argument-hint | allowed-tools |
|---|---|---|
| Fix issues found during code review | <feature-slug> | Bash, Read, Write, Edit, Glob, Grep, Task |
Fix review issues for feature: $ARGUMENTS
Instructions
1. Load Review Findings
Read .sdlc/features/$ARGUMENTS/review.md to get the full list of findings.
2. Parse Findings by Severity
Collect all findings into severity buckets:
- BLOCKER -- must fix, cannot ship without these
- WARNING -- should fix, quality concerns
- SUGGESTION -- nice to have improvements
3. Fix Blockers First
For each blocker:
- Read the file at the specified location
- Understand the issue and why it matters
- Apply the proper fix (not a quick patch)
- Run tests to verify the fix does not break anything:
go test ./... 2>/dev/null || true
4. Fix Warnings
After all blockers are resolved, fix warnings using the same process.
5. Address Suggestions
Apply suggestions that improve clarity or maintainability without significant risk.
6. Update Review Report
Update .sdlc/features/$ARGUMENTS/review.md with resolution notes for each finding:
- [x] [FILE:LINE] [Description] -- **RESOLVED:** [what was done]
7. Run Full Test Suite
go test ./... 2>/dev/null || true
All tests must pass after all fixes are applied.
8. Report
Summarize: findings fixed by severity, files modified, test results.
Critical Rules
- ALWAYS fix all blockers -- they are non-negotiable
- ALWAYS run tests after each fix, not just at the end
- NEVER close a finding without actually fixing it
- NEVER introduce new issues while fixing existing ones
- ALWAYS update the review report with resolution notes