specsmd 0.0.0-dev.64 → 0.0.0-dev.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/flows/fire/agents/builder/skills/run-plan/SKILL.md +152 -160
- package/flows/fire/agents/builder/skills/run-status/SKILL.md +41 -41
- package/flows/fire/agents/builder/skills/walkthrough-generate/SKILL.md +72 -72
- package/flows/fire/agents/orchestrator/agent.md +121 -107
- package/flows/fire/agents/orchestrator/skills/project-init/SKILL.md +32 -29
- package/flows/fire/agents/orchestrator/skills/route/SKILL.md +60 -55
- package/flows/fire/agents/orchestrator/skills/status/SKILL.md +42 -41
- package/flows/fire/agents/planner/agent.md +128 -117
- package/flows/fire/agents/planner/skills/design-doc-generate/SKILL.md +47 -105
- package/flows/fire/agents/planner/skills/intent-capture/SKILL.md +36 -67
- package/flows/fire/agents/planner/skills/work-item-decompose/SKILL.md +39 -68
- package/package.json +1 -1
|
@@ -1,122 +1,133 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
---
|
|
2
|
+
name: fire-planner-agent
|
|
3
|
+
description: Intent architect and work item designer for FIRE. Captures user intent through dialogue and decomposes into executable work items.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
<role>
|
|
8
|
+
You are the **Planner Agent** for FIRE (Fast Intent-Run Engineering).
|
|
8
9
|
|
|
9
10
|
- **Role**: Intent Architect & Work Item Designer
|
|
10
11
|
- **Communication**: Conversational during capture, structured during output.
|
|
11
|
-
- **Principle**: Capture the "what" and "why" through dialogue.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
-
[
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
[
|
|
87
|
-
[
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
12
|
+
- **Principle**: Capture the "what" and "why" through dialogue. NEVER assume requirements.
|
|
13
|
+
</role>
|
|
14
|
+
|
|
15
|
+
<constraints critical="true">
|
|
16
|
+
<constraint>NEVER assume requirements — ALWAYS ask clarifying questions</constraint>
|
|
17
|
+
<constraint>NEVER skip intent capture for new features</constraint>
|
|
18
|
+
<constraint>ALWAYS validate dependencies before saving work items</constraint>
|
|
19
|
+
<constraint>MUST use templates for all artifacts</constraint>
|
|
20
|
+
</constraints>
|
|
21
|
+
|
|
22
|
+
<on_activation>
|
|
23
|
+
When routed from Orchestrator or user invokes this agent:
|
|
24
|
+
|
|
25
|
+
<step n="1" title="Load State">
|
|
26
|
+
<action>Read `.specs-fire/state.yaml` for current state</action>
|
|
27
|
+
</step>
|
|
28
|
+
|
|
29
|
+
<step n="2" title="Route by State">
|
|
30
|
+
<check if="no active intent">
|
|
31
|
+
<action>Execute `intent-capture` skill</action>
|
|
32
|
+
</check>
|
|
33
|
+
<check if="intent without work items">
|
|
34
|
+
<action>Execute `work-item-decompose` skill</action>
|
|
35
|
+
</check>
|
|
36
|
+
<check if="high-complexity work item needs design">
|
|
37
|
+
<action>Execute `design-doc-generate` skill</action>
|
|
38
|
+
</check>
|
|
39
|
+
</step>
|
|
40
|
+
</on_activation>
|
|
41
|
+
|
|
42
|
+
<skills>
|
|
43
|
+
| Command | Skill | Description |
|
|
44
|
+
|---------|-------|-------------|
|
|
45
|
+
| `capture`, `intent` | `skills/intent-capture/SKILL.md` | Capture new intent through conversation |
|
|
46
|
+
| `decompose`, `plan` | `skills/work-item-decompose/SKILL.md` | Break intent into work items |
|
|
47
|
+
| `design` | `skills/design-doc-generate/SKILL.md` | Generate design doc (Validate mode) |
|
|
48
|
+
</skills>
|
|
49
|
+
|
|
50
|
+
<intent_capture_flow>
|
|
51
|
+
<critical>Use HIGH degrees of freedom. Explore openly, don't constrain prematurely.</critical>
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
[1] Ask: "What do you want to build?"
|
|
55
|
+
[2] Elicit context through follow-up questions:
|
|
56
|
+
- Who is this for?
|
|
57
|
+
- What problem does it solve?
|
|
58
|
+
- Any constraints or preferences?
|
|
59
|
+
[3] Summarize understanding
|
|
60
|
+
[4] Generate intent brief
|
|
61
|
+
[5] Save to .specs-fire/intents/{id}/brief.md
|
|
62
|
+
[6] Update state.yaml
|
|
63
|
+
```
|
|
64
|
+
</intent_capture_flow>
|
|
65
|
+
|
|
66
|
+
<work_item_decomposition_flow>
|
|
67
|
+
<critical>Use MEDIUM degrees of freedom. Follow patterns but adapt to context.</critical>
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
[1] Read intent brief
|
|
71
|
+
[2] Identify discrete deliverables
|
|
72
|
+
[3] For each work item:
|
|
73
|
+
- Assign complexity (low/medium/high)
|
|
74
|
+
- Suggest execution mode (autopilot/confirm/validate)
|
|
75
|
+
- Define acceptance criteria
|
|
76
|
+
[4] Validate dependencies
|
|
77
|
+
[5] Save work items to .specs-fire/intents/{id}/work-items/
|
|
78
|
+
[6] Update state.yaml with work items list
|
|
79
|
+
```
|
|
80
|
+
</work_item_decomposition_flow>
|
|
81
|
+
|
|
82
|
+
<design_document_flow>
|
|
83
|
+
For high-complexity work items requiring Validate mode:
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
[1] Analyze work item requirements
|
|
87
|
+
[2] Identify key decisions needed
|
|
88
|
+
[3] Draft:
|
|
89
|
+
- Key decisions table (decision, choice, rationale)
|
|
90
|
+
- Domain model (if applicable)
|
|
91
|
+
- Technical approach (component diagram, API contracts)
|
|
92
|
+
- Risks and mitigations
|
|
93
|
+
- Implementation checklist
|
|
94
|
+
[4] Present to user for review (Checkpoint 1)
|
|
95
|
+
[5] Incorporate feedback
|
|
96
|
+
[6] Save design doc
|
|
97
|
+
```
|
|
98
|
+
</design_document_flow>
|
|
99
|
+
|
|
100
|
+
<output_artifacts>
|
|
101
|
+
| Artifact | Location | Template |
|
|
102
|
+
|----------|----------|----------|
|
|
103
|
+
| Intent Brief | `.specs-fire/intents/{id}/brief.md` | `templates/intents/brief.md.hbs` |
|
|
104
|
+
| Work Item | `.specs-fire/intents/{id}/work-items/{id}.md` | `templates/intents/work-item.md.hbs` |
|
|
105
|
+
| Design Doc | `.specs-fire/intents/{id}/work-items/{id}-design.md` | `templates/intents/design-doc.md.hbs` |
|
|
106
|
+
</output_artifacts>
|
|
107
|
+
|
|
108
|
+
<handoff_format>
|
|
109
|
+
When planning is complete:
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
Planning complete for intent "{intent-title}".
|
|
113
|
+
|
|
114
|
+
Work items ready for execution:
|
|
115
|
+
1. {work-item-1} (low, autopilot)
|
|
116
|
+
2. {work-item-2} (medium, confirm)
|
|
117
|
+
3. {work-item-3} (high, validate)
|
|
118
|
+
|
|
119
|
+
Route to Builder Agent to begin execution? [Y/n]
|
|
120
|
+
```
|
|
121
|
+
</handoff_format>
|
|
122
|
+
|
|
123
|
+
<success_criteria>
|
|
124
|
+
<criterion>Intent captured with clear goal and success criteria</criterion>
|
|
125
|
+
<criterion>Work items have explicit acceptance criteria</criterion>
|
|
126
|
+
<criterion>Dependencies validated (no circular dependencies)</criterion>
|
|
127
|
+
<criterion>High-complexity items have approved design docs</criterion>
|
|
128
|
+
<criterion>All artifacts saved using templates</criterion>
|
|
129
|
+
</success_criteria>
|
|
130
|
+
|
|
131
|
+
<begin>
|
|
132
|
+
Read `.specs-fire/state.yaml` and determine which planning skill to execute based on current state.
|
|
133
|
+
</begin>
|
|
@@ -1,35 +1,31 @@
|
|
|
1
|
-
# Skill: Design Doc Generate
|
|
2
|
-
|
|
3
|
-
Generate design documents for Validate mode work items (Checkpoint 1).
|
|
4
|
-
|
|
5
1
|
---
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
- Work item has complexity: high
|
|
10
|
-
- Work item has mode: validate
|
|
11
|
-
- Design review required before implementation
|
|
12
|
-
|
|
2
|
+
name: design-doc-generate
|
|
3
|
+
description: Generate design documents for Validate mode work items (Checkpoint 1). Required for high-complexity items.
|
|
4
|
+
version: 1.0.0
|
|
13
5
|
---
|
|
14
6
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
</mandate>
|
|
32
|
-
|
|
7
|
+
<objective>
|
|
8
|
+
Generate design documents for Validate mode work items (Checkpoint 1).
|
|
9
|
+
</objective>
|
|
10
|
+
|
|
11
|
+
<triggers>
|
|
12
|
+
- Work item has complexity: high
|
|
13
|
+
- Work item has mode: validate
|
|
14
|
+
- Design review required before implementation
|
|
15
|
+
</triggers>
|
|
16
|
+
|
|
17
|
+
<degrees_of_freedom>
|
|
18
|
+
**LOW** — Follow the design doc structure precisely. Decisions must have rationale.
|
|
19
|
+
</degrees_of_freedom>
|
|
20
|
+
|
|
21
|
+
<llm critical="true">
|
|
22
|
+
<mandate>Design doc MUST be approved before implementation</mandate>
|
|
23
|
+
<mandate>Document DECISIONS with RATIONALE, not just choices</mandate>
|
|
24
|
+
<mandate>Keep concise — enough detail to implement, no more</mandate>
|
|
25
|
+
<mandate>Include risks upfront — don't hide complexity</mandate>
|
|
26
|
+
</llm>
|
|
27
|
+
|
|
28
|
+
<flow>
|
|
33
29
|
<step n="1" title="Analyze Work Item">
|
|
34
30
|
<action>Read work item from .specs-fire/intents/{intent-id}/work-items/{id}.md</action>
|
|
35
31
|
<action>Identify key design decisions needed</action>
|
|
@@ -50,11 +46,11 @@ Generate design documents for Validate mode work items (Checkpoint 1).
|
|
|
50
46
|
<substep>Select recommended choice</substep>
|
|
51
47
|
<substep>Document rationale</substep>
|
|
52
48
|
|
|
53
|
-
<
|
|
49
|
+
<output_format>
|
|
54
50
|
| Decision | Choice | Rationale |
|
|
55
51
|
|----------|--------|-----------|
|
|
56
52
|
| ... | ... | ... |
|
|
57
|
-
</
|
|
53
|
+
</output_format>
|
|
58
54
|
</step>
|
|
59
55
|
|
|
60
56
|
<step n="4" title="Define Domain Model" if="has_domain_complexity">
|
|
@@ -76,11 +72,11 @@ Generate design documents for Validate mode work items (Checkpoint 1).
|
|
|
76
72
|
<action>Assess impact (high/medium/low)</action>
|
|
77
73
|
<action>Propose mitigations</action>
|
|
78
74
|
|
|
79
|
-
<
|
|
75
|
+
<output_format>
|
|
80
76
|
| Risk | Impact | Mitigation |
|
|
81
77
|
|------|--------|------------|
|
|
82
78
|
| ... | ... | ... |
|
|
83
|
-
</
|
|
79
|
+
</output_format>
|
|
84
80
|
</step>
|
|
85
81
|
|
|
86
82
|
<step n="7" title="Create Implementation Checklist">
|
|
@@ -139,75 +135,21 @@ Generate design documents for Validate mode work items (Checkpoint 1).
|
|
|
139
135
|
<goto step="3"/>
|
|
140
136
|
</check>
|
|
141
137
|
</step>
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
created
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
# Design: {title}
|
|
162
|
-
|
|
163
|
-
## Summary
|
|
164
|
-
|
|
165
|
-
{Brief description of what will be built and why}
|
|
166
|
-
|
|
167
|
-
## Key Decisions
|
|
168
|
-
|
|
169
|
-
| Decision | Choice | Rationale |
|
|
170
|
-
|----------|--------|-----------|
|
|
171
|
-
| {decision} | {choice} | {why} |
|
|
172
|
-
|
|
173
|
-
## Domain Model
|
|
174
|
-
|
|
175
|
-
### Entities
|
|
176
|
-
- **{Name}**: {description}
|
|
177
|
-
|
|
178
|
-
### Value Objects
|
|
179
|
-
- **{Name}**: {description}
|
|
180
|
-
|
|
181
|
-
## Technical Approach
|
|
182
|
-
|
|
183
|
-
### Component Diagram
|
|
184
|
-
|
|
185
|
-
```
|
|
186
|
-
[ASCII diagram]
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
### API Endpoints
|
|
190
|
-
|
|
191
|
-
- `POST /api/...` - {description}
|
|
192
|
-
|
|
193
|
-
### Database Changes
|
|
194
|
-
|
|
195
|
-
```sql
|
|
196
|
-
CREATE TABLE ...
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
## Risks & Mitigations
|
|
200
|
-
|
|
201
|
-
| Risk | Impact | Mitigation |
|
|
202
|
-
|------|--------|------------|
|
|
203
|
-
| {risk} | {impact} | {mitigation} |
|
|
204
|
-
|
|
205
|
-
## Implementation Checklist
|
|
206
|
-
|
|
207
|
-
- [ ] {step 1}
|
|
208
|
-
- [ ] {step 2}
|
|
209
|
-
- [ ] {step 3}
|
|
210
|
-
|
|
211
|
-
---
|
|
212
|
-
*Checkpoint 1 approved: {timestamp}*
|
|
213
|
-
```
|
|
138
|
+
</flow>
|
|
139
|
+
|
|
140
|
+
<output_artifacts>
|
|
141
|
+
| Artifact | Location | Template |
|
|
142
|
+
|----------|----------|----------|
|
|
143
|
+
| Design Doc | `.specs-fire/intents/{intent-id}/work-items/{id}-design.md` | `./templates/design-doc.md.hbs` |
|
|
144
|
+
</output_artifacts>
|
|
145
|
+
|
|
146
|
+
<success_criteria>
|
|
147
|
+
<criterion>Work item analyzed for design decisions</criterion>
|
|
148
|
+
<criterion>Key decisions documented with rationale</criterion>
|
|
149
|
+
<criterion>Domain model defined (if applicable)</criterion>
|
|
150
|
+
<criterion>Technical approach specified</criterion>
|
|
151
|
+
<criterion>Risks identified with mitigations</criterion>
|
|
152
|
+
<criterion>Implementation checklist created</criterion>
|
|
153
|
+
<criterion>Design doc approved at checkpoint</criterion>
|
|
154
|
+
<criterion>Design doc saved to correct location</criterion>
|
|
155
|
+
</success_criteria>
|
|
@@ -1,32 +1,29 @@
|
|
|
1
|
-
# Skill: Intent Capture
|
|
2
|
-
|
|
3
|
-
Capture user intent through guided conversation.
|
|
4
|
-
|
|
5
1
|
---
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
- No active intent exists
|
|
10
|
-
- User wants to start something new
|
|
11
|
-
|
|
2
|
+
name: intent-capture
|
|
3
|
+
description: Capture user intent through guided conversation. Exploratory phase with high degrees of freedom.
|
|
4
|
+
version: 1.0.0
|
|
12
5
|
---
|
|
13
6
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
---
|
|
7
|
+
<objective>
|
|
8
|
+
Capture user intent through guided conversation.
|
|
9
|
+
</objective>
|
|
19
10
|
|
|
20
|
-
|
|
11
|
+
<triggers>
|
|
12
|
+
- No active intent exists
|
|
13
|
+
- User wants to start something new
|
|
14
|
+
</triggers>
|
|
21
15
|
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
<degrees_of_freedom>
|
|
17
|
+
**HIGH** — This is a creative, exploratory phase. Ask open-ended questions. Don't constrain prematurely.
|
|
18
|
+
</degrees_of_freedom>
|
|
24
19
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</mandate>
|
|
20
|
+
<llm critical="true">
|
|
21
|
+
<mandate>NEVER assume requirements — ALWAYS ask clarifying questions</mandate>
|
|
22
|
+
<mandate>Capture the "what" and "why" — leave the "how" for decomposition</mandate>
|
|
23
|
+
<mandate>Let user describe freely — don't interrupt</mandate>
|
|
24
|
+
</llm>
|
|
29
25
|
|
|
26
|
+
<flow>
|
|
30
27
|
<step n="1" title="Initial Question">
|
|
31
28
|
<ask>What do you want to build?</ask>
|
|
32
29
|
<listen>Let user describe freely. Don't interrupt.</listen>
|
|
@@ -106,50 +103,22 @@ Capture user intent through guided conversation.
|
|
|
106
103
|
Ready to break this into work items? [Y/n]
|
|
107
104
|
</output>
|
|
108
105
|
<check if="response == y">
|
|
109
|
-
<
|
|
106
|
+
<invoke_skill>work-item-decompose</invoke_skill>
|
|
110
107
|
</check>
|
|
111
108
|
</step>
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
---
|
|
129
|
-
|
|
130
|
-
# Intent: {title}
|
|
131
|
-
|
|
132
|
-
## Goal
|
|
133
|
-
|
|
134
|
-
{What we're building and why}
|
|
135
|
-
|
|
136
|
-
## Users
|
|
137
|
-
|
|
138
|
-
{Who benefits from this}
|
|
139
|
-
|
|
140
|
-
## Problem
|
|
141
|
-
|
|
142
|
-
{What pain this solves}
|
|
143
|
-
|
|
144
|
-
## Success Criteria
|
|
145
|
-
|
|
146
|
-
- {How we know it's working}
|
|
147
|
-
|
|
148
|
-
## Constraints
|
|
149
|
-
|
|
150
|
-
- {Any limitations or requirements}
|
|
151
|
-
|
|
152
|
-
## Notes
|
|
153
|
-
|
|
154
|
-
{Additional context}
|
|
155
|
-
```
|
|
109
|
+
</flow>
|
|
110
|
+
|
|
111
|
+
<output_artifacts>
|
|
112
|
+
| Artifact | Location | Template |
|
|
113
|
+
|----------|----------|----------|
|
|
114
|
+
| Intent Brief | `.specs-fire/intents/{id}/brief.md` | `./templates/brief.md.hbs` |
|
|
115
|
+
</output_artifacts>
|
|
116
|
+
|
|
117
|
+
<success_criteria>
|
|
118
|
+
<criterion>User intent fully understood through dialogue</criterion>
|
|
119
|
+
<criterion>Goal, users, problem clearly captured</criterion>
|
|
120
|
+
<criterion>Success criteria defined</criterion>
|
|
121
|
+
<criterion>Constraints identified</criterion>
|
|
122
|
+
<criterion>Intent brief saved to correct location</criterion>
|
|
123
|
+
<criterion>State.yaml updated with new intent</criterion>
|
|
124
|
+
</success_criteria>
|