specsmd-agent
Spec-driven development - create requirements, design, and implementation tasks for features
**Command**: `/compare-specs`
$ npx -y skills add fabriqaai/specs.md --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/compare-specsContext preview
What this command does when you run it.
**Command**: `/compare-specs`
**Command**: `/compare-specs`
Compare specifications in `memory-bank/` with their corresponding implementations in `src/` to identify gaps, inconsistencies, and missing items.
---
Choose a comparison mode based on what you want to analyze:
Find what's documented in specs but missing or inconsistent in implementation.
Find what's implemented but not documented in specs.
---
Ask the user:
> **What would you like to compare?** > > 1. **Specific agent** (e.g., inception-agent, construction-agent, master-agent) > 2. **Specific feature** (e.g., bolt planning, story creation, estimation) > 3. **Full system** (compare all specs vs all implementations) > > **Direction:** > - A) Spec → Implementation (find missing implementations) > - B) Implementation → Spec (find missing documentation) > - C) Both directions
**Spec locations** (`memory-bank/`):
memory-bank/ ├── intents/ │ ├── 001-multi-agent-orchestration/ │ │ └── units/ │ │ ├── master-agent/unit-brief.md │ │ ├── inception-agent/unit-brief.md │ │ ├── construction-agent/unit-brief.md │ │ └── operations-agent/unit-brief.md │ ├── 002-agentic-coding-tool-integration/ │ └── 003-memory-bank-system/ ├── standards/ │ ├── coding-standards.md │ ├── tech-stack.md │ └── system-architecture.md ├── research/ │ └── (research documentation) ├── glossary.md └── term-mappings.md
**Implementation locations** (`src/flows/aidlc/`):
src/flows/aidlc/ ├── agents/ │ ├── master-agent.md │ ├── inception-agent.md │ ├── construction-agent.md │ └── operations-agent.md ├── commands/ ├── .specsmd/ │ ├── skills/ │ │ ├── master/ │ │ ├── inception/ │ │ └── construction/ │ ├── templates/ │ └── memory-bank.yaml
For each file pair, analyze:
| Aspect | Check | |--------|-------| | **Terminology** | Same terms used consistently? | | **Features** | All spec features implemented? | | **Naming conventions** | Match between spec and implementation? | | **Estimation guidance** | Consistent across both? | | **Dependencies** | All documented dependencies implemented? | | **Commands** | All spec commands exist in implementation? | | **Skills** | All spec skills have implementations? |
Generate a gap analysis report:
## Gap Analysis Report
### Comparison: {scope}
- Direction: {Spec → Impl | Impl → Spec | Both}
- Files analyzed: {count}
---
### Gaps Found
#### Missing in Implementation (Spec → Impl)
| Spec | Item | Status |
|------|------|--------|
| inception-agent/unit-brief.md | Global story index | Not implemented |
| ... | ... | ... |
#### Missing in Specs (Impl → Spec)
| Implementation | Item | Status |
|----------------|------|--------|
| inception-agent.md | Naming conventions section | Not documented |
| ... | ... | ... |
#### Inconsistencies
| Location | Spec Says | Implementation Says |
|----------|-----------|---------------------|
| Bolt estimation | Hours only | Uses "1-2 days" |
| ... | ... | ... |
---
### Recommended Actions
1. **High Priority** (blocking or incorrect):
- { action }
2. **Medium Priority** (missing features):
- { action }
3. **Low Priority** (documentation polish):
- { action }
---
### Update Plan
Based on chosen direction:
**If updating specs:**
1. { step }
2. { step }
**If updating implementation:**
1. { step }
2. { step }---
**User**: `/compare-specs`
**Assistant**: > What would you like to compare? > 1. Specific agent > 2. Specific feature > 3. Full system > > And in which direction? > A) Spec → Implementation > B) Implementation → Spec > C) Both
**User**: `1 - inception-agent, C - both`
**Assistant**: *Reads spec and implementation files, generates gap analysis*
---
For common comparisons, use these shortcuts:
| Shortcut | Scope | |----------|-------| | `/compare-specs agents` | All agent specs vs implementations | | `/compare-specs skills` | All skill specs vs implementations | | `/compare-specs memory-bank` | Memory bank spec vs implementation | | `/compare-specs naming` | Naming conventions consistency | | `/compare-specs estimation` | Estimation guidance consistency |
---
After analysis, provide:
1. **Summary**: X gaps found (Y in implementation, Z in specs) 2. **Gap table**: Detailed list of discrepancies 3. **Recommended plan**: Steps to resolve gaps 4. **User choice**: Ask if they want to fix specs, implementation, or both
AI-native development framework with pluggable flows for every use case. Choose the flow that matches your project needs: Ideation for creative brainstorming, Simple for quick specs, FIRE for adaptive execution, or AI-DLC for full methodology with DDD.
Spec-driven development - create requirements, design, and implementation tasks for features