specflow-cc 1.1.0 → 1.3.0
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/CHANGELOG.md +29 -1
- package/README.md +43 -43
- package/agents/codebase-scanner.md +1 -1
- package/agents/impl-reviewer.md +6 -6
- package/agents/spec-auditor.md +5 -5
- package/agents/spec-creator.md +5 -5
- package/agents/spec-executor.md +2 -2
- package/agents/spec-reviser.md +2 -2
- package/agents/spec-splitter.md +1 -1
- package/commands/sf/audit.md +47 -11
- package/commands/sf/deps.md +9 -9
- package/commands/sf/done.md +8 -8
- package/commands/sf/fix.md +13 -7
- package/commands/sf/help.md +63 -63
- package/commands/sf/history.md +8 -8
- package/commands/sf/init.md +4 -4
- package/commands/sf/list.md +5 -5
- package/commands/sf/metrics.md +5 -5
- package/commands/sf/new.md +9 -7
- package/commands/sf/next.md +13 -13
- package/commands/sf/pause.md +2 -2
- package/commands/sf/plan.md +8 -8
- package/commands/sf/priority.md +2 -2
- package/commands/sf/resume.md +5 -5
- package/commands/sf/review.md +56 -13
- package/commands/sf/revise.md +12 -6
- package/commands/sf/run.md +11 -5
- package/commands/sf/scan.md +3 -3
- package/commands/sf/show.md +13 -13
- package/commands/sf/split.md +7 -7
- package/commands/sf/status.md +10 -10
- package/commands/sf/todo.md +5 -5
- package/commands/sf/todos.md +6 -6
- package/package.json +1 -1
- package/templates/audit.md +1 -1
- package/templates/scan.md +1 -1
- package/templates/spec.md +1 -1
- package/templates/state.md +1 -1
package/commands/sf/fix.md
CHANGED
|
@@ -34,7 +34,7 @@ Fix the implementation based on review feedback. Can apply all fixes, specific n
|
|
|
34
34
|
```
|
|
35
35
|
SpecFlow not initialized.
|
|
36
36
|
|
|
37
|
-
Run `/sf
|
|
37
|
+
Run `/sf:init` first.
|
|
38
38
|
```
|
|
39
39
|
Exit.
|
|
40
40
|
|
|
@@ -46,7 +46,7 @@ Read `.specflow/STATE.md` and extract Active Specification.
|
|
|
46
46
|
```
|
|
47
47
|
No active specification to fix.
|
|
48
48
|
|
|
49
|
-
Run `/sf
|
|
49
|
+
Run `/sf:new "task description"` to create one.
|
|
50
50
|
```
|
|
51
51
|
Exit.
|
|
52
52
|
|
|
@@ -59,7 +59,7 @@ Read the active spec file: `.specflow/specs/SPEC-XXX.md`
|
|
|
59
59
|
Specification SPEC-XXX is not in review status (status: {status}).
|
|
60
60
|
|
|
61
61
|
{If not yet run:}
|
|
62
|
-
Run `/sf
|
|
62
|
+
Run `/sf:run` first to implement the specification.
|
|
63
63
|
|
|
64
64
|
{If already done:}
|
|
65
65
|
Specification already completed.
|
|
@@ -74,7 +74,7 @@ Find the most recent "Review v[N]" section in Review History.
|
|
|
74
74
|
```
|
|
75
75
|
Specification SPEC-XXX has no review history.
|
|
76
76
|
|
|
77
|
-
Run `/sf
|
|
77
|
+
Run `/sf:review` first to get feedback.
|
|
78
78
|
```
|
|
79
79
|
Exit.
|
|
80
80
|
|
|
@@ -165,7 +165,7 @@ Append to Review History:
|
|
|
165
165
|
## Step 8: Update STATE.md
|
|
166
166
|
|
|
167
167
|
- Status → "review" (ready for re-review)
|
|
168
|
-
- Next Step → "/sf
|
|
168
|
+
- Next Step → "/sf:review"
|
|
169
169
|
|
|
170
170
|
## Step 9: Display Result
|
|
171
171
|
|
|
@@ -191,9 +191,15 @@ Append to Review History:
|
|
|
191
191
|
|
|
192
192
|
---
|
|
193
193
|
|
|
194
|
+
📄 File: .specflow/specs/SPEC-XXX.md
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
194
198
|
## Next Step
|
|
195
199
|
|
|
196
|
-
`/sf
|
|
200
|
+
`/sf:review` — re-review to verify fixes
|
|
201
|
+
|
|
202
|
+
<sub>/clear recommended → reviewer needs fresh context</sub>
|
|
197
203
|
```
|
|
198
204
|
|
|
199
205
|
</workflow>
|
|
@@ -256,7 +262,7 @@ Append to Review History.
|
|
|
256
262
|
### Update STATE.md
|
|
257
263
|
|
|
258
264
|
- Status → "review"
|
|
259
|
-
- Next Step → "/sf
|
|
265
|
+
- Next Step → "/sf:review"
|
|
260
266
|
|
|
261
267
|
</fallback>
|
|
262
268
|
|
package/commands/sf/help.md
CHANGED
|
@@ -38,7 +38,7 @@ Check if command exists:
|
|
|
38
38
|
```
|
|
39
39
|
Unknown command: {command}
|
|
40
40
|
|
|
41
|
-
Run `/sf
|
|
41
|
+
Run `/sf:help` for available commands.
|
|
42
42
|
```
|
|
43
43
|
Exit.
|
|
44
44
|
|
|
@@ -51,7 +51,7 @@ Read the command file and extract:
|
|
|
51
51
|
|
|
52
52
|
```
|
|
53
53
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
54
|
-
/sf
|
|
54
|
+
/sf:{command}
|
|
55
55
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
56
56
|
|
|
57
57
|
{Description from frontmatter}
|
|
@@ -59,7 +59,7 @@ Read the command file and extract:
|
|
|
59
59
|
## Usage
|
|
60
60
|
|
|
61
61
|
```
|
|
62
|
-
/sf
|
|
62
|
+
/sf:{command} {arguments syntax}
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
## Description
|
|
@@ -85,68 +85,68 @@ Read the command file and extract:
|
|
|
85
85
|
|
|
86
86
|
### Command-Specific Examples
|
|
87
87
|
|
|
88
|
-
**For `/sf
|
|
88
|
+
**For `/sf:new`:**
|
|
89
89
|
```
|
|
90
90
|
## Examples
|
|
91
91
|
|
|
92
92
|
```
|
|
93
|
-
/sf
|
|
94
|
-
/sf
|
|
95
|
-
/sf
|
|
96
|
-
/sf
|
|
93
|
+
/sf:new "Add user authentication with JWT"
|
|
94
|
+
/sf:new "Fix pagination bug in user list"
|
|
95
|
+
/sf:new "Refactor UserService to use repository pattern"
|
|
96
|
+
/sf:new # Interactive mode
|
|
97
97
|
```
|
|
98
98
|
```
|
|
99
99
|
|
|
100
|
-
**For `/sf
|
|
100
|
+
**For `/sf:audit`:**
|
|
101
101
|
```
|
|
102
102
|
## Examples
|
|
103
103
|
|
|
104
104
|
```
|
|
105
|
-
/sf
|
|
106
|
-
/sf
|
|
105
|
+
/sf:audit # Audit active specification
|
|
106
|
+
/sf:audit SPEC-003 # Audit specific specification
|
|
107
107
|
```
|
|
108
108
|
```
|
|
109
109
|
|
|
110
|
-
**For `/sf
|
|
110
|
+
**For `/sf:run`:**
|
|
111
111
|
```
|
|
112
112
|
## Examples
|
|
113
113
|
|
|
114
114
|
```
|
|
115
|
-
/sf
|
|
116
|
-
/sf
|
|
115
|
+
/sf:run # Run active specification
|
|
116
|
+
/sf:run SPEC-003 # Run specific specification
|
|
117
117
|
```
|
|
118
118
|
```
|
|
119
119
|
|
|
120
|
-
**For `/sf
|
|
120
|
+
**For `/sf:revise`:**
|
|
121
121
|
```
|
|
122
122
|
## Examples
|
|
123
123
|
|
|
124
124
|
```
|
|
125
|
-
/sf
|
|
126
|
-
/sf
|
|
127
|
-
/sf
|
|
128
|
-
/sf
|
|
125
|
+
/sf:revise # Interactive — shows audit comments
|
|
126
|
+
/sf:revise all # Apply all audit comments
|
|
127
|
+
/sf:revise 1,2 # Apply only comments 1 and 2
|
|
128
|
+
/sf:revise "add error handling, ignore item 3"
|
|
129
129
|
```
|
|
130
130
|
```
|
|
131
131
|
|
|
132
|
-
**For `/sf
|
|
132
|
+
**For `/sf:split`:**
|
|
133
133
|
```
|
|
134
134
|
## Examples
|
|
135
135
|
|
|
136
136
|
```
|
|
137
|
-
/sf
|
|
138
|
-
/sf
|
|
137
|
+
/sf:split # Split active specification
|
|
138
|
+
/sf:split SPEC-001 # Split specific specification
|
|
139
139
|
```
|
|
140
140
|
```
|
|
141
141
|
|
|
142
|
-
**For `/sf
|
|
142
|
+
**For `/sf:todo`:**
|
|
143
143
|
```
|
|
144
144
|
## Examples
|
|
145
145
|
|
|
146
146
|
```
|
|
147
|
-
/sf
|
|
148
|
-
/sf
|
|
149
|
-
/sf
|
|
147
|
+
/sf:todo "Add caching layer for API"
|
|
148
|
+
/sf:todo "Research WebSocket alternatives"
|
|
149
|
+
/sf:todo "Refactor authentication flow"
|
|
150
150
|
```
|
|
151
151
|
```
|
|
152
152
|
|
|
@@ -171,81 +171,81 @@ Workflow: Spec → Audit → Revise → Run → Review → Fix → Done
|
|
|
171
171
|
|
|
172
172
|
| Command | Description |
|
|
173
173
|
|--------------|-----------------------------------------|
|
|
174
|
-
| /sf
|
|
175
|
-
| /sf
|
|
176
|
-
| /sf
|
|
177
|
-
| /sf
|
|
178
|
-
| /sf
|
|
179
|
-
| /sf
|
|
180
|
-
| /sf
|
|
181
|
-
| /sf
|
|
174
|
+
| /sf:init | Initialize project, analyze codebase |
|
|
175
|
+
| /sf:new | Create specification from task |
|
|
176
|
+
| /sf:audit | Audit specification (fresh context) |
|
|
177
|
+
| /sf:revise | Revise spec based on audit feedback |
|
|
178
|
+
| /sf:run | Execute specification |
|
|
179
|
+
| /sf:review | Review implementation (fresh context) |
|
|
180
|
+
| /sf:fix | Fix implementation based on review |
|
|
181
|
+
| /sf:done | Finalize, commit, and archive |
|
|
182
182
|
|
|
183
183
|
## Navigation
|
|
184
184
|
|
|
185
185
|
| Command | Description |
|
|
186
186
|
|--------------|-----------------------------------------|
|
|
187
|
-
| /sf
|
|
188
|
-
| /sf
|
|
189
|
-
| /sf
|
|
190
|
-
| /sf
|
|
187
|
+
| /sf:status | Show current state and next step |
|
|
188
|
+
| /sf:list | List all specifications |
|
|
189
|
+
| /sf:show | Show specification details |
|
|
190
|
+
| /sf:next | Work on highest priority task |
|
|
191
191
|
|
|
192
192
|
## To-Do
|
|
193
193
|
|
|
194
194
|
| Command | Description |
|
|
195
195
|
|--------------|-----------------------------------------|
|
|
196
|
-
| /sf
|
|
197
|
-
| /sf
|
|
198
|
-
| /sf
|
|
199
|
-
| /sf
|
|
196
|
+
| /sf:todo | Add idea to backlog |
|
|
197
|
+
| /sf:todos | List all to-do items |
|
|
198
|
+
| /sf:plan | Convert to-do to specification |
|
|
199
|
+
| /sf:priority | Change to-do priorities |
|
|
200
200
|
|
|
201
201
|
## Decomposition
|
|
202
202
|
|
|
203
203
|
| Command | Description |
|
|
204
204
|
|--------------|-----------------------------------------|
|
|
205
|
-
| /sf
|
|
206
|
-
| /sf
|
|
205
|
+
| /sf:split | Split large spec into sub-specs |
|
|
206
|
+
| /sf:deps | Show dependency graph |
|
|
207
207
|
|
|
208
208
|
## Sessions
|
|
209
209
|
|
|
210
210
|
| Command | Description |
|
|
211
211
|
|--------------|-----------------------------------------|
|
|
212
|
-
| /sf
|
|
213
|
-
| /sf
|
|
212
|
+
| /sf:pause | Save session context for later |
|
|
213
|
+
| /sf:resume | Restore previous session context |
|
|
214
214
|
|
|
215
215
|
## Utilities
|
|
216
216
|
|
|
217
217
|
| Command | Description |
|
|
218
218
|
|--------------|-----------------------------------------|
|
|
219
|
-
| /sf
|
|
220
|
-
| /sf
|
|
221
|
-
| /sf
|
|
219
|
+
| /sf:help | This help (or detailed: /sf:help new) |
|
|
220
|
+
| /sf:history | View completed specifications |
|
|
221
|
+
| /sf:metrics | Project statistics and insights |
|
|
222
222
|
|
|
223
223
|
---
|
|
224
224
|
|
|
225
225
|
## Quick Start
|
|
226
226
|
|
|
227
|
-
1. `/sf
|
|
228
|
-
2. `/sf
|
|
229
|
-
3. `/sf
|
|
230
|
-
4. `/sf
|
|
231
|
-
5. `/sf
|
|
232
|
-
6. `/sf
|
|
227
|
+
1. `/sf:init` — Initialize project (once)
|
|
228
|
+
2. `/sf:new "task"` — Create specification
|
|
229
|
+
3. `/sf:audit` — Audit the spec
|
|
230
|
+
4. `/sf:run` — Implement
|
|
231
|
+
5. `/sf:review` — Review implementation
|
|
232
|
+
6. `/sf:done` — Complete and archive
|
|
233
233
|
|
|
234
234
|
## Typical Session
|
|
235
235
|
|
|
236
236
|
```
|
|
237
|
-
/sf
|
|
238
|
-
/sf
|
|
239
|
-
/sf
|
|
240
|
-
/sf
|
|
241
|
-
/sf
|
|
242
|
-
/sf
|
|
243
|
-
/sf
|
|
237
|
+
/sf:status # Where am I?
|
|
238
|
+
/sf:next # What should I work on?
|
|
239
|
+
/sf:audit # Audit current spec
|
|
240
|
+
/sf:revise all # Apply audit feedback
|
|
241
|
+
/sf:run # Implement
|
|
242
|
+
/sf:review # Review implementation
|
|
243
|
+
/sf:done # Complete
|
|
244
244
|
```
|
|
245
245
|
|
|
246
246
|
---
|
|
247
247
|
|
|
248
|
-
**Detailed help:** `/sf
|
|
248
|
+
**Detailed help:** `/sf:help <command>`
|
|
249
249
|
|
|
250
250
|
**Documentation:** See DESIGN.md for full specification
|
|
251
251
|
```
|
package/commands/sf/history.md
CHANGED
|
@@ -33,7 +33,7 @@ Display completed specifications from the archive. Shows completion dates, audit
|
|
|
33
33
|
```
|
|
34
34
|
SpecFlow not initialized.
|
|
35
35
|
|
|
36
|
-
Run `/sf
|
|
36
|
+
Run `/sf:init` first.
|
|
37
37
|
```
|
|
38
38
|
Exit.
|
|
39
39
|
|
|
@@ -54,9 +54,9 @@ No completed specifications yet.
|
|
|
54
54
|
Complete your first spec to see it here.
|
|
55
55
|
|
|
56
56
|
**Workflow:**
|
|
57
|
-
1. `/sf
|
|
58
|
-
2. `/sf
|
|
59
|
-
3. `/sf
|
|
57
|
+
1. `/sf:new "task"` — Create specification
|
|
58
|
+
2. `/sf:audit` → `/sf:run` → `/sf:review`
|
|
59
|
+
3. `/sf:done` — Archives the specification
|
|
60
60
|
```
|
|
61
61
|
Exit.
|
|
62
62
|
|
|
@@ -78,10 +78,10 @@ Exit.
|
|
|
78
78
|
Specification {ID} not found in archive.
|
|
79
79
|
|
|
80
80
|
It may be:
|
|
81
|
-
- Still in progress: `/sf
|
|
82
|
-
- Never existed: `/sf
|
|
81
|
+
- Still in progress: `/sf:show {ID}`
|
|
82
|
+
- Never existed: `/sf:list` to see all specs
|
|
83
83
|
|
|
84
|
-
Use `/sf
|
|
84
|
+
Use `/sf:history` to see archived specifications.
|
|
85
85
|
```
|
|
86
86
|
Exit.
|
|
87
87
|
|
|
@@ -241,7 +241,7 @@ Most recent first.
|
|
|
241
241
|
|
|
242
242
|
---
|
|
243
243
|
|
|
244
|
-
**View details:** `/sf
|
|
244
|
+
**View details:** `/sf:history SPEC-001`
|
|
245
245
|
|
|
246
246
|
**Insights:**
|
|
247
247
|
{If first-pass audit rate < 50%:}
|
package/commands/sf/init.md
CHANGED
|
@@ -30,7 +30,7 @@ Initialize SpecFlow in the current project. Analyzes the codebase to understand
|
|
|
30
30
|
```
|
|
31
31
|
SpecFlow already initialized in this project.
|
|
32
32
|
|
|
33
|
-
Use `/sf
|
|
33
|
+
Use `/sf:status` to see current state.
|
|
34
34
|
```
|
|
35
35
|
Exit.
|
|
36
36
|
|
|
@@ -133,7 +133,7 @@ Create `.specflow/STATE.md`:
|
|
|
133
133
|
|
|
134
134
|
- **Active Specification:** none
|
|
135
135
|
- **Status:** idle
|
|
136
|
-
- **Next Step:** /sf
|
|
136
|
+
- **Next Step:** /sf:new
|
|
137
137
|
|
|
138
138
|
## Queue
|
|
139
139
|
|
|
@@ -193,7 +193,7 @@ Create `.specflow/config.json`:
|
|
|
193
193
|
|
|
194
194
|
## Next Step
|
|
195
195
|
|
|
196
|
-
`/sf
|
|
196
|
+
`/sf:new "your task description"` — create first specification
|
|
197
197
|
|
|
198
198
|
---
|
|
199
199
|
|
|
@@ -213,5 +213,5 @@ Create `.specflow/config.json`:
|
|
|
213
213
|
- [ ] PROJECT.md created with detected stack
|
|
214
214
|
- [ ] STATE.md created with initial state
|
|
215
215
|
- [ ] config.json created with defaults
|
|
216
|
-
- [ ] User knows next step is /sf
|
|
216
|
+
- [ ] User knows next step is /sf:new
|
|
217
217
|
</success_criteria>
|
package/commands/sf/list.md
CHANGED
|
@@ -27,7 +27,7 @@ Display all specifications from `.specflow/specs/` with their basic info: ID, ti
|
|
|
27
27
|
```
|
|
28
28
|
SpecFlow not initialized.
|
|
29
29
|
|
|
30
|
-
Run `/sf
|
|
30
|
+
Run `/sf:init` to start.
|
|
31
31
|
```
|
|
32
32
|
Exit.
|
|
33
33
|
|
|
@@ -50,7 +50,7 @@ ls -1 .specflow/specs/SPEC-*.md 2>/dev/null
|
|
|
50
50
|
No specifications found.
|
|
51
51
|
|
|
52
52
|
Create your first specification:
|
|
53
|
-
`/sf
|
|
53
|
+
`/sf:new "task description"`
|
|
54
54
|
```
|
|
55
55
|
Exit.
|
|
56
56
|
|
|
@@ -95,9 +95,9 @@ Total: 3 specs | {archived} complete | {in_progress} in progress
|
|
|
95
95
|
---
|
|
96
96
|
|
|
97
97
|
**Actions:**
|
|
98
|
-
- `/sf
|
|
99
|
-
- `/sf
|
|
100
|
-
- `/sf
|
|
98
|
+
- `/sf:show SPEC-XXX` — view details
|
|
99
|
+
- `/sf:next` — work on highest priority
|
|
100
|
+
- `/sf:new "task"` — create new specification
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
## Step 8: Show Status Legend (if helpful)
|
package/commands/sf/metrics.md
CHANGED
|
@@ -32,7 +32,7 @@ Calculate and display project statistics including completion rates, quality met
|
|
|
32
32
|
```
|
|
33
33
|
SpecFlow not initialized.
|
|
34
34
|
|
|
35
|
-
Run `/sf
|
|
35
|
+
Run `/sf:init` first.
|
|
36
36
|
```
|
|
37
37
|
Exit.
|
|
38
38
|
|
|
@@ -147,7 +147,7 @@ Based on calculated metrics, generate 2-4 actionable insights:
|
|
|
147
147
|
- "Specs may benefit from better scoping upfront"
|
|
148
148
|
|
|
149
149
|
**If large specs > 20% of total:**
|
|
150
|
-
- "Consider splitting large specs earlier (/sf
|
|
150
|
+
- "Consider splitting large specs earlier (/sf:split)"
|
|
151
151
|
|
|
152
152
|
**If first-pass review rate > 70%:**
|
|
153
153
|
- "Good implementation quality — specs are well-defined"
|
|
@@ -156,7 +156,7 @@ Based on calculated metrics, generate 2-4 actionable insights:
|
|
|
156
156
|
- "Many specs in progress — consider completing before starting new"
|
|
157
157
|
|
|
158
158
|
**If TODO_COUNT > 5 and conversion rate < 30%:**
|
|
159
|
-
- "Backlog growing — consider /sf
|
|
159
|
+
- "Backlog growing — consider /sf:priority or /sf:plan"
|
|
160
160
|
|
|
161
161
|
**If all metrics good:**
|
|
162
162
|
- "Project health is excellent — keep up the discipline!"
|
|
@@ -250,7 +250,7 @@ Based on calculated metrics, generate 2-4 actionable insights:
|
|
|
250
250
|
{If no todos:}
|
|
251
251
|
No to-do items.
|
|
252
252
|
|
|
253
|
-
Add ideas: `/sf
|
|
253
|
+
Add ideas: `/sf:todo "idea"`
|
|
254
254
|
|
|
255
255
|
---
|
|
256
256
|
|
|
@@ -287,7 +287,7 @@ No specifications created yet.
|
|
|
287
287
|
|
|
288
288
|
Create your first specification to start tracking metrics:
|
|
289
289
|
|
|
290
|
-
`/sf
|
|
290
|
+
`/sf:new "task description"`
|
|
291
291
|
|
|
292
292
|
---
|
|
293
293
|
|
package/commands/sf/new.md
CHANGED
|
@@ -34,7 +34,7 @@ Create a new specification from a task description. Asks critical questions if n
|
|
|
34
34
|
```
|
|
35
35
|
SpecFlow not initialized.
|
|
36
36
|
|
|
37
|
-
Run `/sf
|
|
37
|
+
Run `/sf:init` first.
|
|
38
38
|
```
|
|
39
39
|
Exit.
|
|
40
40
|
|
|
@@ -94,22 +94,24 @@ The agent will:
|
|
|
94
94
|
|
|
95
95
|
- [List assumptions agent made]
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
---
|
|
98
98
|
|
|
99
|
-
`.specflow/specs/SPEC-XXX.md`
|
|
99
|
+
📄 **File:** `.specflow/specs/SPEC-XXX.md`
|
|
100
100
|
|
|
101
101
|
---
|
|
102
102
|
|
|
103
103
|
## Next Step
|
|
104
104
|
|
|
105
|
-
`/sf
|
|
105
|
+
`/sf:audit` — audit specification before implementation
|
|
106
|
+
|
|
107
|
+
<sub>/clear recommended → auditor needs fresh context</sub>
|
|
106
108
|
|
|
107
109
|
{If complexity is large:}
|
|
108
110
|
|
|
109
111
|
### Warning
|
|
110
112
|
|
|
111
113
|
Specification is large (>150k tokens estimated).
|
|
112
|
-
Consider `/sf
|
|
114
|
+
Consider `/sf:split SPEC-XXX` to decompose into smaller specs.
|
|
113
115
|
```
|
|
114
116
|
|
|
115
117
|
</workflow>
|
|
@@ -153,7 +155,7 @@ Create `.specflow/specs/SPEC-XXX.md` with:
|
|
|
153
155
|
|
|
154
156
|
- **Active Specification:** SPEC-XXX
|
|
155
157
|
- **Status:** drafting
|
|
156
|
-
- **Next Step:** /sf
|
|
158
|
+
- **Next Step:** /sf:audit
|
|
157
159
|
```
|
|
158
160
|
|
|
159
161
|
Add to Queue table.
|
|
@@ -167,5 +169,5 @@ Add to Queue table.
|
|
|
167
169
|
- [ ] Complexity estimated (small/medium/large)
|
|
168
170
|
- [ ] Assumptions documented
|
|
169
171
|
- [ ] STATE.md updated with new spec
|
|
170
|
-
- [ ] User knows next step is /sf
|
|
172
|
+
- [ ] User knows next step is /sf:audit
|
|
171
173
|
</success_criteria>
|
package/commands/sf/next.md
CHANGED
|
@@ -28,7 +28,7 @@ Find the highest priority specification that needs action, set it as active in S
|
|
|
28
28
|
```
|
|
29
29
|
SpecFlow not initialized.
|
|
30
30
|
|
|
31
|
-
Run `/sf
|
|
31
|
+
Run `/sf:init` to start.
|
|
32
32
|
```
|
|
33
33
|
Exit.
|
|
34
34
|
|
|
@@ -47,8 +47,8 @@ ls -1 .specflow/specs/SPEC-*.md 2>/dev/null
|
|
|
47
47
|
No specifications ready for work.
|
|
48
48
|
|
|
49
49
|
**Options:**
|
|
50
|
-
- `/sf
|
|
51
|
-
- `/sf
|
|
50
|
+
- `/sf:new "description"` — create new specification
|
|
51
|
+
- `/sf:todos` — view idea backlog
|
|
52
52
|
```
|
|
53
53
|
Exit.
|
|
54
54
|
|
|
@@ -91,9 +91,9 @@ Choose spec with highest score.
|
|
|
91
91
|
All specifications are either completed or blocked.
|
|
92
92
|
|
|
93
93
|
**Options:**
|
|
94
|
-
- `/sf
|
|
95
|
-
- `/sf
|
|
96
|
-
- `/sf
|
|
94
|
+
- `/sf:new "description"` — create new specification
|
|
95
|
+
- `/sf:todos` — view idea backlog
|
|
96
|
+
- `/sf:list` — see all specifications
|
|
97
97
|
```
|
|
98
98
|
Exit.
|
|
99
99
|
|
|
@@ -108,12 +108,12 @@ Update `.specflow/STATE.md`:
|
|
|
108
108
|
|
|
109
109
|
| Status | Recommended Command | Description |
|
|
110
110
|
|--------|---------------------|-------------|
|
|
111
|
-
| draft | `/sf
|
|
111
|
+
| draft | `/sf:audit` | Audit specification |
|
|
112
112
|
| auditing | Continue audit | Complete the audit |
|
|
113
|
-
| revision_requested | `/sf
|
|
114
|
-
| audited | `/sf
|
|
115
|
-
| running | Continue or `/sf
|
|
116
|
-
| review | `/sf
|
|
113
|
+
| revision_requested | `/sf:revise` | Address audit comments |
|
|
114
|
+
| audited | `/sf:run` | Implement specification |
|
|
115
|
+
| running | Continue or `/sf:review` | Complete implementation |
|
|
116
|
+
| review | `/sf:fix` or `/sf:done` | Address review or finalize |
|
|
117
117
|
|
|
118
118
|
## Step 7: Display Next Task
|
|
119
119
|
|
|
@@ -156,7 +156,7 @@ From {audit/review} v{N}:
|
|
|
156
156
|
|
|
157
157
|
**If status is revision_requested:**
|
|
158
158
|
```
|
|
159
|
-
**Tip:** Review audit comments with `/sf
|
|
159
|
+
**Tip:** Review audit comments with `/sf:show {ID}` before revising.
|
|
160
160
|
```
|
|
161
161
|
|
|
162
162
|
**If status is review:**
|
|
@@ -166,7 +166,7 @@ From {audit/review} v{N}:
|
|
|
166
166
|
|
|
167
167
|
**If complexity is large:**
|
|
168
168
|
```
|
|
169
|
-
**Tip:** Consider `/sf
|
|
169
|
+
**Tip:** Consider `/sf:split {ID}` to break into smaller specs.
|
|
170
170
|
```
|
|
171
171
|
|
|
172
172
|
</workflow>
|
package/commands/sf/pause.md
CHANGED
|
@@ -29,7 +29,7 @@ Save the current work context to enable seamless resumption later. Creates a pau
|
|
|
29
29
|
```
|
|
30
30
|
SpecFlow not initialized.
|
|
31
31
|
|
|
32
|
-
Run `/sf
|
|
32
|
+
Run `/sf:init` to start.
|
|
33
33
|
```
|
|
34
34
|
Exit.
|
|
35
35
|
|
|
@@ -192,7 +192,7 @@ Under Current Position, add:
|
|
|
192
192
|
|
|
193
193
|
**Session saved successfully.**
|
|
194
194
|
|
|
195
|
-
Resume with: `/sf
|
|
195
|
+
Resume with: `/sf:resume`
|
|
196
196
|
```
|
|
197
197
|
|
|
198
198
|
</workflow>
|
package/commands/sf/plan.md
CHANGED
|
@@ -23,7 +23,7 @@ Convert a to-do item from the backlog into a full specification. Reuses the spec
|
|
|
23
23
|
</context>
|
|
24
24
|
|
|
25
25
|
<arguments>
|
|
26
|
-
- `[ID or #]` — Optional. Either TODO-XXX ID or list number from `/sf
|
|
26
|
+
- `[ID or #]` — Optional. Either TODO-XXX ID or list number from `/sf:todos`. If omitted, shows todos and prompts for selection.
|
|
27
27
|
</arguments>
|
|
28
28
|
|
|
29
29
|
<workflow>
|
|
@@ -38,7 +38,7 @@ Convert a to-do item from the backlog into a full specification. Reuses the spec
|
|
|
38
38
|
```
|
|
39
39
|
SpecFlow not initialized.
|
|
40
40
|
|
|
41
|
-
Run `/sf
|
|
41
|
+
Run `/sf:init` to start.
|
|
42
42
|
```
|
|
43
43
|
Exit.
|
|
44
44
|
|
|
@@ -52,7 +52,7 @@ Exit.
|
|
|
52
52
|
```
|
|
53
53
|
No to-do items found.
|
|
54
54
|
|
|
55
|
-
Add ideas first with `/sf
|
|
55
|
+
Add ideas first with `/sf:todo "your idea"`.
|
|
56
56
|
```
|
|
57
57
|
Exit.
|
|
58
58
|
|
|
@@ -95,7 +95,7 @@ Read the selected todo:
|
|
|
95
95
|
```
|
|
96
96
|
Todo "{arg}" not found.
|
|
97
97
|
|
|
98
|
-
Use `/sf
|
|
98
|
+
Use `/sf:todos` to see available items.
|
|
99
99
|
```
|
|
100
100
|
Exit.
|
|
101
101
|
|
|
@@ -161,14 +161,14 @@ Update `*Last updated:` timestamp.
|
|
|
161
161
|
|
|
162
162
|
## Next Step
|
|
163
163
|
|
|
164
|
-
`/sf
|
|
164
|
+
`/sf:audit` — audit specification before implementation
|
|
165
165
|
|
|
166
166
|
{If complexity is large:}
|
|
167
167
|
|
|
168
168
|
### Warning
|
|
169
169
|
|
|
170
170
|
Specification is large (>150k tokens estimated).
|
|
171
|
-
Consider `/sf
|
|
171
|
+
Consider `/sf:split SPEC-{YYY}` to decompose.
|
|
172
172
|
```
|
|
173
173
|
|
|
174
174
|
</workflow>
|
|
@@ -183,9 +183,9 @@ Consider `/sf split SPEC-{YYY}` to decompose.
|
|
|
183
183
|
|
|
184
184
|
Read from TODO.md.
|
|
185
185
|
|
|
186
|
-
### Create Spec (same as /sf
|
|
186
|
+
### Create Spec (same as /sf:new)
|
|
187
187
|
|
|
188
|
-
Use `/sf
|
|
188
|
+
Use `/sf:new "{todo description}"` logic:
|
|
189
189
|
1. Generate SPEC-XXX ID
|
|
190
190
|
2. Create spec with todo context
|
|
191
191
|
3. Set priority from todo
|
package/commands/sf/priority.md
CHANGED
|
@@ -30,7 +30,7 @@ Interactively prioritize specifications and to-do items. Allows reordering, sett
|
|
|
30
30
|
```
|
|
31
31
|
SpecFlow not initialized.
|
|
32
32
|
|
|
33
|
-
Run `/sf
|
|
33
|
+
Run `/sf:init` to start.
|
|
34
34
|
```
|
|
35
35
|
Exit.
|
|
36
36
|
|
|
@@ -179,7 +179,7 @@ After changes:
|
|
|
179
179
|
|
|
180
180
|
---
|
|
181
181
|
|
|
182
|
-
Use `/sf
|
|
182
|
+
Use `/sf:next` to work on highest priority task.
|
|
183
183
|
```
|
|
184
184
|
|
|
185
185
|
</workflow>
|