specsmd 0.0.0-dev.5 → 0.0.0-dev.50

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 (62) hide show
  1. package/README.md +10 -2
  2. package/flows/aidlc/commands/construction-agent.md +5 -1
  3. package/flows/aidlc/commands/inception-agent.md +4 -0
  4. package/flows/aidlc/commands/master-agent.md +4 -0
  5. package/flows/aidlc/commands/operations-agent.md +4 -0
  6. package/flows/aidlc/memory-bank.yaml +2 -1
  7. package/{scripts → flows/aidlc/scripts}/artifact-validator.js +3 -3
  8. package/{scripts → flows/aidlc/scripts}/bolt-complete.js +35 -4
  9. package/{scripts → flows/aidlc/scripts}/status-integrity.js +4 -4
  10. package/flows/aidlc/skills/construction/bolt-list.md +1 -1
  11. package/flows/aidlc/skills/construction/bolt-start.md +2 -2
  12. package/flows/aidlc/skills/construction/bolt-status.md +1 -1
  13. package/flows/aidlc/skills/construction/prototype-apply.md +305 -0
  14. package/flows/aidlc/skills/inception/bolt-plan.md +15 -2
  15. package/flows/aidlc/skills/inception/vibe-to-spec.md +406 -0
  16. package/flows/aidlc/skills/master/analyze-context.md +1 -1
  17. package/flows/aidlc/templates/construction/bolt-template.md +22 -1
  18. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt.md +73 -11
  19. package/flows/aidlc/templates/construction/bolt-types/simple-construction-bolt.md +5 -0
  20. package/flows/aidlc/templates/standards/decision-index-template.md +32 -0
  21. package/flows/fire/README.md +19 -0
  22. package/flows/fire/agents/builder/agent.md +192 -0
  23. package/flows/fire/agents/builder/skills/run-execute/SKILL.md +221 -0
  24. package/flows/fire/agents/builder/skills/run-execute/scripts/complete-run.ts +806 -0
  25. package/flows/fire/agents/builder/skills/run-execute/scripts/init-run.ts +575 -0
  26. package/flows/fire/agents/builder/skills/run-status/SKILL.md +94 -0
  27. package/flows/fire/agents/builder/skills/walkthrough-generate/SKILL.md +140 -0
  28. package/flows/fire/agents/builder/skills/walkthrough-generate/scripts/render-walkthrough.ts +755 -0
  29. package/flows/fire/agents/orchestrator/agent.md +113 -0
  30. package/flows/fire/agents/orchestrator/skills/project-init/SKILL.md +141 -0
  31. package/flows/fire/agents/orchestrator/skills/route/SKILL.md +126 -0
  32. package/flows/fire/agents/orchestrator/skills/status/SKILL.md +99 -0
  33. package/flows/fire/agents/planner/agent.md +122 -0
  34. package/flows/fire/agents/planner/skills/design-doc-generate/SKILL.md +212 -0
  35. package/flows/fire/agents/planner/skills/intent-capture/SKILL.md +155 -0
  36. package/flows/fire/agents/planner/skills/work-item-decompose/SKILL.md +193 -0
  37. package/flows/fire/commands/fire-builder.md +56 -0
  38. package/flows/fire/commands/fire-planner.md +48 -0
  39. package/flows/fire/commands/fire.md +46 -0
  40. package/flows/fire/memory-bank.yaml +131 -0
  41. package/flows/fire/quick-start.md +130 -0
  42. package/flows/simple/README.md +190 -0
  43. package/flows/simple/agents/agent.md +404 -0
  44. package/flows/simple/commands/agent.md +60 -0
  45. package/flows/simple/context-config.yaml +34 -0
  46. package/flows/simple/memory-bank.yaml +66 -0
  47. package/flows/simple/quick-start.md +231 -0
  48. package/flows/simple/skills/design.md +96 -0
  49. package/flows/simple/skills/execute.md +190 -0
  50. package/flows/simple/skills/requirements.md +94 -0
  51. package/flows/simple/skills/tasks.md +136 -0
  52. package/flows/simple/templates/design-template.md +138 -0
  53. package/flows/simple/templates/requirements-template.md +85 -0
  54. package/flows/simple/templates/tasks-template.md +104 -0
  55. package/lib/analytics/tracker.js +6 -2
  56. package/lib/constants.js +10 -7
  57. package/lib/installer.js +3 -14
  58. package/lib/installers/KiroInstaller.js +55 -0
  59. package/lib/installers/OpenCodeInstaller.js +9 -1
  60. package/lib/installers/ToolInstaller.js +4 -1
  61. package/lib/installers/WindsurfInstaller.js +0 -54
  62. package/package.json +3 -52
@@ -0,0 +1,131 @@
1
+ # FIRE Flow Configuration
2
+ # Fast Intent-Run Engineering - Simplified AI-native development
3
+
4
+ # Artifact folder (created at project initialization)
5
+ artifact_root: ".specs-fire"
6
+
7
+ # Structure created at project initialization
8
+ structure:
9
+ - path: intents/
10
+ description: "High-level objectives that deliver user value"
11
+ - path: runs/
12
+ description: "Execution logs and walkthroughs per run"
13
+ - path: standards/
14
+ description: "Project standards (tech-stack, coding-standards)"
15
+
16
+ # Central state file (FIRE's source of truth)
17
+ state:
18
+ path: ".specs-fire/state.yaml"
19
+ description: "Central state tracking for all FIRE operations"
20
+ sections:
21
+ project:
22
+ - name: "Project name"
23
+ - description: "Project description"
24
+ - created: "ISO 8601 timestamp"
25
+ - framework: "fire-v1"
26
+ workspace:
27
+ - type: "greenfield | brownfield"
28
+ - structure: "monolith | monorepo | multi-part"
29
+ - autonomy_bias: "autonomous | balanced | controlled"
30
+ - scanned_at: "ISO 8601 timestamp (brownfield)"
31
+ - parts: "List of project parts (monorepo)"
32
+ intents:
33
+ - id: "Intent identifier"
34
+ - title: "Intent title"
35
+ - status: "pending | in_progress | completed"
36
+ - work_items: "List of work items"
37
+ active_run:
38
+ - id: "Current run ID"
39
+ - work_item: "Work item being executed"
40
+ - started: "ISO 8601 timestamp"
41
+
42
+ # Data Conventions
43
+ conventions:
44
+ timestamps:
45
+ format: "ISO 8601 with time and timezone"
46
+ pattern: "YYYY-MM-DDTHH:MM:SSZ"
47
+ example: "2026-01-19T10:30:00Z"
48
+
49
+ # Naming Conventions
50
+ naming:
51
+ intents:
52
+ format: "{id}"
53
+ example: "user-authentication"
54
+ note: "Kebab-case, descriptive name"
55
+
56
+ work_items:
57
+ format: "{id}"
58
+ example: "login-endpoint"
59
+ note: "Kebab-case, action-oriented name"
60
+
61
+ runs:
62
+ format: "run-{NNN}/"
63
+ example: "run-001/"
64
+ note: "Sequential 3-digit number, folder per run"
65
+ contents:
66
+ - "run.md" # Run log
67
+ - "walkthrough.md" # Implementation walkthrough
68
+
69
+ # Schema Definition (Source of Truth for Agents)
70
+ schema:
71
+ state: ".specs-fire/state.yaml"
72
+ intents: ".specs-fire/intents/{intent-id}/"
73
+ intent-brief: ".specs-fire/intents/{intent-id}/brief.md"
74
+ work-items: ".specs-fire/intents/{intent-id}/work-items/"
75
+ work-item: ".specs-fire/intents/{intent-id}/work-items/{work-item-id}.md"
76
+ runs: ".specs-fire/runs/"
77
+ run-folder: ".specs-fire/runs/{run-id}/"
78
+ run-log: ".specs-fire/runs/{run-id}/run.md"
79
+ walkthrough: ".specs-fire/runs/{run-id}/walkthrough.md"
80
+ standards: ".specs-fire/standards/"
81
+
82
+ # Agent Ownership
83
+ ownership:
84
+ orchestrator: [state]
85
+ planner: [intents, work-items, state]
86
+ builder: [runs, state]
87
+
88
+ # Execution Modes
89
+ execution_modes:
90
+ autopilot:
91
+ checkpoints: 0
92
+ complexity: low
93
+ description: "Direct execution, walkthrough generated after"
94
+
95
+ confirm:
96
+ checkpoints: 1
97
+ complexity: medium
98
+ description: "Plan shown, user confirms, then execution"
99
+
100
+ validate:
101
+ checkpoints: 2
102
+ complexity: high
103
+ description: "Design doc review, then plan confirmation, then execution"
104
+
105
+ # Work Item Complexity Mapping (default, when autonomy_bias = balanced)
106
+ complexity_modes:
107
+ low: autopilot
108
+ medium: confirm
109
+ high: validate
110
+
111
+ # Autonomy Bias - Shifts complexity→mode thresholds
112
+ # User preference captured at project init, stored in workspace.autonomy_bias
113
+ autonomy_bias:
114
+ autonomous:
115
+ description: "AI executes more freely, fewer checkpoints"
116
+ mapping:
117
+ low: autopilot
118
+ medium: autopilot # shifted down
119
+ high: confirm # shifted down
120
+ balanced:
121
+ description: "Standard checkpoints based on complexity"
122
+ mapping:
123
+ low: autopilot
124
+ medium: confirm
125
+ high: validate
126
+ controlled:
127
+ description: "More human oversight, more checkpoints"
128
+ mapping:
129
+ low: confirm # shifted up
130
+ medium: validate # shifted up
131
+ high: validate
@@ -0,0 +1,130 @@
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
+ ## Project Structure
35
+
36
+ When initialized, FIRE creates:
37
+
38
+ ```
39
+ .specs-fire/
40
+ ├── state.yaml # Central state (source of truth)
41
+ ├── intents/ # Intent briefs and work items
42
+ │ └── {intent-id}/
43
+ │ ├── brief.md
44
+ │ └── work-items/
45
+ │ └── {work-item-id}.md
46
+ ├── runs/ # Run logs and walkthroughs
47
+ │ └── {run-id}/
48
+ │ ├── run.md
49
+ │ └── walkthrough.md
50
+ └── standards/ # Project standards
51
+ ├── tech-stack.md
52
+ └── coding-standards.md
53
+ ```
54
+
55
+ ## Agents
56
+
57
+ ### Orchestrator (`/specsmd-fire`)
58
+
59
+ Routes users based on project state:
60
+ - New project → Initialize
61
+ - No intent → Capture intent
62
+ - No work items → Decompose
63
+ - Pending work → Execute
64
+
65
+ ### Planner (`/specsmd-fire-planner`)
66
+
67
+ Handles planning:
68
+ - **intent-capture** — Capture user intent through conversation
69
+ - **work-item-decompose** — Break intent into executable work items
70
+ - **design-doc-generate** — Create design docs for Validate mode
71
+
72
+ ### Builder (`/specsmd-fire-builder`)
73
+
74
+ Handles execution:
75
+ - **run-execute** — Execute work items with mode-appropriate checkpoints
76
+ - **walkthrough-generate** — Generate implementation documentation
77
+ - **run-status** — Show current run progress
78
+
79
+ ## Flow Directory Structure
80
+
81
+ ```
82
+ src/flows/fire/
83
+ ├── agents/
84
+ │ ├── orchestrator/
85
+ │ │ ├── agent.md
86
+ │ │ └── skills/
87
+ │ │ ├── project-init/
88
+ │ │ ├── route/
89
+ │ │ └── status/
90
+ │ ├── planner/
91
+ │ │ ├── agent.md
92
+ │ │ └── skills/
93
+ │ │ ├── intent-capture/
94
+ │ │ ├── work-item-decompose/
95
+ │ │ └── design-doc-generate/
96
+ │ └── builder/
97
+ │ ├── agent.md
98
+ │ └── skills/
99
+ │ ├── run-execute/
100
+ │ ├── walkthrough-generate/
101
+ │ └── run-status/
102
+ ├── commands/
103
+ │ ├── fire.md
104
+ │ ├── fire-planner.md
105
+ │ └── fire-builder.md
106
+ ├── templates/
107
+ │ ├── intents/
108
+ │ ├── runs/
109
+ │ └── standards/
110
+ ├── memory-bank.yaml
111
+ └── quick-start.md
112
+ ```
113
+
114
+ ## Comparison with AI-DLC
115
+
116
+ | Aspect | AI-DLC | FIRE |
117
+ |--------|--------|------|
118
+ | Hierarchy | Intent → Unit → Story | Intent → Work Item |
119
+ | Checkpoints | 10-26 per feature | 0-2 per work item |
120
+ | Phases | Inception → Construction → Operations | Plan → Execute |
121
+ | Artifacts | Extensive | Minimal |
122
+ | Best for | Large initiatives, teams | Rapid delivery, individuals |
123
+
124
+ ## Configuration
125
+
126
+ See `memory-bank.yaml` for:
127
+ - Artifact paths
128
+ - Naming conventions
129
+ - Execution modes
130
+ - 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.