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,164 @@
|
|
|
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, testing-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
|
+
- run_scope_preference: "single | batch | wide (learned from history)"
|
|
31
|
+
- run_scope_history: "List of recent scope choices for learning"
|
|
32
|
+
- scanned_at: "ISO 8601 timestamp (brownfield)"
|
|
33
|
+
- parts: "List of project parts (monorepo)"
|
|
34
|
+
intents:
|
|
35
|
+
- id: "Intent identifier"
|
|
36
|
+
- title: "Intent title"
|
|
37
|
+
- status: "pending | in_progress | completed"
|
|
38
|
+
- work_items: "List of work items"
|
|
39
|
+
active_run:
|
|
40
|
+
- id: "Current run ID"
|
|
41
|
+
- scope: "single | batch | wide"
|
|
42
|
+
- work_items: "List of work items in this run"
|
|
43
|
+
- current_item: "Work item currently being executed"
|
|
44
|
+
- started: "ISO 8601 timestamp"
|
|
45
|
+
runs:
|
|
46
|
+
- completed: "List of completed runs with id, work_item, intent, completed timestamp"
|
|
47
|
+
|
|
48
|
+
# Data Conventions
|
|
49
|
+
conventions:
|
|
50
|
+
timestamps:
|
|
51
|
+
format: "ISO 8601 with time and timezone"
|
|
52
|
+
pattern: "YYYY-MM-DDTHH:MM:SSZ"
|
|
53
|
+
example: "2026-01-19T10:30:00Z"
|
|
54
|
+
|
|
55
|
+
# Naming Conventions
|
|
56
|
+
naming:
|
|
57
|
+
intents:
|
|
58
|
+
format: "{id}"
|
|
59
|
+
example: "user-authentication"
|
|
60
|
+
note: "Kebab-case, descriptive name"
|
|
61
|
+
|
|
62
|
+
work_items:
|
|
63
|
+
format: "{id}"
|
|
64
|
+
example: "login-endpoint"
|
|
65
|
+
note: "Kebab-case, action-oriented name"
|
|
66
|
+
|
|
67
|
+
runs:
|
|
68
|
+
format: "run-{NNN}/"
|
|
69
|
+
example: "run-001/"
|
|
70
|
+
note: "Sequential 3-digit number, folder per run"
|
|
71
|
+
contents:
|
|
72
|
+
- "plan.md" # Approved implementation plan (confirm/validate modes)
|
|
73
|
+
- "run.md" # Run log
|
|
74
|
+
- "test-report.md" # Test results and coverage
|
|
75
|
+
- "walkthrough.md" # Implementation walkthrough
|
|
76
|
+
|
|
77
|
+
# Schema Definition (Source of Truth for Agents)
|
|
78
|
+
schema:
|
|
79
|
+
state: ".specs-fire/state.yaml"
|
|
80
|
+
intents: ".specs-fire/intents/{intent-id}/"
|
|
81
|
+
intent-brief: ".specs-fire/intents/{intent-id}/brief.md"
|
|
82
|
+
work-items: ".specs-fire/intents/{intent-id}/work-items/"
|
|
83
|
+
work-item: ".specs-fire/intents/{intent-id}/work-items/{work-item-id}.md"
|
|
84
|
+
runs: ".specs-fire/runs/"
|
|
85
|
+
run-folder: ".specs-fire/runs/{run-id}/"
|
|
86
|
+
plan: ".specs-fire/runs/{run-id}/plan.md"
|
|
87
|
+
run-log: ".specs-fire/runs/{run-id}/run.md"
|
|
88
|
+
test-report: ".specs-fire/runs/{run-id}/test-report.md"
|
|
89
|
+
walkthrough: ".specs-fire/runs/{run-id}/walkthrough.md"
|
|
90
|
+
standards: ".specs-fire/standards/"
|
|
91
|
+
tech-stack: ".specs-fire/standards/tech-stack.md"
|
|
92
|
+
coding-standards: ".specs-fire/standards/coding-standards.md"
|
|
93
|
+
testing-standards: ".specs-fire/standards/testing-standards.md"
|
|
94
|
+
system-architecture: ".specs-fire/standards/system-architecture.md"
|
|
95
|
+
|
|
96
|
+
# Agent Ownership
|
|
97
|
+
ownership:
|
|
98
|
+
orchestrator: [state]
|
|
99
|
+
planner: [intents, work-items, state]
|
|
100
|
+
builder: [runs, state]
|
|
101
|
+
|
|
102
|
+
# Execution Modes
|
|
103
|
+
execution_modes:
|
|
104
|
+
autopilot:
|
|
105
|
+
checkpoints: 0
|
|
106
|
+
complexity: low
|
|
107
|
+
description: "Direct execution, walkthrough generated after"
|
|
108
|
+
|
|
109
|
+
confirm:
|
|
110
|
+
checkpoints: 1
|
|
111
|
+
complexity: medium
|
|
112
|
+
description: "Plan shown, user confirms, then execution"
|
|
113
|
+
|
|
114
|
+
validate:
|
|
115
|
+
checkpoints: 2
|
|
116
|
+
complexity: high
|
|
117
|
+
description: "Design doc review, then plan confirmation, then execution"
|
|
118
|
+
|
|
119
|
+
# Work Item Complexity Mapping (default, when autonomy_bias = balanced)
|
|
120
|
+
complexity_modes:
|
|
121
|
+
low: autopilot
|
|
122
|
+
medium: confirm
|
|
123
|
+
high: validate
|
|
124
|
+
|
|
125
|
+
# Autonomy Bias - Shifts complexity→mode thresholds
|
|
126
|
+
# User preference captured at project init, stored in workspace.autonomy_bias
|
|
127
|
+
autonomy_bias:
|
|
128
|
+
autonomous:
|
|
129
|
+
description: "AI executes more freely, fewer checkpoints"
|
|
130
|
+
mapping:
|
|
131
|
+
low: autopilot
|
|
132
|
+
medium: autopilot # shifted down
|
|
133
|
+
high: confirm # shifted down
|
|
134
|
+
balanced:
|
|
135
|
+
description: "Standard checkpoints based on complexity"
|
|
136
|
+
mapping:
|
|
137
|
+
low: autopilot
|
|
138
|
+
medium: confirm
|
|
139
|
+
high: validate
|
|
140
|
+
controlled:
|
|
141
|
+
description: "More human oversight, more checkpoints"
|
|
142
|
+
mapping:
|
|
143
|
+
low: confirm # shifted up
|
|
144
|
+
medium: validate # shifted up
|
|
145
|
+
high: validate
|
|
146
|
+
|
|
147
|
+
# Run Scope - How many work items to execute in a single run
|
|
148
|
+
# Learned from user choices, stored in workspace.run_scope_preference
|
|
149
|
+
run_scope:
|
|
150
|
+
single:
|
|
151
|
+
description: "One work item per run, most controlled"
|
|
152
|
+
grouping: "Each item in its own run"
|
|
153
|
+
batch:
|
|
154
|
+
description: "Group items by mode, respect dependencies"
|
|
155
|
+
grouping: "Autopilot together, confirm together, etc."
|
|
156
|
+
wide:
|
|
157
|
+
description: "Maximum items per run, minimal interruption"
|
|
158
|
+
grouping: "All compatible items together"
|
|
159
|
+
|
|
160
|
+
# Run scope history entry format
|
|
161
|
+
run_scope_history_entry:
|
|
162
|
+
choice: "single | batch | wide"
|
|
163
|
+
items_count: "Number of items in the run"
|
|
164
|
+
timestamp: "ISO 8601 timestamp"
|
|
@@ -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.
|