specsmd 0.0.0-dev.77 → 0.0.0-dev.79
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 +172 -236
- package/flows/aidlc/scripts/{artifact-validator.js → artifact-validator.cjs} +3 -3
- package/flows/aidlc/scripts/{bolt-complete.js → bolt-complete.cjs} +3 -3
- package/flows/aidlc/scripts/{status-integrity.js → status-integrity.cjs} +5 -5
- package/flows/aidlc/skills/construction/bolt-start.md +3 -3
- package/flows/aidlc/skills/construction/prototype-apply.md +6 -0
- package/flows/aidlc/skills/inception/vibe-to-spec.md +4 -0
- package/flows/fire/agents/builder/agent.md +19 -17
- package/flows/fire/agents/builder/skills/code-review/SKILL.md +9 -6
- package/flows/fire/agents/builder/skills/code-review/references/auto-fix-rules.md +6 -0
- package/flows/fire/agents/builder/skills/run-execute/SKILL.md +181 -62
- package/flows/fire/agents/builder/skills/run-execute/scripts/{complete-run.js → complete-run.cjs} +274 -75
- package/flows/fire/agents/builder/skills/run-execute/scripts/{init-run.js → init-run.cjs} +22 -19
- package/flows/fire/agents/builder/skills/run-execute/scripts/update-phase.cjs +239 -0
- package/flows/fire/agents/builder/skills/run-plan/SKILL.md +44 -46
- package/flows/fire/agents/builder/skills/run-status/SKILL.md +3 -1
- package/flows/fire/agents/builder/skills/walkthrough-generate/SKILL.md +131 -7
- package/flows/fire/agents/builder/skills/walkthrough-generate/templates/walkthrough.md.hbs +99 -0
- package/flows/fire/agents/orchestrator/agent.md +22 -5
- package/flows/fire/agents/orchestrator/skills/project-init/SKILL.md +2 -1
- package/flows/fire/agents/orchestrator/skills/route/SKILL.md +11 -6
- package/flows/fire/agents/orchestrator/skills/status/SKILL.md +609 -13
- package/flows/fire/agents/planner/agent.md +5 -0
- package/flows/fire/agents/planner/skills/design-doc-generate/SKILL.md +1 -0
- package/flows/fire/agents/planner/skills/intent-capture/SKILL.md +1 -0
- package/flows/fire/agents/planner/skills/work-item-decompose/SKILL.md +1 -0
- package/flows/fire/commands/fire-builder.md +1 -1
- package/flows/fire/commands/fire-planner.md +1 -1
- package/flows/fire/commands/fire.md +1 -1
- package/flows/fire/memory-bank.yaml +29 -12
- package/flows/fire/quick-start.md +16 -0
- package/lib/constants.js +6 -3
- package/lib/installer.js +14 -0
- package/package.json +1 -1
- package/flows/fire/agents/builder/skills/walkthrough-generate/scripts/render-walkthrough.ts +0 -755
- package/flows/fire/agents/orchestrator/skills/project-migrate/SKILL.md +0 -234
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: project-migrate
|
|
3
|
-
description: Migrate existing FIRE project to latest version. Adds constitution.md, updates schema, and optionally detects monorepo modules.
|
|
4
|
-
version: 1.0.0
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
<objective>
|
|
8
|
-
Upgrade an existing FIRE project to the latest version, adding new features
|
|
9
|
-
(constitution.md, hierarchical standards) while preserving all existing work.
|
|
10
|
-
</objective>
|
|
11
|
-
|
|
12
|
-
<triggers>
|
|
13
|
-
- User runs `/fire-migrate`
|
|
14
|
-
- Orchestrator detects outdated project version
|
|
15
|
-
</triggers>
|
|
16
|
-
|
|
17
|
-
<principles critical="true">
|
|
18
|
-
<principle>NEVER delete or modify existing intents/work-items/runs</principle>
|
|
19
|
-
<principle>Create backup before any changes</principle>
|
|
20
|
-
<principle>Migration is idempotent — safe to run multiple times</principle>
|
|
21
|
-
<principle>Show changes before applying</principle>
|
|
22
|
-
</principles>
|
|
23
|
-
|
|
24
|
-
<flow>
|
|
25
|
-
<step n="1" title="Detect Current Version">
|
|
26
|
-
<action>Check if .specs-fire/ exists</action>
|
|
27
|
-
<check if="no .specs-fire/">
|
|
28
|
-
<output>Not a FIRE project. Use /fire to initialize.</output>
|
|
29
|
-
<exit/>
|
|
30
|
-
</check>
|
|
31
|
-
|
|
32
|
-
<action>Read .specs-fire/state.yaml</action>
|
|
33
|
-
<action>Check project.fire_version field</action>
|
|
34
|
-
<action>Read FIRE flow version from memory-bank.yaml</action>
|
|
35
|
-
|
|
36
|
-
<version_detection>
|
|
37
|
-
| Check | Meaning |
|
|
38
|
-
|-------|---------|
|
|
39
|
-
| project.fire_version missing | Pre-0.1.8 project |
|
|
40
|
-
| project.fire_version < current | Needs migration |
|
|
41
|
-
| project.fire_version == current | Up to date |
|
|
42
|
-
|
|
43
|
-
Also check for feature indicators:
|
|
44
|
-
| Missing Feature | Added In |
|
|
45
|
-
|-----------------|----------|
|
|
46
|
-
| constitution.md | 0.1.8 |
|
|
47
|
-
| workspace.structure | 0.1.8 |
|
|
48
|
-
</version_detection>
|
|
49
|
-
|
|
50
|
-
<check if="already up to date">
|
|
51
|
-
<output>Project is already at the latest version ({current_version}). No migration needed.</output>
|
|
52
|
-
<exit/>
|
|
53
|
-
</check>
|
|
54
|
-
|
|
55
|
-
<output>
|
|
56
|
-
Current version: {project_fire_version or "pre-0.1.8"}
|
|
57
|
-
Latest version: {fire_flow_version}
|
|
58
|
-
Migration required.
|
|
59
|
-
</output>
|
|
60
|
-
</step>
|
|
61
|
-
|
|
62
|
-
<step n="2" title="Analyze Migration Scope">
|
|
63
|
-
<action>Determine what needs to be migrated:</action>
|
|
64
|
-
|
|
65
|
-
<check_constitution>
|
|
66
|
-
Does .specs-fire/standards/constitution.md exist?
|
|
67
|
-
If no → needs_constitution = true
|
|
68
|
-
</check_constitution>
|
|
69
|
-
|
|
70
|
-
<check_schema>
|
|
71
|
-
Does state.yaml have workspace.structure field?
|
|
72
|
-
If no → needs_schema_update = true
|
|
73
|
-
</check_schema>
|
|
74
|
-
|
|
75
|
-
<check_monorepo>
|
|
76
|
-
Is this actually a monorepo? Check for:
|
|
77
|
-
- nx.json, turbo.json, pnpm-workspace.yaml, lerna.json
|
|
78
|
-
- package.json with "workspaces"
|
|
79
|
-
- Multiple package/dependency manifests
|
|
80
|
-
If detected → is_monorepo = true
|
|
81
|
-
</check_monorepo>
|
|
82
|
-
|
|
83
|
-
<output>
|
|
84
|
-
Migration Plan:
|
|
85
|
-
┌─────────────────────────────────────────────────────┐
|
|
86
|
-
│ Changes to be made: │
|
|
87
|
-
{{#if needs_constitution}}
|
|
88
|
-
│ ✓ Create constitution.md (universal policies) │
|
|
89
|
-
{{/if}}
|
|
90
|
-
{{#if needs_schema_update}}
|
|
91
|
-
│ ✓ Update state.yaml schema │
|
|
92
|
-
{{/if}}
|
|
93
|
-
{{#if is_monorepo}}
|
|
94
|
-
│ ? Monorepo detected — offer module standards │
|
|
95
|
-
{{/if}}
|
|
96
|
-
│ │
|
|
97
|
-
│ Will NOT change: │
|
|
98
|
-
│ • Existing intents and work items │
|
|
99
|
-
│ • Existing runs and logs │
|
|
100
|
-
│ • Existing standards (only add new ones) │
|
|
101
|
-
└─────────────────────────────────────────────────────┘
|
|
102
|
-
</output>
|
|
103
|
-
</step>
|
|
104
|
-
|
|
105
|
-
<step n="3" title="Create Backup">
|
|
106
|
-
<action>Create backup: cp -r .specs-fire .specs-fire-backup-{timestamp}</action>
|
|
107
|
-
<output>Backup created: .specs-fire-backup-{timestamp}</output>
|
|
108
|
-
</step>
|
|
109
|
-
|
|
110
|
-
<step n="4" title="Confirm Migration">
|
|
111
|
-
<ask>
|
|
112
|
-
Ready to migrate. Backup saved.
|
|
113
|
-
|
|
114
|
-
Proceed with migration? [Y/n]
|
|
115
|
-
</ask>
|
|
116
|
-
</step>
|
|
117
|
-
|
|
118
|
-
<step n="5" title="Add Constitution" if="needs_constitution">
|
|
119
|
-
<ask>
|
|
120
|
-
How should I create constitution.md?
|
|
121
|
-
|
|
122
|
-
[a] Auto-generate — analyze project (git, CI, existing patterns)
|
|
123
|
-
[d] Default — use standard template
|
|
124
|
-
[c] Custom — I'll provide the content
|
|
125
|
-
</ask>
|
|
126
|
-
|
|
127
|
-
<check if="response == a">
|
|
128
|
-
<action>Analyze project for constitution content:</action>
|
|
129
|
-
<substep>Check .gitignore, CI config for workflow hints</substep>
|
|
130
|
-
<substep>Check existing PR templates, CONTRIBUTING.md</substep>
|
|
131
|
-
<substep>Infer commit style from git log</substep>
|
|
132
|
-
<action>Generate constitution.md from findings</action>
|
|
133
|
-
</check>
|
|
134
|
-
|
|
135
|
-
<check if="response == d">
|
|
136
|
-
<action>Create constitution.md from default template</action>
|
|
137
|
-
</check>
|
|
138
|
-
|
|
139
|
-
<check if="response == c">
|
|
140
|
-
<ask>Please describe your key policies (git workflow, PR process, security).</ask>
|
|
141
|
-
<action>Generate constitution.md from input</action>
|
|
142
|
-
</check>
|
|
143
|
-
|
|
144
|
-
<action>Write to .specs-fire/standards/constitution.md</action>
|
|
145
|
-
<output>Created: .specs-fire/standards/constitution.md</output>
|
|
146
|
-
</step>
|
|
147
|
-
|
|
148
|
-
<step n="6" title="Update State Schema" if="needs_schema_update">
|
|
149
|
-
<action>Read current state.yaml</action>
|
|
150
|
-
<action>Add missing fields with defaults:</action>
|
|
151
|
-
<substep>project.fire_version: "{current_fire_flow_version}"</substep>
|
|
152
|
-
<substep>workspace.structure: "monolith" (or "monorepo" if detected)</substep>
|
|
153
|
-
<action>Write updated state.yaml (preserve all existing data)</action>
|
|
154
|
-
<output>Updated: .specs-fire/state.yaml</output>
|
|
155
|
-
</step>
|
|
156
|
-
|
|
157
|
-
<step n="7" title="Monorepo Module Setup" if="is_monorepo" optional="true">
|
|
158
|
-
<action>Discover modules (same as project-init):</action>
|
|
159
|
-
<substep>Check workspace config for project list</substep>
|
|
160
|
-
<substep>Scan packages/*, apps/*, services/*, libs/*</substep>
|
|
161
|
-
<substep>Analyze each module's tech stack</substep>
|
|
162
|
-
|
|
163
|
-
<ask>
|
|
164
|
-
This appears to be a monorepo. Found {{module_count}} modules:
|
|
165
|
-
|
|
166
|
-
{{#each modules}}
|
|
167
|
-
• {{path}} ({{language}})
|
|
168
|
-
{{/each}}
|
|
169
|
-
|
|
170
|
-
Create module-specific standards?
|
|
171
|
-
[y] Yes — create for all modules
|
|
172
|
-
[s] Select — choose which modules
|
|
173
|
-
[n] No — skip for now
|
|
174
|
-
</ask>
|
|
175
|
-
|
|
176
|
-
<check if="response == y or response == s">
|
|
177
|
-
<action>For each selected module:</action>
|
|
178
|
-
<substep>Create {module}/.specs-fire/standards/</substep>
|
|
179
|
-
<substep>Generate tech-stack.md with detected settings</substep>
|
|
180
|
-
</check>
|
|
181
|
-
</step>
|
|
182
|
-
|
|
183
|
-
<step n="8" title="Verify Migration">
|
|
184
|
-
<action>Verify migration completed:</action>
|
|
185
|
-
<substep>Read state.yaml — valid YAML?</substep>
|
|
186
|
-
<substep>Check new files exist</substep>
|
|
187
|
-
<substep>Ensure no existing files corrupted</substep>
|
|
188
|
-
|
|
189
|
-
<check if="verification fails">
|
|
190
|
-
<output>Migration failed. Restoring from backup...</output>
|
|
191
|
-
<action>rm -rf .specs-fire && mv .specs-fire-backup-{timestamp} .specs-fire</action>
|
|
192
|
-
<output>Restored. Please report this issue.</output>
|
|
193
|
-
<exit status="error"/>
|
|
194
|
-
</check>
|
|
195
|
-
</step>
|
|
196
|
-
|
|
197
|
-
<step n="9" title="Report">
|
|
198
|
-
<output>
|
|
199
|
-
Migration complete!
|
|
200
|
-
|
|
201
|
-
Changes made:
|
|
202
|
-
{{#each changes_made}}
|
|
203
|
-
✓ {{description}}
|
|
204
|
-
{{/each}}
|
|
205
|
-
|
|
206
|
-
Backup preserved at: .specs-fire-backup-{timestamp}
|
|
207
|
-
(Delete once you've verified everything works)
|
|
208
|
-
|
|
209
|
-
New features available:
|
|
210
|
-
• Constitution: Universal policies in constitution.md
|
|
211
|
-
{{#if is_monorepo}}
|
|
212
|
-
• Monorepo: Module-specific standards supported
|
|
213
|
-
{{/if}}
|
|
214
|
-
</output>
|
|
215
|
-
</step>
|
|
216
|
-
</flow>
|
|
217
|
-
|
|
218
|
-
<safety_guarantees>
|
|
219
|
-
<guarantee>Backup created before any changes</guarantee>
|
|
220
|
-
<guarantee>Idempotent — running twice is safe</guarantee>
|
|
221
|
-
<guarantee>Verify after — validates migration succeeded</guarantee>
|
|
222
|
-
<guarantee>Restore on failure — automatic rollback</guarantee>
|
|
223
|
-
<guarantee>Never deletes — only adds, never removes</guarantee>
|
|
224
|
-
</safety_guarantees>
|
|
225
|
-
|
|
226
|
-
<success_criteria>
|
|
227
|
-
<criterion>Current version detected correctly</criterion>
|
|
228
|
-
<criterion>Backup created before changes</criterion>
|
|
229
|
-
<criterion>constitution.md added if missing</criterion>
|
|
230
|
-
<criterion>state.yaml schema updated if needed</criterion>
|
|
231
|
-
<criterion>Monorepo modules detected and offered (if applicable)</criterion>
|
|
232
|
-
<criterion>Migration verified successfully</criterion>
|
|
233
|
-
<criterion>No existing data lost or corrupted</criterion>
|
|
234
|
-
</success_criteria>
|