@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,146 @@
1
+ # FIRE Flow
2
+
3
+ **Fast Intent-Run Engineering** — A simplified AI-native development methodology.
4
+
5
+ ## Overview
6
+
7
+ FIRE reduces the complexity of AI-assisted development by flattening the hierarchy:
8
+
9
+ ```
10
+ Intent → Work Item → Run
11
+ ```
12
+
13
+ Unlike traditional methodologies with 10-26 checkpoints, FIRE uses adaptive checkpoints (0-2) based on work item complexity.
14
+
15
+ ## Quick Start
16
+
17
+ ```bash
18
+ # Initialize FIRE in your project
19
+ /specsmd-fire
20
+
21
+ # Or directly invoke specific agents
22
+ /specsmd-fire-planner # For planning work
23
+ /specsmd-fire-builder # For executing work
24
+ ```
25
+
26
+ ## Execution Modes
27
+
28
+ | Mode | Checkpoints | Complexity | Use For |
29
+ |------|-------------|------------|---------|
30
+ | **Autopilot** | 0 | Low | Bug fixes, minor updates |
31
+ | **Confirm** | 1 | Medium | Standard features |
32
+ | **Validate** | 2 | High | Security, payments, architecture |
33
+
34
+ ## Run Scope
35
+
36
+ Run scope determines how many work items execute in a single run:
37
+
38
+ | Scope | Description | Grouping |
39
+ |-------|-------------|----------|
40
+ | **Single** | One work item per run, most controlled | Each item in its own run |
41
+ | **Batch** | Group items by mode, respect dependencies | Autopilot together, confirm together |
42
+ | **Wide** | Maximum items per run, minimal interruption | All compatible items together |
43
+
44
+ The system learns your preference from run history and stores it in `workspace.run_scope_preference`.
45
+
46
+ ## Project Structure
47
+
48
+ When initialized, FIRE creates:
49
+
50
+ ```
51
+ .specs-fire/
52
+ ├── state.yaml # Central state (source of truth)
53
+ ├── intents/ # Intent briefs and work items
54
+ │ └── {intent-id}/
55
+ │ ├── brief.md
56
+ │ └── work-items/
57
+ │ └── {work-item-id}.md
58
+ ├── runs/ # Run logs and walkthroughs
59
+ │ └── {run-id}/
60
+ │ ├── run.md
61
+ │ └── walkthrough.md
62
+ └── standards/ # Project standards
63
+ ├── tech-stack.md
64
+ └── coding-standards.md
65
+ ```
66
+
67
+ ## Agents
68
+
69
+ ### Orchestrator (`/specsmd-fire`)
70
+
71
+ Routes users based on project state:
72
+
73
+ - New project → Initialize
74
+ - No intent → Capture intent
75
+ - No work items → Decompose
76
+ - Pending work → Execute
77
+
78
+ ### Planner (`/specsmd-fire-planner`)
79
+
80
+ Handles planning:
81
+
82
+ - **intent-capture** — Capture user intent through conversation
83
+ - **work-item-decompose** — Break intent into executable work items
84
+ - **design-doc-generate** — Create design docs for Validate mode
85
+
86
+ ### Builder (`/specsmd-fire-builder`)
87
+
88
+ Handles execution:
89
+
90
+ - **run-execute** — Execute work items with mode-appropriate checkpoints
91
+ - **walkthrough-generate** — Generate implementation documentation
92
+ - **run-status** — Show current run progress
93
+
94
+ ## Flow Directory Structure
95
+
96
+ ```
97
+ src/flows/fire/
98
+ ├── agents/
99
+ │ ├── orchestrator/
100
+ │ │ ├── agent.md
101
+ │ │ └── skills/
102
+ │ │ ├── project-init/
103
+ │ │ ├── route/
104
+ │ │ └── status/
105
+ │ ├── planner/
106
+ │ │ ├── agent.md
107
+ │ │ └── skills/
108
+ │ │ ├── intent-capture/
109
+ │ │ ├── work-item-decompose/
110
+ │ │ └── design-doc-generate/
111
+ │ └── builder/
112
+ │ ├── agent.md
113
+ │ └── skills/
114
+ │ ├── run-execute/
115
+ │ ├── walkthrough-generate/
116
+ │ └── run-status/
117
+ ├── commands/
118
+ │ ├── fire.md
119
+ │ ├── fire-planner.md
120
+ │ └── fire-builder.md
121
+ ├── templates/
122
+ │ ├── intents/
123
+ │ ├── runs/
124
+ │ └── standards/
125
+ ├── memory-bank.yaml
126
+ └── quick-start.md
127
+ ```
128
+
129
+ ## Comparison with AI-DLC
130
+
131
+ | Aspect | AI-DLC | FIRE |
132
+ |--------|--------|------|
133
+ | Hierarchy | Intent → Unit → Story | Intent → Work Item |
134
+ | Checkpoints | 10-26 per feature | 0-2 per work item |
135
+ | Phases | Inception → Construction → Operations | Plan → Execute |
136
+ | Artifacts | Extensive | Minimal |
137
+ | Best for | Large initiatives, teams | Rapid delivery, individuals |
138
+
139
+ ## Configuration
140
+
141
+ See `memory-bank.yaml` for:
142
+
143
+ - Artifact paths
144
+ - Naming conventions
145
+ - Execution modes
146
+ - Agent ownership
@@ -0,0 +1,190 @@
1
+ # Simple Flow - Spec-Driven Development
2
+
3
+ A lightweight flow for creating feature specifications using spec-driven development.
4
+
5
+ ## What is Simple Flow?
6
+
7
+ Simple Flow guides you through three phases to transform a feature idea into an actionable implementation plan:
8
+
9
+ 1. **Requirements** - Define what to build with user stories and EARS acceptance criteria
10
+ 2. **Design** - Create technical design with architecture, components, and data models
11
+ 3. **Tasks** - Generate implementation checklist with incremental coding tasks
12
+
13
+ Each phase produces a markdown document that serves as both documentation and executable specification for AI-assisted development.
14
+
15
+ ## When to Use Simple Flow
16
+
17
+ ### Use Simple Flow when
18
+
19
+ - You need quick feature specs without full methodology overhead
20
+ - Building prototypes or small-to-medium features
21
+ - You want structured documentation but not full AI-DLC complexity
22
+ - Working solo or in small teams
23
+ - Rapid iteration is more important than comprehensive process
24
+
25
+ ### Use AI-DLC Flow when
26
+
27
+ - Building complex, multi-team features
28
+ - You need full DDD stages and bolt management
29
+ - Following strict AI-DLC methodology with intents/units/stories
30
+ - Production systems requiring full traceability
31
+ - Team coordination with formal handoffs
32
+
33
+ ## Quick Start
34
+
35
+ ### 1. Create a New Spec
36
+
37
+ Invoke the spec agent with your feature idea:
38
+
39
+ ```text
40
+ /specsmd-agent Create a user authentication system with email login
41
+ ```
42
+
43
+ ### 2. Review and Approve Requirements
44
+
45
+ The agent generates a requirements document with:
46
+
47
+ - Introduction summarizing the feature
48
+ - Glossary of domain terms
49
+ - User stories with EARS acceptance criteria
50
+
51
+ Review and provide feedback, or approve to continue.
52
+
53
+ ### 3. Review and Approve Design
54
+
55
+ After requirements approval, the agent generates:
56
+
57
+ - Architecture overview with diagrams
58
+ - Component interfaces
59
+ - Data models with validation rules
60
+ - Error handling strategies
61
+ - Testing strategy
62
+
63
+ Review and provide feedback, or approve to continue.
64
+
65
+ ### 4. Review and Approve Tasks
66
+
67
+ After design approval, the agent generates:
68
+
69
+ - Numbered checkbox task list
70
+ - Incremental implementation steps
71
+ - Requirement references for traceability
72
+ - Checkpoint tasks for verification
73
+
74
+ ### 5. Execute Tasks
75
+
76
+ Once all three documents are approved:
77
+
78
+ ```text
79
+ /specsmd-agent --spec="user-auth" --execute
80
+ ```
81
+
82
+ Or ask: "What's the next task for user-auth?"
83
+
84
+ ## Output Structure
85
+
86
+ ```text
87
+ specs/
88
+ └── {feature-name}/
89
+ ├── requirements.md # Phase 1: What to build
90
+ ├── design.md # Phase 2: How to build it
91
+ └── tasks.md # Phase 3: Step-by-step plan
92
+ ```
93
+
94
+ ## EARS Format
95
+
96
+ Requirements use EARS (Easy Approach to Requirements Syntax) patterns:
97
+
98
+ | Pattern | Format | Example |
99
+ |---------|--------|---------|
100
+ | **Event-driven** | WHEN [trigger], THE [system] SHALL [response] | WHEN user clicks login, THE Auth_System SHALL validate credentials |
101
+ | **State-driven** | WHILE [condition], THE [system] SHALL [response] | WHILE session is active, THE Auth_System SHALL refresh tokens |
102
+ | **Unwanted** | IF [condition], THEN THE [system] SHALL [response] | IF password is invalid, THEN THE Auth_System SHALL display error |
103
+ | **Optional** | WHERE [option], THE [system] SHALL [response] | WHERE MFA is enabled, THE Auth_System SHALL require second factor |
104
+
105
+ ## Key Principles
106
+
107
+ ### Generate First, Ask Later
108
+
109
+ The agent generates a draft document immediately based on your feature idea. This serves as a starting point for discussion rather than requiring extensive Q&A upfront.
110
+
111
+ ### Explicit Approval Gates
112
+
113
+ You must explicitly approve each phase before proceeding. Say "yes", "approved", or "looks good" to continue. Any feedback triggers revision.
114
+
115
+ ### One Phase at a Time
116
+
117
+ The agent focuses on one document per interaction. This ensures thorough review and prevents overwhelming changes.
118
+
119
+ ### One Task at a Time
120
+
121
+ During execution, only one task is implemented per interaction. This allows careful review of each change.
122
+
123
+ ## File Structure
124
+
125
+ ```text
126
+ src/flows/simple/
127
+ ├── README.md # This file
128
+ ├── memory-bank.yaml # Storage configuration
129
+ ├── context-config.yaml # Context loading rules
130
+ ├── agents/
131
+ │ └── agent.md # Agent definition
132
+ ├── commands/
133
+ │ └── agent.md # Command definition
134
+ ├── skills/
135
+ │ ├── requirements.md # Phase 1 skill
136
+ │ ├── design.md # Phase 2 skill
137
+ │ ├── tasks.md # Phase 3 skill
138
+ │ └── execute.md # Task execution skill
139
+ └── templates/
140
+ ├── requirements-template.md
141
+ ├── design-template.md
142
+ └── tasks-template.md
143
+ ```
144
+
145
+ ## Comparison with AI-DLC
146
+
147
+ | Aspect | Simple Flow | AI-DLC Flow |
148
+ |--------|-------------|-------------|
149
+ | **Target** | Quick feature specs | Full development lifecycle |
150
+ | **Phases** | 3: Requirements → Design → Tasks | 3: Inception → Construction → Operations |
151
+ | **Agents** | 1 (Agent) | 4 (Master, Inception, Construction, Operations) |
152
+ | **Output** | 3 markdown files | Full artifact hierarchy |
153
+ | **DDD Stages** | Not included | Full DDD stages in Construction |
154
+ | **Bolts** | No concept | Time-boxed execution sessions |
155
+ | **Hierarchy** | Flat (specs/) | Nested (intents/units/stories) |
156
+ | **Overhead** | Minimal | Significant structure |
157
+
158
+ ## Tips for Success
159
+
160
+ ### Requirements Phase
161
+
162
+ - Be specific about user roles and their needs
163
+ - Include edge cases in acceptance criteria
164
+ - Define all domain terms in the glossary
165
+ - Aim for 3-7 requirements per feature
166
+
167
+ ### Design Phase
168
+
169
+ - Ensure every requirement is addressed
170
+ - Use Mermaid diagrams for architecture
171
+ - Be explicit about error handling
172
+ - Define validation rules for all data
173
+
174
+ ### Tasks Phase
175
+
176
+ - Each task should be completable in one session
177
+ - Include test tasks (mark optional with *)
178
+ - Add checkpoint tasks to verify progress
179
+ - Reference specific requirements for traceability
180
+
181
+ ### Execution Phase
182
+
183
+ - Read all three spec files before starting
184
+ - Execute tasks in order (prerequisites first)
185
+ - Review changes after each task
186
+ - Update task status as you complete
187
+
188
+ ## Attribution
189
+
190
+ Simple Flow implements spec-driven development for the specsmd framework.