Automated analyze-fix-reanalyze loop for Spec Kit projects. Runs /speckit.analyze, reads findings, applies fixes, and re-analyzes until all issues are resolved — no manual intervention required between iterations.
Addresses github/spec-kit#2011.
- Automated loop: Analyze → fix → re-analyze until clean
- Severity-based prioritization: Critical findings fixed first, then warnings
- Safety limits: Maximum 5 iterations to prevent infinite loops
- Spec-safe: Never modifies spec artifacts — only fixes implementation code
- Deferred findings: Ambiguous issues logged for human follow-up
- Full audit log: Every iteration, fix, and deferral recorded in
findings.fixed.md
# Install from catalog
specify extension add fix-findings
# Or install from GitHub archive
specify extension add fix-findings --from \
https://github.com/Quratulain-bilal/spec-kit-fix-findings/archive/refs/tags/v1.0.0.zip# Run the fix-findings loop
/speckit.fix-findings.run
# Or use the alias
/speckit.fix-findings
# With constraints
/speckit.fix-findings.run only fix critical issuesBefore running, ensure you have completed:
/speckit.specify— spec.md exists/speckit.plan— plan.md exists/speckit.tasks— tasks.md exists- Implementation is complete or in progress
| File | Description |
|---|---|
specs/{branch}/analysis.md |
Latest analysis results (updated each iteration) |
specs/{branch}/findings.fixed.md |
Complete log of all iterations and fixes |
Fix Findings Complete
====================
Iterations: 3
Resolved: 12 findings
Deferred: 2 findings
Status: DEFERRED_REMAINING
Log saved to: specs/001-my-feature/findings.fixed.md
- Initial analysis: Runs
/speckit.analyzeifanalysis.mddoesn't exist - Parse findings: Extracts issues categorized as Critical, Warning, or Info
- Apply fixes: Addresses each actionable finding (Critical first)
- Re-analyze: Generates fresh analysis to verify fixes
- Loop: Repeats until clean, no new fixes possible, or 5 iterations reached
- Log: Saves complete audit trail to
findings.fixed.md
- All fixes must align with
spec.mdandplan.md - Spec artifacts are never modified
- Ambiguous findings are deferred for human decision
- Maximum 5 iterations (safety limit)
MIT License — see LICENSE