@ydtb/specsmd 0.1.22

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.
Files changed (143) hide show
  1. package/README.md +322 -0
  2. package/bin/cli.js +21 -0
  3. package/flows/aidlc/README.md +372 -0
  4. package/flows/aidlc/agents/construction-agent.md +80 -0
  5. package/flows/aidlc/agents/inception-agent.md +97 -0
  6. package/flows/aidlc/agents/master-agent.md +61 -0
  7. package/flows/aidlc/agents/operations-agent.md +89 -0
  8. package/flows/aidlc/commands/construction-agent.md +67 -0
  9. package/flows/aidlc/commands/inception-agent.md +59 -0
  10. package/flows/aidlc/commands/master-agent.md +51 -0
  11. package/flows/aidlc/commands/operations-agent.md +81 -0
  12. package/flows/aidlc/context-config.yaml +67 -0
  13. package/flows/aidlc/memory-bank.yaml +105 -0
  14. package/flows/aidlc/quick-start.md +322 -0
  15. package/flows/aidlc/scripts/artifact-validator.cjs +594 -0
  16. package/flows/aidlc/scripts/bolt-complete.cjs +606 -0
  17. package/flows/aidlc/scripts/status-integrity.cjs +598 -0
  18. package/flows/aidlc/skills/construction/bolt-list.md +163 -0
  19. package/flows/aidlc/skills/construction/bolt-replan.md +345 -0
  20. package/flows/aidlc/skills/construction/bolt-start.md +442 -0
  21. package/flows/aidlc/skills/construction/bolt-status.md +185 -0
  22. package/flows/aidlc/skills/construction/navigator.md +196 -0
  23. package/flows/aidlc/skills/construction/prototype-apply.md +311 -0
  24. package/flows/aidlc/skills/inception/bolt-plan.md +372 -0
  25. package/flows/aidlc/skills/inception/context.md +171 -0
  26. package/flows/aidlc/skills/inception/intent-create.md +211 -0
  27. package/flows/aidlc/skills/inception/intent-list.md +124 -0
  28. package/flows/aidlc/skills/inception/navigator.md +207 -0
  29. package/flows/aidlc/skills/inception/requirements.md +227 -0
  30. package/flows/aidlc/skills/inception/review.md +248 -0
  31. package/flows/aidlc/skills/inception/story-create.md +304 -0
  32. package/flows/aidlc/skills/inception/units.md +278 -0
  33. package/flows/aidlc/skills/inception/vibe-to-spec.md +410 -0
  34. package/flows/aidlc/skills/master/analyze-context.md +239 -0
  35. package/flows/aidlc/skills/master/answer-question.md +141 -0
  36. package/flows/aidlc/skills/master/explain-flow.md +158 -0
  37. package/flows/aidlc/skills/master/project-init.md +281 -0
  38. package/flows/aidlc/skills/master/route-request.md +126 -0
  39. package/flows/aidlc/skills/operations/build.md +237 -0
  40. package/flows/aidlc/skills/operations/deploy.md +259 -0
  41. package/flows/aidlc/skills/operations/monitor.md +265 -0
  42. package/flows/aidlc/skills/operations/navigator.md +209 -0
  43. package/flows/aidlc/skills/operations/verify.md +224 -0
  44. package/flows/aidlc/templates/construction/bolt-template.md +226 -0
  45. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/adr-template.md +49 -0
  46. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-01-domain-model-template.md +55 -0
  47. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-02-technical-design-template.md +67 -0
  48. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-03-test-report-template.md +62 -0
  49. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt.md +590 -0
  50. package/flows/aidlc/templates/construction/bolt-types/simple-construction-bolt.md +347 -0
  51. package/flows/aidlc/templates/construction/bolt-types/spike-bolt.md +240 -0
  52. package/flows/aidlc/templates/construction/construction-log-template.md +129 -0
  53. package/flows/aidlc/templates/construction/standards/coding-standards.md +29 -0
  54. package/flows/aidlc/templates/construction/standards/system-architecture.md +22 -0
  55. package/flows/aidlc/templates/construction/standards/tech-stack.md +19 -0
  56. package/flows/aidlc/templates/inception/inception-log-template.md +134 -0
  57. package/flows/aidlc/templates/inception/project/README.md +55 -0
  58. package/flows/aidlc/templates/inception/requirements-template.md +144 -0
  59. package/flows/aidlc/templates/inception/stories-template.md +38 -0
  60. package/flows/aidlc/templates/inception/story-template.md +147 -0
  61. package/flows/aidlc/templates/inception/system-context-template.md +29 -0
  62. package/flows/aidlc/templates/inception/unit-brief-template.md +177 -0
  63. package/flows/aidlc/templates/inception/units-template.md +52 -0
  64. package/flows/aidlc/templates/standards/catalog.yaml +345 -0
  65. package/flows/aidlc/templates/standards/coding-standards.guide.md +553 -0
  66. package/flows/aidlc/templates/standards/data-stack.guide.md +162 -0
  67. package/flows/aidlc/templates/standards/decision-index-template.md +32 -0
  68. package/flows/aidlc/templates/standards/tech-stack.guide.md +280 -0
  69. package/flows/fire/README.md +19 -0
  70. package/flows/fire/agents/builder/agent.md +254 -0
  71. package/flows/fire/agents/builder/skills/code-review/SKILL.md +257 -0
  72. package/flows/fire/agents/builder/skills/code-review/references/auto-fix-rules.md +218 -0
  73. package/flows/fire/agents/builder/skills/code-review/references/review-categories.md +154 -0
  74. package/flows/fire/agents/builder/skills/code-review/templates/review-report.md.hbs +120 -0
  75. package/flows/fire/agents/builder/skills/commit-changes/SKILL.md +232 -0
  76. package/flows/fire/agents/builder/skills/commit-changes/scripts/commit-changes.cjs +447 -0
  77. package/flows/fire/agents/builder/skills/run-execute/SKILL.md +700 -0
  78. package/flows/fire/agents/builder/skills/run-execute/scripts/complete-run.cjs +748 -0
  79. package/flows/fire/agents/builder/skills/run-execute/scripts/init-run.cjs +457 -0
  80. package/flows/fire/agents/builder/skills/run-execute/scripts/update-phase.cjs +239 -0
  81. package/flows/fire/agents/builder/skills/run-execute/templates/plan.md.hbs +61 -0
  82. package/flows/fire/agents/builder/skills/run-execute/templates/test-report.md.hbs +81 -0
  83. package/flows/fire/agents/builder/skills/run-plan/SKILL.md +366 -0
  84. package/flows/fire/agents/builder/skills/run-status/SKILL.md +96 -0
  85. package/flows/fire/agents/builder/skills/walkthrough-generate/SKILL.md +181 -0
  86. package/flows/fire/agents/builder/skills/walkthrough-generate/templates/walkthrough.md.hbs +108 -0
  87. package/flows/fire/agents/orchestrator/agent.md +144 -0
  88. package/flows/fire/agents/orchestrator/skills/project-init/SKILL.md +226 -0
  89. package/flows/fire/agents/orchestrator/skills/project-init/templates/coding-standards.md.hbs +149 -0
  90. package/flows/fire/agents/orchestrator/skills/project-init/templates/constitution.md.hbs +43 -0
  91. package/flows/fire/agents/orchestrator/skills/project-init/templates/system-architecture.md.hbs +101 -0
  92. package/flows/fire/agents/orchestrator/skills/project-init/templates/tech-stack.md.hbs +136 -0
  93. package/flows/fire/agents/orchestrator/skills/project-init/templates/testing-standards.md.hbs +94 -0
  94. package/flows/fire/agents/orchestrator/skills/route/SKILL.md +146 -0
  95. package/flows/fire/agents/orchestrator/skills/status/SKILL.md +696 -0
  96. package/flows/fire/agents/planner/agent.md +143 -0
  97. package/flows/fire/agents/planner/skills/design-doc-generate/SKILL.md +156 -0
  98. package/flows/fire/agents/planner/skills/design-doc-generate/templates/design.md.hbs +124 -0
  99. package/flows/fire/agents/planner/skills/intent-capture/SKILL.md +125 -0
  100. package/flows/fire/agents/planner/skills/intent-capture/templates/brief.md.hbs +40 -0
  101. package/flows/fire/agents/planner/skills/work-item-decompose/SKILL.md +166 -0
  102. package/flows/fire/agents/planner/skills/work-item-decompose/templates/work-item.md.hbs +40 -0
  103. package/flows/fire/commands/fire-builder.md +56 -0
  104. package/flows/fire/commands/fire-planner.md +48 -0
  105. package/flows/fire/commands/fire.md +46 -0
  106. package/flows/fire/memory-bank.yaml +240 -0
  107. package/flows/fire/quick-start.md +146 -0
  108. package/flows/simple/README.md +190 -0
  109. package/flows/simple/agents/agent.md +404 -0
  110. package/flows/simple/commands/agent.md +60 -0
  111. package/flows/simple/context-config.yaml +34 -0
  112. package/flows/simple/memory-bank.yaml +66 -0
  113. package/flows/simple/quick-start.md +231 -0
  114. package/flows/simple/skills/design.md +96 -0
  115. package/flows/simple/skills/execute.md +190 -0
  116. package/flows/simple/skills/requirements.md +94 -0
  117. package/flows/simple/skills/tasks.md +136 -0
  118. package/flows/simple/templates/design-template.md +138 -0
  119. package/flows/simple/templates/requirements-template.md +85 -0
  120. package/flows/simple/templates/tasks-template.md +104 -0
  121. package/lib/InstallerFactory.js +36 -0
  122. package/lib/analytics/env-detector.js +92 -0
  123. package/lib/analytics/index.js +22 -0
  124. package/lib/analytics/machine-id.js +33 -0
  125. package/lib/analytics/tracker.js +232 -0
  126. package/lib/cli-utils.js +342 -0
  127. package/lib/constants.js +44 -0
  128. package/lib/installer.js +406 -0
  129. package/lib/installers/AntigravityInstaller.js +22 -0
  130. package/lib/installers/ClaudeInstaller.js +85 -0
  131. package/lib/installers/ClineInstaller.js +21 -0
  132. package/lib/installers/CodexInstaller.js +21 -0
  133. package/lib/installers/CopilotInstaller.js +113 -0
  134. package/lib/installers/CursorInstaller.js +63 -0
  135. package/lib/installers/GeminiInstaller.js +75 -0
  136. package/lib/installers/KiroInstaller.js +77 -0
  137. package/lib/installers/OpenCodeInstaller.js +30 -0
  138. package/lib/installers/RooInstaller.js +22 -0
  139. package/lib/installers/ToolInstaller.js +76 -0
  140. package/lib/installers/WindsurfInstaller.js +22 -0
  141. package/lib/markdown-validator.ts +175 -0
  142. package/lib/yaml-validator.ts +99 -0
  143. package/package.json +69 -0
@@ -0,0 +1,166 @@
1
+ ---
2
+ name: work-item-decompose
3
+ description: Break an intent into discrete, executable work items with complexity assessment and dependency validation.
4
+ version: 1.0.0
5
+ ---
6
+
7
+ <objective>
8
+ Break an intent into discrete, executable work items.
9
+ </objective>
10
+
11
+ <triggers>
12
+ - Intent exists without work items
13
+ - User wants to plan execution
14
+ </triggers>
15
+
16
+ <degrees_of_freedom>
17
+ **MEDIUM** — Follow decomposition patterns but adapt to the specific intent.
18
+ </degrees_of_freedom>
19
+
20
+ <llm critical="true">
21
+ <mandate>Each work item MUST be completable in a single run</mandate>
22
+ <mandate>Each work item MUST have clear acceptance criteria</mandate>
23
+ <mandate>Dependencies MUST be explicit and validated</mandate>
24
+ </llm>
25
+
26
+ <flow>
27
+ <step n="1" title="Load Intent">
28
+ <action>Read intent brief from .specs-fire/intents/{intent-id}/brief.md</action>
29
+ <action>Understand goal, users, success criteria</action>
30
+ </step>
31
+
32
+ <step n="2" title="Identify Deliverables">
33
+ <action>Break intent into discrete deliverables</action>
34
+ <action>Each deliverable should be independently valuable</action>
35
+
36
+ <guidelines>
37
+ - Prefer vertical slices over horizontal layers
38
+ - Start with foundation pieces (models, schemas)
39
+ - End with integration pieces (API, UI)
40
+ - Keep each item focused on ONE concern
41
+ </guidelines>
42
+ </step>
43
+
44
+ <step n="3" title="Assess Complexity">
45
+ <action>For each work item, assess RAW complexity:</action>
46
+
47
+ <complexity level="low">
48
+ - Single file or few files
49
+ - Well-understood pattern
50
+ - No external dependencies
51
+ - Examples: bug fix, config change, simple utility
52
+ </complexity>
53
+
54
+ <complexity level="medium">
55
+ - Multiple files
56
+ - Standard patterns with some decisions
57
+ - May touch existing code
58
+ - Examples: new endpoint, new component, feature addition
59
+ </complexity>
60
+
61
+ <complexity level="high">
62
+ - Architectural decisions required
63
+ - Security or data implications
64
+ - Core system changes
65
+ - Examples: auth system, payment flow, database migration
66
+ </complexity>
67
+ </step>
68
+
69
+ <step n="3b" title="Apply Autonomy Bias">
70
+ <action>Read workspace.autonomy_bias from state.yaml</action>
71
+ <action>Apply bias to determine final execution mode:</action>
72
+
73
+ <bias_table>
74
+ | Raw Complexity | autonomous | balanced | controlled |
75
+ |----------------|------------|----------|------------|
76
+ | low | autopilot | autopilot| confirm |
77
+ | medium | autopilot | confirm | validate |
78
+ | high | confirm | validate | validate |
79
+ </bias_table>
80
+
81
+ <note>
82
+ This allows user preference to shift thresholds:
83
+ - autonomous: trusts AI more, fewer checkpoints
84
+ - balanced: standard behavior (default)
85
+ - controlled: more human oversight
86
+ </note>
87
+ </step>
88
+
89
+ <step n="4" title="Define Acceptance Criteria">
90
+ <action>For each work item, define:</action>
91
+ <substep>What must be true when complete</substep>
92
+ <substep>How to verify it works</substep>
93
+ <substep>Any edge cases to handle</substep>
94
+ </step>
95
+
96
+ <step n="5" title="Validate Dependencies">
97
+ <action>Check for circular dependencies</action>
98
+ <action>Ensure dependencies exist or will be created first</action>
99
+ <action>Order work items by dependency</action>
100
+
101
+ <check if="circular dependency detected">
102
+ <output>
103
+ Warning: Circular dependency detected between {item-a} and {item-b}.
104
+ Suggest splitting into smaller items or reordering.
105
+ </output>
106
+ </check>
107
+ </step>
108
+
109
+ <step n="6" title="Present Plan">
110
+ <output>
111
+ ## Work Items for "{intent-title}"
112
+
113
+ **Total**: {count} work items
114
+ **Estimated**: {low} autopilot, {medium} confirm, {high} validate
115
+
116
+ **Work Item Details**:
117
+
118
+ {for each item}
119
+ {n}. **{title}** ({mode}) — {description}
120
+ {/for}
121
+
122
+ ---
123
+
124
+ Approve this plan? [Y/n/edit]
125
+ </output>
126
+ </step>
127
+
128
+ <step n="7" title="Save Work Items">
129
+ <check if="approved">
130
+ <action>Create .specs-fire/intents/{intent-id}/work-items/</action>
131
+ <action>For each work item, generate using template: templates/work-item.md.hbs</action>
132
+ <action>Save each to: .specs-fire/intents/{intent-id}/work-items/{work-item-id}.md</action>
133
+ <action>Update state.yaml with work items list</action>
134
+ </check>
135
+ </step>
136
+
137
+ <step n="8" title="Transition">
138
+ <output>
139
+ **{count} work items created** for "{intent-title}".
140
+
141
+ ---
142
+
143
+ Ready to plan execution scope? [Y/n]
144
+ </output>
145
+ <check if="response == y">
146
+ <route_to>builder-agent (run-plan)</route_to>
147
+ </check>
148
+ </step>
149
+ </flow>
150
+
151
+ <output_artifacts>
152
+
153
+ | Artifact | Location | Template |
154
+ |----------|----------|----------|
155
+ | Work Item | `.specs-fire/intents/{intent-id}/work-items/{id}.md` | `./templates/work-item.md.hbs` |
156
+ </output_artifacts>
157
+
158
+ <success_criteria>
159
+ <criterion>Intent decomposed into discrete work items</criterion>
160
+ <criterion>Each work item has clear acceptance criteria</criterion>
161
+ <criterion>Complexity assessed for each item</criterion>
162
+ <criterion>Autonomy bias applied to determine modes</criterion>
163
+ <criterion>Dependencies validated (no circular dependencies)</criterion>
164
+ <criterion>Work items saved to correct locations</criterion>
165
+ <criterion>State.yaml updated with work items list</criterion>
166
+ </success_criteria>
@@ -0,0 +1,40 @@
1
+ ---
2
+ id: {{id}}
3
+ title: {{title}}
4
+ intent: {{intent}}
5
+ complexity: {{complexity}}
6
+ mode: {{mode}}
7
+ status: {{status}}
8
+ depends_on: [{{#each depends_on}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}]
9
+ created: {{created}}
10
+ ---
11
+
12
+ # Work Item: {{title}}
13
+
14
+ ## Description
15
+
16
+ {{description}}
17
+
18
+ ## Acceptance Criteria
19
+
20
+ {{#each acceptance_criteria}}
21
+ - [ ] {{this}}
22
+ {{/each}}
23
+
24
+ ## Technical Notes
25
+
26
+ {{#if technical_notes}}
27
+ {{technical_notes}}
28
+ {{else}}
29
+ (none)
30
+ {{/if}}
31
+
32
+ ## Dependencies
33
+
34
+ {{#if depends_on}}
35
+ {{#each depends_on}}
36
+ - {{this}}
37
+ {{/each}}
38
+ {{else}}
39
+ (none)
40
+ {{/if}}
@@ -0,0 +1,56 @@
1
+ ---
2
+ description: FIRE Builder Agent - executes work items and generates walkthroughs
3
+ ---
4
+
5
+ # Activate FIRE Builder
6
+
7
+ **Command**: `/specsmd-fire-builder`
8
+
9
+ ---
10
+
11
+ ## Activation
12
+
13
+ You are now the **FIRE Builder Agent** for specsmd.
14
+
15
+ **IMMEDIATELY** read and adopt the persona from:
16
+ → `.specsmd/fire/agents/builder/agent.md`
17
+
18
+ ---
19
+
20
+ ## Critical First Steps
21
+
22
+ 1. **Read Config**: `.specsmd/fire/memory-bank.yaml`
23
+ 2. **Read State**: `.specs-fire/state.yaml`
24
+ 3. **Determine Mode**:
25
+ - Active run exists → Resume execution
26
+ - Pending work items → Start next work item
27
+ - No work items → Route back to Planner
28
+
29
+ ---
30
+
31
+ ## Your Skills
32
+
33
+ - **Run Execute**: `.specsmd/fire/agents/builder/skills/run-execute/SKILL.md` → Execute work item
34
+ - **Walkthrough Generate**: `.specsmd/fire/agents/builder/skills/walkthrough-generate/SKILL.md` → Generate walkthrough
35
+ - **Run Status**: `.specsmd/fire/agents/builder/skills/run-status/SKILL.md` → Show run status
36
+
37
+ ---
38
+
39
+ ## Execution Modes
40
+
41
+ - **Autopilot**: 0 checkpoints (low complexity)
42
+ - **Confirm**: 1 checkpoint (medium complexity)
43
+ - **Validate**: 2 checkpoints (high complexity)
44
+
45
+ ---
46
+
47
+ ## Routing Targets
48
+
49
+ - **Back to Orchestrator**: `/specsmd-fire`
50
+ - **To Planner**: `/specsmd-fire-planner`
51
+
52
+ ---
53
+
54
+ ## Begin
55
+
56
+ Activate now. Read your agent definition and start building.
@@ -0,0 +1,48 @@
1
+ ---
2
+ description: FIRE Planner Agent - captures intents and decomposes into work items
3
+ ---
4
+
5
+ # Activate FIRE Planner
6
+
7
+ **Command**: `/specsmd-fire-planner`
8
+
9
+ ---
10
+
11
+ ## Activation
12
+
13
+ You are now the **FIRE Planner Agent** for specsmd.
14
+
15
+ **IMMEDIATELY** read and adopt the persona from:
16
+ → `.specsmd/fire/agents/planner/agent.md`
17
+
18
+ ---
19
+
20
+ ## Critical First Steps
21
+
22
+ 1. **Read Config**: `.specsmd/fire/memory-bank.yaml`
23
+ 2. **Read State**: `.specs-fire/state.yaml`
24
+ 3. **Determine Mode**:
25
+ - No active intent → `intent-capture` skill
26
+ - Intent without work items → `work-item-decompose` skill
27
+ - High-complexity work item → `design-doc-generate` skill
28
+
29
+ ---
30
+
31
+ ## Your Skills
32
+
33
+ - **Intent Capture**: `.specsmd/fire/agents/planner/skills/intent-capture/SKILL.md` → Capture new intent
34
+ - **Work Item Decompose**: `.specsmd/fire/agents/planner/skills/work-item-decompose/SKILL.md` → Break into work items
35
+ - **Design Doc Generate**: `.specsmd/fire/agents/planner/skills/design-doc-generate/SKILL.md` → Create design doc
36
+
37
+ ---
38
+
39
+ ## Routing Targets
40
+
41
+ - **Back to Orchestrator**: `/specsmd-fire`
42
+ - **To Builder**: `/specsmd-fire-builder`
43
+
44
+ ---
45
+
46
+ ## Begin
47
+
48
+ Activate now. Read your agent definition and start planning.
@@ -0,0 +1,46 @@
1
+ ---
2
+ description: FIRE orchestrator - Fast Intent-Run Engineering main entry point
3
+ ---
4
+
5
+ # Activate FIRE
6
+
7
+ **Command**: `/specsmd-fire`
8
+
9
+ ---
10
+
11
+ ## Activation
12
+
13
+ You are now the **FIRE Orchestrator** for specsmd.
14
+
15
+ **IMMEDIATELY** read and adopt the persona from:
16
+ → `.specsmd/fire/agents/orchestrator/agent.md`
17
+
18
+ ---
19
+
20
+ ## Critical First Steps
21
+
22
+ 1. **Read Config**: `.specsmd/fire/memory-bank.yaml`
23
+ 2. **Check Initialization**: Verify `.specs-fire/state.yaml` exists
24
+ 3. **If NOT initialized** → Execute `project-init` skill
25
+ 4. **If initialized** → Execute `route` skill to determine next action
26
+
27
+ ---
28
+
29
+ ## Your Skills
30
+
31
+ - **Project Init**: `.specsmd/fire/agents/orchestrator/skills/project-init/SKILL.md` → Initialize new project
32
+ - **Route**: `.specsmd/fire/agents/orchestrator/skills/route/SKILL.md` → Route to appropriate agent
33
+ - **Status**: `.specsmd/fire/agents/orchestrator/skills/status/SKILL.md` → Show project status
34
+
35
+ ---
36
+
37
+ ## Routing Targets
38
+
39
+ - **Planning**: Planner Agent → `/specsmd-fire-planner`
40
+ - **Building**: Builder Agent → `/specsmd-fire-builder`
41
+
42
+ ---
43
+
44
+ ## Begin
45
+
46
+ Activate now. Read your agent definition and start the orchestration process.
@@ -0,0 +1,240 @@
1
+ # FIRE Flow Configuration
2
+ # Fast Intent-Run Engineering - Simplified AI-native development
3
+
4
+ # FIRE Flow Version
5
+ version: "0.1.8"
6
+
7
+ # Artifact folder (created at project initialization)
8
+ artifact_root: ".specs-fire"
9
+
10
+ # Structure created at project initialization
11
+ structure:
12
+ - path: intents/
13
+ description: "High-level objectives that deliver user value"
14
+ - path: runs/
15
+ description: "Execution logs and walkthroughs per run"
16
+ - path: standards/
17
+ description: "Project standards (constitution, tech-stack, coding-standards, testing-standards)"
18
+
19
+ # ─────────────────────────────────────────────────────────────────────────────────
20
+ # HIERARCHICAL STANDARDS (Monorepo Support)
21
+ # ─────────────────────────────────────────────────────────────────────────────────
22
+ #
23
+ # Standards can exist at root level AND at module level for monorepos.
24
+ # Resolution rules:
25
+ # - constitution.md: ALWAYS from root, NEVER overridden by modules
26
+ # - All other standards: Override semantics (module overrides root if exists)
27
+ #
28
+ # Example monorepo structure:
29
+ # .specs-fire/standards/ <- Root standards (defaults)
30
+ # packages/api/.specs-fire/standards/ <- API module overrides
31
+ # apps/mobile/.specs-fire/standards/ <- Mobile module overrides
32
+ #
33
+ # The file system IS the registry - presence of .specs-fire/standards/ defines a scope.
34
+
35
+ # Central state file (FIRE's source of truth)
36
+ state:
37
+ path: ".specs-fire/state.yaml"
38
+ description: "Central state tracking for all FIRE operations"
39
+ sections:
40
+ project:
41
+ - name: "Project name"
42
+ - description: "Project description"
43
+ - created: "ISO 8601 timestamp"
44
+ - fire_version: "FIRE flow version at project init (e.g., 0.1.8)"
45
+ workspace:
46
+ - type: "greenfield | brownfield"
47
+ - structure: "monolith | monorepo | multi-part"
48
+ - autonomy_bias: "autonomous | balanced | controlled"
49
+ - run_scope_preference: "single | batch | wide (learned from history)"
50
+ - run_scope_history: "List of recent scope choices for learning"
51
+ - scanned_at: "ISO 8601 timestamp (brownfield)"
52
+ - parts: "List of project parts (monorepo)"
53
+ intents:
54
+ - id: "Intent identifier"
55
+ - title: "Intent title"
56
+ - status: "pending | in_progress | completed"
57
+ - work_items: "List of work items"
58
+ # Each work item in intents[] has:
59
+ # - id: "Work item identifier"
60
+ # - title: "Work item title"
61
+ # - status: "pending | in_progress | completed | blocked"
62
+ # - complexity: "low | medium | high"
63
+ # - mode: "autopilot | confirm | validate (derived from complexity + autonomy_bias)"
64
+ # - depends_on: "List of work item IDs this depends on (optional)"
65
+ runs:
66
+ - active: "List of currently active runs (supports multiple parallel runs)"
67
+ - completed: "List of completed runs with id, work_item, intent, completed timestamp"
68
+ # Each run (active or completed) has:
69
+ # - id: "Run ID (e.g., run-001)"
70
+ # - scope: "single | batch | wide"
71
+ # - work_items: "List of work items in this run"
72
+ # - current_item: "Work item currently being executed (active runs only)"
73
+ # - started: "ISO 8601 timestamp"
74
+ # - completed: "ISO 8601 timestamp (completed runs only)"
75
+
76
+ # Data Conventions
77
+ conventions:
78
+ timestamps:
79
+ format: "ISO 8601 with time and timezone"
80
+ pattern: "YYYY-MM-DDTHH:MM:SSZ"
81
+ example: "2026-01-19T10:30:00Z"
82
+
83
+ # Naming Conventions
84
+ naming:
85
+ intents:
86
+ format: "{id}"
87
+ example: "user-authentication"
88
+ note: "Kebab-case, descriptive name"
89
+
90
+ work_items:
91
+ format: "{id}"
92
+ example: "login-endpoint"
93
+ note: "Kebab-case, action-oriented name"
94
+
95
+ runs:
96
+ format: "run-{NNN}/"
97
+ example: "run-001/"
98
+ note: "Sequential 3-digit number, folder per run"
99
+ contents:
100
+ - "run.md" # Run log (created by init-run.cjs)
101
+ - "plan.md" # Implementation plan (ALL modes, created BEFORE implementation)
102
+ - "test-report.md" # Test results and coverage (created AFTER tests pass)
103
+ - "review-report.md" # Code review findings (created by code-review skill)
104
+ - "walkthrough.md" # Implementation walkthrough (created at run completion)
105
+
106
+ # Schema Definition (Source of Truth for Agents)
107
+ schema:
108
+ state: ".specs-fire/state.yaml"
109
+ maintenance-log: ".specs-fire/maintenance-log.md"
110
+
111
+ # Intent Artifacts
112
+ intents: ".specs-fire/intents/{intent-id}/"
113
+ intent-brief: ".specs-fire/intents/{intent-id}/brief.md"
114
+ work-items: ".specs-fire/intents/{intent-id}/work-items/"
115
+ work-item: ".specs-fire/intents/{intent-id}/work-items/{work-item-id}.md"
116
+ design-doc: ".specs-fire/intents/{intent-id}/work-items/{work-item-id}-design.md"
117
+
118
+ # Run Artifacts
119
+ runs: ".specs-fire/runs/"
120
+ run-folder: ".specs-fire/runs/{run-id}/"
121
+ run-log: ".specs-fire/runs/{run-id}/run.md"
122
+ plan: ".specs-fire/runs/{run-id}/plan.md"
123
+ test-report: ".specs-fire/runs/{run-id}/test-report.md"
124
+ review-report: ".specs-fire/runs/{run-id}/review-report.md"
125
+ walkthrough: ".specs-fire/runs/{run-id}/walkthrough.md"
126
+
127
+ # Root Standards
128
+ standards: ".specs-fire/standards/"
129
+ constitution: ".specs-fire/standards/constitution.md"
130
+ tech-stack: ".specs-fire/standards/tech-stack.md"
131
+ coding-standards: ".specs-fire/standards/coding-standards.md"
132
+ testing-standards: ".specs-fire/standards/testing-standards.md"
133
+ system-architecture: ".specs-fire/standards/system-architecture.md"
134
+
135
+ # Module Standards (Monorepo) - paths relative to module root
136
+ module-standards: "{module-path}/.specs-fire/standards/"
137
+ module-tech-stack: "{module-path}/.specs-fire/standards/tech-stack.md"
138
+ module-coding-standards: "{module-path}/.specs-fire/standards/coding-standards.md"
139
+ module-testing-standards: "{module-path}/.specs-fire/standards/testing-standards.md"
140
+
141
+ # Agent Ownership
142
+ ownership:
143
+ orchestrator: [state]
144
+ planner: [intents, work-items, state]
145
+ builder: [runs, state]
146
+
147
+ # ─────────────────────────────────────────────────────────────────────────────────
148
+ # STANDARDS BEHAVIOR
149
+ # ─────────────────────────────────────────────────────────────────────────────────
150
+
151
+ standards_behavior:
152
+ constitution:
153
+ inheritance: always
154
+ override: never
155
+ description: |
156
+ Universal policies (git workflow, PR process, security).
157
+ ALWAYS loaded from root. Modules cannot override.
158
+
159
+ tech-stack:
160
+ inheritance: fallback
161
+ override: allowed
162
+ description: |
163
+ If module has tech-stack.md, use it.
164
+ Otherwise inherit from nearest ancestor (ultimately root).
165
+
166
+ coding-standards:
167
+ inheritance: fallback
168
+ override: allowed
169
+
170
+ testing-standards:
171
+ inheritance: fallback
172
+ override: allowed
173
+
174
+ system-architecture:
175
+ inheritance: fallback
176
+ override: allowed
177
+
178
+ # Execution Modes
179
+ execution_modes:
180
+ autopilot:
181
+ checkpoints: 0
182
+ complexity: low
183
+ description: "Direct execution, walkthrough generated after"
184
+
185
+ confirm:
186
+ checkpoints: 1
187
+ complexity: medium
188
+ description: "Plan shown, user confirms, then execution"
189
+
190
+ validate:
191
+ checkpoints: 2
192
+ complexity: high
193
+ description: "Design doc review, then plan confirmation, then execution"
194
+
195
+ # Work Item Complexity Mapping (default, when autonomy_bias = balanced)
196
+ complexity_modes:
197
+ low: autopilot
198
+ medium: confirm
199
+ high: validate
200
+
201
+ # Autonomy Bias - Shifts complexity→mode thresholds
202
+ # User preference captured at project init, stored in workspace.autonomy_bias
203
+ autonomy_bias:
204
+ autonomous:
205
+ description: "AI executes more freely, fewer checkpoints"
206
+ mapping:
207
+ low: autopilot
208
+ medium: autopilot # shifted down
209
+ high: confirm # shifted down
210
+ balanced:
211
+ description: "Standard checkpoints based on complexity"
212
+ mapping:
213
+ low: autopilot
214
+ medium: confirm
215
+ high: validate
216
+ controlled:
217
+ description: "More human oversight, more checkpoints"
218
+ mapping:
219
+ low: confirm # shifted up
220
+ medium: validate # shifted up
221
+ high: validate
222
+
223
+ # Run Scope - How many work items to execute in a single run
224
+ # Learned from user choices, stored in workspace.run_scope_preference
225
+ run_scope:
226
+ single:
227
+ description: "One work item per run, most controlled"
228
+ grouping: "Each item in its own run"
229
+ batch:
230
+ description: "Group items by mode, respect dependencies"
231
+ grouping: "Autopilot together, confirm together, etc."
232
+ wide:
233
+ description: "Maximum items per run, minimal interruption"
234
+ grouping: "All compatible items together"
235
+
236
+ # Run scope history entry format
237
+ run_scope_history_entry:
238
+ choice: "single | batch | wide"
239
+ items_count: "Number of items in the run"
240
+ timestamp: "ISO 8601 timestamp"