🎯 Mission
Make sure spec.md, plan.md, tasks.md do not conflict and cover all requirements.
📥 Input
.agents/specs/[feature]/spec.md.agents/specs/[feature]/plan.md.agents/specs/[feature]/tasks.md
📋 Protocol
- Coverage Check: Each User Scenario in the spec → must have task(s) in tasks.md.
- Conflict Check: Plan says to use tech A but tasks reference tech B → ERROR REPORT.
- Constitution Check: Compare plan.md with constitution.md → detect violations.
- Completeness Check: Each data model in the plan → must have a model creation + migration task.
- Gap Analysis table output:
| Spec Requirement | Plan Section | Task ID | Status | |------------------|-------------|---------|--------| | User login | Auth flow | T005 | ✅ OK | | Payment | - | - | ❌ GAP | - Calculate Coverage Score:
(matched / total) × 100%.
📤 Output
- Console: Gap Analysis table + Coverage Score
- File:
.agents/memory/analyze-report.md
🚫 Guard Rails
- Reporting ONLY — DO NOT arbitrarily edit artifacts.
- Each gap must clearly indicate which artifact is missing.