specsmd 0.0.0-dev.6 → 0.0.0-dev.60
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/README.md +10 -2
- package/flows/aidlc/commands/construction-agent.md +5 -1
- package/flows/aidlc/commands/inception-agent.md +4 -0
- package/flows/aidlc/commands/master-agent.md +4 -0
- package/flows/aidlc/commands/operations-agent.md +4 -0
- package/flows/aidlc/memory-bank.yaml +2 -1
- package/{scripts → flows/aidlc/scripts}/artifact-validator.js +3 -3
- package/{scripts → flows/aidlc/scripts}/bolt-complete.js +35 -4
- package/{scripts → flows/aidlc/scripts}/status-integrity.js +4 -4
- package/flows/aidlc/skills/construction/bolt-list.md +1 -1
- package/flows/aidlc/skills/construction/bolt-start.md +2 -2
- package/flows/aidlc/skills/construction/bolt-status.md +1 -1
- package/flows/aidlc/skills/construction/prototype-apply.md +305 -0
- package/flows/aidlc/skills/inception/bolt-plan.md +15 -2
- package/flows/aidlc/skills/inception/vibe-to-spec.md +406 -0
- package/flows/aidlc/skills/master/analyze-context.md +1 -1
- package/flows/aidlc/templates/construction/bolt-template.md +22 -1
- package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt.md +73 -11
- package/flows/aidlc/templates/construction/bolt-types/simple-construction-bolt.md +5 -0
- package/flows/aidlc/templates/standards/decision-index-template.md +32 -0
- package/flows/fire/README.md +19 -0
- package/flows/fire/agents/builder/agent.md +272 -0
- package/flows/fire/agents/builder/skills/run-execute/SKILL.md +455 -0
- package/flows/fire/agents/builder/skills/run-execute/scripts/complete-run.js +549 -0
- package/flows/fire/agents/builder/skills/run-execute/scripts/init-run.js +454 -0
- package/flows/fire/agents/builder/skills/run-execute/templates/plan.md.hbs +61 -0
- package/flows/fire/agents/builder/skills/run-execute/templates/test-report.md.hbs +81 -0
- package/flows/fire/agents/builder/skills/run-plan/SKILL.md +376 -0
- package/flows/fire/agents/builder/skills/run-status/SKILL.md +94 -0
- package/flows/fire/agents/builder/skills/walkthrough-generate/SKILL.md +140 -0
- package/flows/fire/agents/builder/skills/walkthrough-generate/scripts/render-walkthrough.ts +755 -0
- package/flows/fire/agents/builder/skills/walkthrough-generate/templates/walkthrough.md.hbs +77 -0
- package/flows/fire/agents/orchestrator/agent.md +113 -0
- package/flows/fire/agents/orchestrator/skills/project-init/SKILL.md +150 -0
- package/flows/fire/agents/orchestrator/skills/project-init/templates/coding-standards.md.hbs +149 -0
- package/flows/fire/agents/orchestrator/skills/project-init/templates/system-architecture.md.hbs +101 -0
- package/flows/fire/agents/orchestrator/skills/project-init/templates/tech-stack.md.hbs +136 -0
- package/flows/fire/agents/orchestrator/skills/project-init/templates/testing-standards.md.hbs +94 -0
- package/flows/fire/agents/orchestrator/skills/route/SKILL.md +123 -0
- package/flows/fire/agents/orchestrator/skills/status/SKILL.md +99 -0
- package/flows/fire/agents/planner/agent.md +122 -0
- package/flows/fire/agents/planner/skills/design-doc-generate/SKILL.md +213 -0
- package/flows/fire/agents/planner/skills/design-doc-generate/templates/design.md.hbs +76 -0
- package/flows/fire/agents/planner/skills/intent-capture/SKILL.md +155 -0
- package/flows/fire/agents/planner/skills/intent-capture/templates/brief.md.hbs +40 -0
- package/flows/fire/agents/planner/skills/work-item-decompose/SKILL.md +194 -0
- package/flows/fire/agents/planner/skills/work-item-decompose/templates/work-item.md.hbs +40 -0
- package/flows/fire/commands/fire-builder.md +56 -0
- package/flows/fire/commands/fire-planner.md +48 -0
- package/flows/fire/commands/fire.md +46 -0
- package/flows/fire/memory-bank.yaml +164 -0
- package/flows/fire/quick-start.md +130 -0
- package/flows/simple/README.md +190 -0
- package/flows/simple/agents/agent.md +404 -0
- package/flows/simple/commands/agent.md +60 -0
- package/flows/simple/context-config.yaml +34 -0
- package/flows/simple/memory-bank.yaml +66 -0
- package/flows/simple/quick-start.md +231 -0
- package/flows/simple/skills/design.md +96 -0
- package/flows/simple/skills/execute.md +190 -0
- package/flows/simple/skills/requirements.md +94 -0
- package/flows/simple/skills/tasks.md +136 -0
- package/flows/simple/templates/design-template.md +138 -0
- package/flows/simple/templates/requirements-template.md +85 -0
- package/flows/simple/templates/tasks-template.md +104 -0
- package/lib/analytics/tracker.js +6 -2
- package/lib/constants.js +17 -8
- package/lib/installer.js +5 -15
- package/lib/installers/KiroInstaller.js +55 -0
- package/lib/installers/OpenCodeInstaller.js +9 -1
- package/lib/installers/ToolInstaller.js +4 -1
- package/lib/installers/WindsurfInstaller.js +0 -54
- package/package.json +3 -52
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
# Skill: Run Plan
|
|
2
|
+
|
|
3
|
+
Plan the scope of a run by discovering available work items and suggesting groupings.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Trigger
|
|
8
|
+
|
|
9
|
+
- After work-item decomposition completes
|
|
10
|
+
- User wants to start execution
|
|
11
|
+
- Pending work items exist
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Degrees of Freedom
|
|
16
|
+
|
|
17
|
+
**MEDIUM** — Present smart grouping suggestions but let user choose scope.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Critical Clarifications
|
|
22
|
+
|
|
23
|
+
### Dependencies Mean Sequential Execution, NOT Separate Runs
|
|
24
|
+
|
|
25
|
+
**IMPORTANT**: When work items have dependencies:
|
|
26
|
+
- They execute **sequentially within the SAME run**
|
|
27
|
+
- They do **NOT** require separate runs
|
|
28
|
+
- The dependent item waits for its dependency to complete before starting
|
|
29
|
+
|
|
30
|
+
**Example**: If item 05 depends on item 04:
|
|
31
|
+
- **CORRECT**: ONE run with both items, 04 executes first, then 05
|
|
32
|
+
- **WRONG**: TWO separate runs
|
|
33
|
+
|
|
34
|
+
### All Options Can Include Multiple Items Per Run
|
|
35
|
+
|
|
36
|
+
| Option | Items Per Run | Execution |
|
|
37
|
+
|--------|---------------|-----------|
|
|
38
|
+
| Single | 1 item | One at a time, separate runs |
|
|
39
|
+
| Batch | Multiple items (same mode) | Sequential within run |
|
|
40
|
+
| Wide | All compatible items | Sequential within run |
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Workflow
|
|
45
|
+
|
|
46
|
+
```xml
|
|
47
|
+
<skill name="run-plan">
|
|
48
|
+
|
|
49
|
+
<mandate>
|
|
50
|
+
DISCOVER all available work - both in state.yaml AND file system.
|
|
51
|
+
FILE SYSTEM IS SOURCE OF TRUTH — state.yaml may be incomplete.
|
|
52
|
+
ALWAYS SCAN FILE SYSTEM — even if state.yaml shows all completed.
|
|
53
|
+
SUGGEST smart groupings based on mode, dependencies, and user history.
|
|
54
|
+
LEARN from user choices to improve future recommendations.
|
|
55
|
+
NEVER force a scope - always let user choose.
|
|
56
|
+
DEPENDENCIES = SEQUENTIAL EXECUTION, NOT SEPARATE RUNS.
|
|
57
|
+
</mandate>
|
|
58
|
+
|
|
59
|
+
<step n="1" title="Discover Available Work" critical="true">
|
|
60
|
+
<critical>
|
|
61
|
+
MUST scan file system BEFORE deciding if work exists.
|
|
62
|
+
state.yaml may be missing intents or work items that exist on disk.
|
|
63
|
+
DO NOT skip this step even if state.yaml shows all items completed.
|
|
64
|
+
</critical>
|
|
65
|
+
|
|
66
|
+
<substep n="1a" title="List All Intent Directories">
|
|
67
|
+
<action>Use Glob to list: .specs-fire/intents/*/brief.md</action>
|
|
68
|
+
<action>Extract intent IDs from directory names</action>
|
|
69
|
+
<output>Found intent directories: {list}</output>
|
|
70
|
+
</substep>
|
|
71
|
+
|
|
72
|
+
<substep n="1b" title="List All Work Item Files">
|
|
73
|
+
<action>Use Glob to list: .specs-fire/intents/*/work-items/*.md</action>
|
|
74
|
+
<action>Extract work item IDs and their parent intents</action>
|
|
75
|
+
<output>Found work item files: {list}</output>
|
|
76
|
+
</substep>
|
|
77
|
+
|
|
78
|
+
<substep n="1c" title="Compare with state.yaml">
|
|
79
|
+
<action>Read state.yaml for known intents and work items</action>
|
|
80
|
+
<action>Compare file system list against state.yaml entries</action>
|
|
81
|
+
</substep>
|
|
82
|
+
|
|
83
|
+
<substep n="1d" title="Reconcile Differences">
|
|
84
|
+
<check if="intent directory exists but not in state.yaml">
|
|
85
|
+
<output>
|
|
86
|
+
**Discovered new intent**: {intent-id}
|
|
87
|
+
(exists in file system but not in state.yaml)
|
|
88
|
+
</output>
|
|
89
|
+
<action>Parse brief.md frontmatter for intent metadata</action>
|
|
90
|
+
<action>Add intent to state.yaml with status: active</action>
|
|
91
|
+
<action>Scan its work-items/ folder</action>
|
|
92
|
+
</check>
|
|
93
|
+
|
|
94
|
+
<check if="work item file exists but not in state.yaml">
|
|
95
|
+
<output>
|
|
96
|
+
**Discovered new work item**: {work-item-id} in {intent-id}
|
|
97
|
+
(exists in file system but not in state.yaml)
|
|
98
|
+
</output>
|
|
99
|
+
<action>Parse work item frontmatter for metadata</action>
|
|
100
|
+
<action>Add work item to state.yaml with status: pending</action>
|
|
101
|
+
</check>
|
|
102
|
+
|
|
103
|
+
<check if="work item exists in both but status mismatch">
|
|
104
|
+
<note>
|
|
105
|
+
state.yaml is authoritative for status (tracks run history).
|
|
106
|
+
Frontmatter status may be stale from initial creation.
|
|
107
|
+
</note>
|
|
108
|
+
<output>
|
|
109
|
+
**Status mismatch**: {work-item-id}
|
|
110
|
+
- state.yaml: {state_status}
|
|
111
|
+
- frontmatter: {frontmatter_status}
|
|
112
|
+
(Using state.yaml as authoritative)
|
|
113
|
+
</output>
|
|
114
|
+
<action if="frontmatter says pending but state says completed">
|
|
115
|
+
Update work item frontmatter to match state.yaml
|
|
116
|
+
</action>
|
|
117
|
+
<action if="state says pending but frontmatter says completed">
|
|
118
|
+
Flag for review - work may have been done outside FIRE
|
|
119
|
+
</action>
|
|
120
|
+
</check>
|
|
121
|
+
|
|
122
|
+
<check if="in state.yaml but file missing">
|
|
123
|
+
<output>Warning: {item} in state but file not found on disk</output>
|
|
124
|
+
</check>
|
|
125
|
+
</substep>
|
|
126
|
+
|
|
127
|
+
<output>
|
|
128
|
+
## File System Scan Complete
|
|
129
|
+
|
|
130
|
+
Intents on disk: {count}
|
|
131
|
+
Intents in state.yaml: {count}
|
|
132
|
+
Work items on disk: {count}
|
|
133
|
+
Work items in state.yaml: {count}
|
|
134
|
+
|
|
135
|
+
{if new items discovered}
|
|
136
|
+
**Newly discovered (added to state.yaml)**:
|
|
137
|
+
{list new items}
|
|
138
|
+
{/if}
|
|
139
|
+
</output>
|
|
140
|
+
</step>
|
|
141
|
+
|
|
142
|
+
<step n="2" title="Collect Pending Work Items">
|
|
143
|
+
<action>Filter work items with status == pending</action>
|
|
144
|
+
<action>Group by intent</action>
|
|
145
|
+
<action>Note mode (after autonomy_bias applied) for each</action>
|
|
146
|
+
<action>Identify dependencies within and across intents</action>
|
|
147
|
+
|
|
148
|
+
<check if="no pending work items">
|
|
149
|
+
<output>
|
|
150
|
+
No pending work items found.
|
|
151
|
+
|
|
152
|
+
Create a new intent? [Y/n]
|
|
153
|
+
</output>
|
|
154
|
+
<check if="response == y">
|
|
155
|
+
<route-to>planner-agent (intent-capture)</route-to>
|
|
156
|
+
</check>
|
|
157
|
+
<stop/>
|
|
158
|
+
</check>
|
|
159
|
+
</step>
|
|
160
|
+
|
|
161
|
+
<step n="3" title="Analyze Groupings">
|
|
162
|
+
<action>Read workspace.autonomy_bias from state.yaml</action>
|
|
163
|
+
<action>Read workspace.run_scope_preference from state.yaml (if exists)</action>
|
|
164
|
+
|
|
165
|
+
<grouping-rules>
|
|
166
|
+
<rule>Dependencies = SEQUENTIAL execution in SAME run (NOT separate runs)</rule>
|
|
167
|
+
<rule>Different modes CAN be in same run (executed sequentially)</rule>
|
|
168
|
+
<rule>Cross-intent items allowed in same run if compatible</rule>
|
|
169
|
+
<rule>Validate mode items may benefit from running alone (more checkpoints)</rule>
|
|
170
|
+
</grouping-rules>
|
|
171
|
+
|
|
172
|
+
<generate-options>
|
|
173
|
+
<option name="single">
|
|
174
|
+
Each work item in its own run
|
|
175
|
+
Total runs: {count of pending items}
|
|
176
|
+
</option>
|
|
177
|
+
|
|
178
|
+
<option name="batch">
|
|
179
|
+
All pending items in ONE run
|
|
180
|
+
Execute sequentially (dependencies respected by order)
|
|
181
|
+
Checkpoints pause at confirm/validate items
|
|
182
|
+
Total runs: 1
|
|
183
|
+
</option>
|
|
184
|
+
|
|
185
|
+
<option name="wide">
|
|
186
|
+
Same as batch - all items in one run
|
|
187
|
+
Total runs: 1
|
|
188
|
+
</option>
|
|
189
|
+
</generate-options>
|
|
190
|
+
</step>
|
|
191
|
+
|
|
192
|
+
<step n="4" title="Present Options">
|
|
193
|
+
<action>Determine recommended option based on:</action>
|
|
194
|
+
<substep>autonomy_bias (autonomous→batch, controlled→single)</substep>
|
|
195
|
+
<substep>run_scope_preference (user's historical choice)</substep>
|
|
196
|
+
<substep>Number of pending items (few items→single is fine)</substep>
|
|
197
|
+
|
|
198
|
+
<output>
|
|
199
|
+
## Run Planning
|
|
200
|
+
|
|
201
|
+
**Found**: {count} pending work items across {intent_count} intent(s)
|
|
202
|
+
|
|
203
|
+
{for each intent with pending items}
|
|
204
|
+
**{intent.title}**:
|
|
205
|
+
{for each pending item}
|
|
206
|
+
- {item.title} ({item.mode})
|
|
207
|
+
{/for}
|
|
208
|
+
{/for}
|
|
209
|
+
|
|
210
|
+
{if dependencies exist}
|
|
211
|
+
**Dependencies** (determines execution order):
|
|
212
|
+
- {dependent_item} depends on {dependency_item}
|
|
213
|
+
{/if}
|
|
214
|
+
|
|
215
|
+
---
|
|
216
|
+
|
|
217
|
+
**How would you like to execute?**
|
|
218
|
+
|
|
219
|
+
**[1] One at a time** — {single_count} separate runs
|
|
220
|
+
Most controlled, review after each run
|
|
221
|
+
|
|
222
|
+
**[2] Sequential chain** — 1 run with {count} items (Recommended)
|
|
223
|
+
Execute in order: {item1} → {item2} → ...
|
|
224
|
+
Checkpoints pause at confirm/validate items
|
|
225
|
+
|
|
226
|
+
**[3] All together** — Same as [2]
|
|
227
|
+
1 run, sequential execution
|
|
228
|
+
|
|
229
|
+
Choose [1/2/3]:
|
|
230
|
+
</output>
|
|
231
|
+
</step>
|
|
232
|
+
|
|
233
|
+
<step n="5" title="Process Choice">
|
|
234
|
+
<check if="response == 1">
|
|
235
|
+
<set>run_scope = single</set>
|
|
236
|
+
<set>work_items_for_run = [first_pending_item]</set>
|
|
237
|
+
</check>
|
|
238
|
+
<check if="response == 2 or response == 3">
|
|
239
|
+
<set>run_scope = batch</set>
|
|
240
|
+
<set>work_items_for_run = all_pending_items_in_dependency_order</set>
|
|
241
|
+
</check>
|
|
242
|
+
</step>
|
|
243
|
+
|
|
244
|
+
<step n="6" title="Learn Preference">
|
|
245
|
+
<action>Update workspace.run_scope_preference in state.yaml</action>
|
|
246
|
+
<action>Add to workspace.run_scope_history (keep last 10)</action>
|
|
247
|
+
|
|
248
|
+
<history-entry>
|
|
249
|
+
choice: {run_scope}
|
|
250
|
+
items_count: {count}
|
|
251
|
+
timestamp: {now}
|
|
252
|
+
</history-entry>
|
|
253
|
+
|
|
254
|
+
<note>
|
|
255
|
+
After 3+ consistent choices, start pre-selecting that option
|
|
256
|
+
and ask "Proceed with {preference}? [Y/n/change]" instead
|
|
257
|
+
</note>
|
|
258
|
+
</step>
|
|
259
|
+
|
|
260
|
+
<step n="7" title="Confirm Run">
|
|
261
|
+
<output>
|
|
262
|
+
Starting run with {count} work item(s):
|
|
263
|
+
|
|
264
|
+
{for each item in work_items_for_run}
|
|
265
|
+
{index}. {item.title} ({item.mode})
|
|
266
|
+
{/for}
|
|
267
|
+
|
|
268
|
+
Items will execute sequentially within this run.
|
|
269
|
+
{if any item is confirm or validate}
|
|
270
|
+
Checkpoints will pause for approval at confirm/validate items.
|
|
271
|
+
{/if}
|
|
272
|
+
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
Begin execution? [Y/n]
|
|
276
|
+
</output>
|
|
277
|
+
<check if="response == y">
|
|
278
|
+
<invoke-skill args="work_items_for_run, run_scope">run-execute</invoke-skill>
|
|
279
|
+
</check>
|
|
280
|
+
</step>
|
|
281
|
+
|
|
282
|
+
</skill>
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
## State Schema Updates
|
|
288
|
+
|
|
289
|
+
**workspace section additions**:
|
|
290
|
+
```yaml
|
|
291
|
+
workspace:
|
|
292
|
+
# ... existing fields ...
|
|
293
|
+
run_scope_preference: batch # single | batch | wide (learned)
|
|
294
|
+
run_scope_history:
|
|
295
|
+
- choice: batch
|
|
296
|
+
items_count: 4
|
|
297
|
+
timestamp: 2026-01-19T10:00:00Z
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
**active_run with multi-item support**:
|
|
301
|
+
```yaml
|
|
302
|
+
active_run:
|
|
303
|
+
id: run-001
|
|
304
|
+
scope: batch # single | batch | wide
|
|
305
|
+
work_items:
|
|
306
|
+
- id: 01-stats-data-model
|
|
307
|
+
intent: session-stats
|
|
308
|
+
mode: autopilot
|
|
309
|
+
status: completed
|
|
310
|
+
- id: 02-stats-api-endpoint
|
|
311
|
+
intent: session-stats
|
|
312
|
+
mode: autopilot
|
|
313
|
+
status: in_progress
|
|
314
|
+
current_item: 02-stats-api-endpoint
|
|
315
|
+
started: 2026-01-19T10:00:00Z
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
---
|
|
319
|
+
|
|
320
|
+
## File Discovery Logic
|
|
321
|
+
|
|
322
|
+
```
|
|
323
|
+
.specs-fire/
|
|
324
|
+
├── intents/
|
|
325
|
+
│ ├── user-auth/
|
|
326
|
+
│ │ ├── brief.md ← Parse frontmatter for intent metadata
|
|
327
|
+
│ │ └── work-items/
|
|
328
|
+
│ │ ├── login-endpoint.md ← Parse for work item metadata
|
|
329
|
+
│ │ └── session-mgmt.md
|
|
330
|
+
│ └── analytics/
|
|
331
|
+
│ ├── brief.md
|
|
332
|
+
│ └── work-items/
|
|
333
|
+
│ └── dashboard.md
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
**Frontmatter parsing**:
|
|
337
|
+
- Extract `id`, `title`, `status` from YAML frontmatter
|
|
338
|
+
- If status missing, default to `pending`
|
|
339
|
+
- If in file but not state.yaml, add to state
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
## Grouping Algorithm
|
|
344
|
+
|
|
345
|
+
```
|
|
346
|
+
1. Collect all pending items with their modes
|
|
347
|
+
2. Build dependency graph
|
|
348
|
+
3. Sort items in dependency order (dependencies first)
|
|
349
|
+
4. For "single" option:
|
|
350
|
+
- Each item is its own run
|
|
351
|
+
5. For "batch" or "wide" option:
|
|
352
|
+
- ALL items in ONE run
|
|
353
|
+
- Execution order follows dependency graph
|
|
354
|
+
- Checkpoints pause at confirm/validate items
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
---
|
|
358
|
+
|
|
359
|
+
## Recommendation Logic
|
|
360
|
+
|
|
361
|
+
```
|
|
362
|
+
IF run_scope_history has 3+ same choices:
|
|
363
|
+
pre_selected = most_common_choice
|
|
364
|
+
|
|
365
|
+
ELSE IF autonomy_bias == autonomous:
|
|
366
|
+
recommended = batch (all in one run)
|
|
367
|
+
|
|
368
|
+
ELSE IF autonomy_bias == controlled:
|
|
369
|
+
recommended = single
|
|
370
|
+
|
|
371
|
+
ELSE: # balanced
|
|
372
|
+
IF pending_count <= 2:
|
|
373
|
+
recommended = single
|
|
374
|
+
ELSE:
|
|
375
|
+
recommended = batch
|
|
376
|
+
```
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# Skill: Run Status
|
|
2
|
+
|
|
3
|
+
Display current run status and progress.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Trigger
|
|
8
|
+
|
|
9
|
+
- User asks about run status
|
|
10
|
+
- During long-running execution
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Workflow
|
|
15
|
+
|
|
16
|
+
```xml
|
|
17
|
+
<skill name="run-status">
|
|
18
|
+
|
|
19
|
+
<step n="1" title="Check Active Run">
|
|
20
|
+
<action>Read state.yaml for active_run</action>
|
|
21
|
+
<check if="no active run">
|
|
22
|
+
<output>
|
|
23
|
+
No active run. Last completed run: {last-run-id}
|
|
24
|
+
</output>
|
|
25
|
+
<stop/>
|
|
26
|
+
</check>
|
|
27
|
+
</step>
|
|
28
|
+
|
|
29
|
+
<step n="2" title="Display Status">
|
|
30
|
+
<output>
|
|
31
|
+
## Run Status: {run-id}
|
|
32
|
+
|
|
33
|
+
**Work Item**: {title}
|
|
34
|
+
**Intent**: {intent-title}
|
|
35
|
+
**Mode**: {mode}
|
|
36
|
+
**Started**: {started}
|
|
37
|
+
**Duration**: {elapsed}
|
|
38
|
+
|
|
39
|
+
### Progress
|
|
40
|
+
|
|
41
|
+
- [x] Initialize run
|
|
42
|
+
- [x] Load context
|
|
43
|
+
{checkpoint status}
|
|
44
|
+
- [{status}] Execute implementation
|
|
45
|
+
- [ ] Run tests
|
|
46
|
+
- [ ] Generate walkthrough
|
|
47
|
+
|
|
48
|
+
### Files Changed So Far
|
|
49
|
+
|
|
50
|
+
Created: {created-count}
|
|
51
|
+
Modified: {modified-count}
|
|
52
|
+
|
|
53
|
+
### Recent Activity
|
|
54
|
+
|
|
55
|
+
{last 5 actions}
|
|
56
|
+
</output>
|
|
57
|
+
</step>
|
|
58
|
+
|
|
59
|
+
</skill>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Example Output
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
## Run Status: run-003
|
|
68
|
+
|
|
69
|
+
**Work Item**: Add session management
|
|
70
|
+
**Intent**: User Authentication
|
|
71
|
+
**Mode**: confirm
|
|
72
|
+
**Started**: 2026-01-19T10:30:00Z
|
|
73
|
+
**Duration**: 12 minutes
|
|
74
|
+
|
|
75
|
+
### Progress
|
|
76
|
+
|
|
77
|
+
- [x] Initialize run
|
|
78
|
+
- [x] Load context
|
|
79
|
+
- [x] Plan approved (Checkpoint 1)
|
|
80
|
+
- [~] Execute implementation
|
|
81
|
+
- [ ] Run tests
|
|
82
|
+
- [ ] Generate walkthrough
|
|
83
|
+
|
|
84
|
+
### Files Changed So Far
|
|
85
|
+
|
|
86
|
+
Created: 2
|
|
87
|
+
Modified: 1
|
|
88
|
+
|
|
89
|
+
### Recent Activity
|
|
90
|
+
|
|
91
|
+
- Created src/auth/session.ts
|
|
92
|
+
- Created src/auth/session.test.ts
|
|
93
|
+
- Modified src/auth/index.ts
|
|
94
|
+
```
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# Skill: Walkthrough Generate
|
|
2
|
+
|
|
3
|
+
Generate implementation walkthrough for human review after run completion.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Trigger
|
|
8
|
+
|
|
9
|
+
- Run completed successfully
|
|
10
|
+
- Invoked by run-execute skill
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Degrees of Freedom
|
|
15
|
+
|
|
16
|
+
**LOW** — Follow walkthrough structure precisely. Be thorough but concise.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Workflow
|
|
21
|
+
|
|
22
|
+
```xml
|
|
23
|
+
<skill name="walkthrough-generate">
|
|
24
|
+
|
|
25
|
+
<mandate>
|
|
26
|
+
ALWAYS generate walkthrough after run completion.
|
|
27
|
+
Document DECISIONS, not just changes.
|
|
28
|
+
Include verification steps - how to test this works.
|
|
29
|
+
</mandate>
|
|
30
|
+
|
|
31
|
+
<step n="1" title="Gather Implementation Data">
|
|
32
|
+
<action>Read run log from .specs-fire/runs/{run-id}/run.md</action>
|
|
33
|
+
<action>Collect:</action>
|
|
34
|
+
<substep>Work item details (id, title, intent)</substep>
|
|
35
|
+
<substep>Files created during implementation</substep>
|
|
36
|
+
<substep>Files modified during implementation</substep>
|
|
37
|
+
<substep>Decisions made during execution</substep>
|
|
38
|
+
<substep>Tests added and coverage</substep>
|
|
39
|
+
</step>
|
|
40
|
+
|
|
41
|
+
<step n="2" title="Analyze Implementation">
|
|
42
|
+
<action>For each file created/modified:</action>
|
|
43
|
+
<substep>Identify purpose of the file</substep>
|
|
44
|
+
<substep>Summarize key changes</substep>
|
|
45
|
+
<substep>Note patterns or approaches used</substep>
|
|
46
|
+
</step>
|
|
47
|
+
|
|
48
|
+
<step n="3" title="Document Key Details">
|
|
49
|
+
<action>Extract implementation highlights:</action>
|
|
50
|
+
<substep>Main flow/algorithm implemented</substep>
|
|
51
|
+
<substep>Security considerations (if applicable)</substep>
|
|
52
|
+
<substep>Performance considerations (if applicable)</substep>
|
|
53
|
+
<substep>Integration points with existing code</substep>
|
|
54
|
+
</step>
|
|
55
|
+
|
|
56
|
+
<step n="4" title="Create Verification Steps">
|
|
57
|
+
<action>Generate how-to-verify section:</action>
|
|
58
|
+
<substep>Commands to run the feature</substep>
|
|
59
|
+
<substep>Expected behavior/output</substep>
|
|
60
|
+
<substep>Manual test scenarios</substep>
|
|
61
|
+
</step>
|
|
62
|
+
|
|
63
|
+
<step n="5" title="Generate Walkthrough">
|
|
64
|
+
<action>Generate walkthrough using template: templates/walkthrough.md.hbs</action>
|
|
65
|
+
<action>Save to: .specs-fire/runs/{run-id}/walkthrough.md</action>
|
|
66
|
+
<output>
|
|
67
|
+
Walkthrough generated: .specs-fire/runs/{run-id}/walkthrough.md
|
|
68
|
+
</output>
|
|
69
|
+
</step>
|
|
70
|
+
|
|
71
|
+
</skill>
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Output
|
|
77
|
+
|
|
78
|
+
**Walkthrough** (`.specs-fire/runs/{run-id}/walkthrough.md`):
|
|
79
|
+
|
|
80
|
+
```markdown
|
|
81
|
+
---
|
|
82
|
+
run: {run-id}
|
|
83
|
+
work_item: {work-item-id}
|
|
84
|
+
intent: {intent-id}
|
|
85
|
+
generated: {timestamp}
|
|
86
|
+
mode: {mode}
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
# Implementation Walkthrough: {title}
|
|
90
|
+
|
|
91
|
+
## Summary
|
|
92
|
+
|
|
93
|
+
{2-3 sentences describing what was implemented}
|
|
94
|
+
|
|
95
|
+
## Files Changed
|
|
96
|
+
|
|
97
|
+
### Created
|
|
98
|
+
|
|
99
|
+
| File | Purpose |
|
|
100
|
+
|------|---------|
|
|
101
|
+
| `{path}` | {purpose} |
|
|
102
|
+
|
|
103
|
+
### Modified
|
|
104
|
+
|
|
105
|
+
| File | Changes |
|
|
106
|
+
|------|---------|
|
|
107
|
+
| `{path}` | {changes} |
|
|
108
|
+
|
|
109
|
+
## Key Implementation Details
|
|
110
|
+
|
|
111
|
+
### 1. {Detail Title}
|
|
112
|
+
|
|
113
|
+
{description of implementation approach}
|
|
114
|
+
|
|
115
|
+
## Decisions Made
|
|
116
|
+
|
|
117
|
+
| Decision | Choice | Rationale |
|
|
118
|
+
|----------|--------|-----------|
|
|
119
|
+
| {decision} | {choice} | {rationale} |
|
|
120
|
+
|
|
121
|
+
## How to Verify
|
|
122
|
+
|
|
123
|
+
1. **{Step Title}**
|
|
124
|
+
```bash
|
|
125
|
+
{command}
|
|
126
|
+
```
|
|
127
|
+
Expected: {expected output}
|
|
128
|
+
|
|
129
|
+
2. **{Step Title}**
|
|
130
|
+
{manual verification steps}
|
|
131
|
+
|
|
132
|
+
## Test Coverage
|
|
133
|
+
|
|
134
|
+
- Tests added: {count}
|
|
135
|
+
- Coverage: {percentage}%
|
|
136
|
+
- Status: {passing/failing}
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
*Generated by FIRE Run {run-id}*
|
|
140
|
+
```
|