specdacular 0.2.5 → 0.5.1
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 +186 -68
- package/commands/specd/blueprint.md +64 -0
- package/commands/specd/{discuss-feature.md → feature/discuss.md} +1 -1
- package/commands/specd/{new-feature.md → feature/new.md} +3 -3
- package/commands/specd/{plan-feature.md → feature/plan.md} +15 -18
- package/commands/specd/{research-feature.md → feature/research.md} +5 -5
- package/commands/specd/help.md +51 -29
- package/commands/specd/{execute-plan.md → phase/execute.md} +4 -4
- package/commands/specd/phase/insert.md +62 -0
- package/commands/specd/phase/plan.md +73 -0
- package/commands/specd/{discuss-phase.md → phase/prepare.md} +21 -9
- package/commands/specd/phase/renumber.md +66 -0
- package/commands/specd/{research-phase.md → phase/research.md} +3 -1
- package/commands/specd/status.md +20 -0
- package/package.json +1 -1
- package/specdacular/agents/feature-researcher.md +4 -2
- package/specdacular/templates/blueprint/index.html +110 -0
- package/specdacular/templates/blueprint/scripts.js +71 -0
- package/specdacular/templates/blueprint/styles.css +429 -0
- package/specdacular/templates/features/STATE.md +6 -4
- package/specdacular/workflows/blueprint-diagrams.md +273 -0
- package/specdacular/workflows/blueprint-wireframes.md +312 -0
- package/specdacular/workflows/blueprint.md +372 -0
- package/specdacular/workflows/discuss-feature.md +4 -4
- package/specdacular/workflows/execute-plan.md +4 -4
- package/specdacular/workflows/insert-phase.md +222 -0
- package/specdacular/workflows/new-feature.md +5 -5
- package/specdacular/workflows/plan-feature.md +60 -233
- package/specdacular/workflows/plan-phase.md +363 -0
- package/specdacular/workflows/prepare-phase.md +759 -0
- package/specdacular/workflows/renumber-phases.md +273 -0
- package/specdacular/workflows/research-phase.md +5 -3
- package/specdacular/workflows/status.md +85 -0
- package/specdacular/workflows/discuss-phase.md +0 -389
package/README.md
CHANGED
|
@@ -28,19 +28,12 @@ Spawns 4 parallel agents to analyze your codebase and generate AI-optimized docu
|
|
|
28
28
|
A structured flow for planning features with enough detail for agent implementation:
|
|
29
29
|
|
|
30
30
|
```
|
|
31
|
-
new
|
|
32
|
-
|
|
31
|
+
feature:new -> feature:discuss -> feature:research -> feature:plan (roadmap) ->
|
|
32
|
+
[for each phase]
|
|
33
|
+
phase:prepare? -> phase:plan -> phase:execute
|
|
34
|
+
phase:insert? -> phase:renumber? <- mid-flight adjustments
|
|
33
35
|
```
|
|
34
36
|
|
|
35
|
-
**You control the rhythm:**
|
|
36
|
-
- `new-feature` — Initialize and start first discussion
|
|
37
|
-
- `discuss-feature` — Refine understanding (call many times)
|
|
38
|
-
- `research-feature` — Investigate implementation approaches
|
|
39
|
-
- `plan-feature` — Create executable task plans
|
|
40
|
-
- `discuss-phase` — Optional: dive into phase specifics before execution
|
|
41
|
-
- `research-phase` — Optional: research patterns for a specific phase
|
|
42
|
-
- `execute-plan` — Execute plans with progress tracking
|
|
43
|
-
|
|
44
37
|
---
|
|
45
38
|
|
|
46
39
|
## Installation
|
|
@@ -64,28 +57,43 @@ In Claude Code:
|
|
|
64
57
|
|
|
65
58
|
## Commands
|
|
66
59
|
|
|
60
|
+
Commands are organized into **feature** and **phase** namespaces.
|
|
61
|
+
|
|
67
62
|
### Codebase Documentation
|
|
68
63
|
|
|
69
64
|
| Command | Description |
|
|
70
65
|
|---------|-------------|
|
|
71
66
|
| `/specd:map-codebase` | Analyze codebase with parallel agents |
|
|
72
67
|
|
|
73
|
-
### Feature
|
|
68
|
+
### Feature Commands (`feature:`)
|
|
69
|
+
|
|
70
|
+
Work with a feature as a whole — discuss, research, and create a roadmap.
|
|
71
|
+
|
|
72
|
+
| Command | Description |
|
|
73
|
+
|---------|-------------|
|
|
74
|
+
| `/specd:feature:new [name]` | Initialize a feature, start first discussion |
|
|
75
|
+
| `/specd:feature:discuss [name]` | Continue/deepen discussion (call many times) |
|
|
76
|
+
| `/specd:feature:research [name]` | Research implementation with parallel agents |
|
|
77
|
+
| `/specd:feature:plan [name]` | Create roadmap with phase overview |
|
|
78
|
+
|
|
79
|
+
### Phase Commands (`phase:`)
|
|
80
|
+
|
|
81
|
+
Work with individual phases — prepare, plan, and execute one at a time.
|
|
74
82
|
|
|
75
83
|
| Command | Description |
|
|
76
84
|
|---------|-------------|
|
|
77
|
-
| `/specd:
|
|
78
|
-
| `/specd:
|
|
79
|
-
| `/specd:
|
|
80
|
-
| `/specd:
|
|
81
|
-
| `/specd:
|
|
82
|
-
| `/specd:
|
|
83
|
-
| `/specd:execute-plan [feature]` | Execute plans with progress tracking |
|
|
85
|
+
| `/specd:phase:prepare [feature] [phase]` | Discuss gray areas + optionally research patterns |
|
|
86
|
+
| `/specd:phase:research [feature] [phase]` | Research patterns for a phase (standalone) |
|
|
87
|
+
| `/specd:phase:plan [feature] [phase]` | Create detailed PLAN.md files for one phase |
|
|
88
|
+
| `/specd:phase:execute [feature]` | Execute plans with progress tracking |
|
|
89
|
+
| `/specd:phase:insert [feature] [after] [desc]` | Insert a new phase after an existing one |
|
|
90
|
+
| `/specd:phase:renumber [feature]` | Renumber phases to clean integer sequence |
|
|
84
91
|
|
|
85
92
|
### Utilities
|
|
86
93
|
|
|
87
94
|
| Command | Description |
|
|
88
95
|
|---------|-------------|
|
|
96
|
+
| `/specd:blueprint [name] [sub]` | Generate visual blueprint (wireframes, diagrams) |
|
|
89
97
|
| `/specd:help` | Show available commands |
|
|
90
98
|
| `/specd:update` | Update to latest version |
|
|
91
99
|
|
|
@@ -99,36 +107,111 @@ In Claude Code:
|
|
|
99
107
|
/specd:map-codebase
|
|
100
108
|
```
|
|
101
109
|
|
|
102
|
-
Creates `.specd/codebase/` with 4 AI-optimized documents.
|
|
110
|
+
Creates `.specd/codebase/` with 4 AI-optimized documents. This gives Claude context about your codebase's architecture, patterns, structure, and gotchas.
|
|
103
111
|
|
|
104
112
|
### Plan a Feature
|
|
105
113
|
|
|
114
|
+
**Step 1: Initialize and discuss**
|
|
115
|
+
|
|
106
116
|
```
|
|
107
|
-
/specd:new
|
|
117
|
+
/specd:feature:new user-dashboard
|
|
108
118
|
```
|
|
109
119
|
|
|
110
|
-
Creates `.specd/features/user-dashboard/`
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
120
|
+
Creates `.specd/features/user-dashboard/` and starts the first discussion. Claude asks what you're building, follows the thread, and captures technical requirements.
|
|
121
|
+
|
|
122
|
+
**Step 2: Refine understanding**
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
/specd:feature:discuss user-dashboard # Clarify gray areas (call many times)
|
|
126
|
+
/specd:feature:research user-dashboard # Research implementation approaches
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Discussion and research are iterative — call them as many times as you need. Context accumulates across sessions.
|
|
130
|
+
|
|
131
|
+
**Step 3: Create a roadmap**
|
|
132
|
+
|
|
133
|
+
```
|
|
134
|
+
/specd:feature:plan user-dashboard
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Creates `ROADMAP.md` with phases derived from dependency analysis (types -> API -> UI), plus empty phase directories. No detailed plans yet — those come next, per phase.
|
|
138
|
+
|
|
139
|
+
**Step 4: Prepare, plan, and execute each phase**
|
|
115
140
|
|
|
116
|
-
Then refine and plan:
|
|
117
141
|
```
|
|
118
|
-
/specd:
|
|
119
|
-
/specd:
|
|
120
|
-
/specd:
|
|
142
|
+
/specd:phase:prepare user-dashboard 1 # Discuss phase gray areas + optional research
|
|
143
|
+
/specd:phase:plan user-dashboard 1 # Create detailed PLAN.md files
|
|
144
|
+
/specd:phase:execute user-dashboard # Execute with progress tracking
|
|
121
145
|
```
|
|
122
146
|
|
|
123
|
-
|
|
147
|
+
Repeat for each phase. Plans are created just-in-time so they stay fresh.
|
|
148
|
+
|
|
149
|
+
**Mid-flight adjustments:**
|
|
150
|
+
|
|
124
151
|
```
|
|
125
|
-
/specd:
|
|
126
|
-
/specd:
|
|
127
|
-
/specd:execute-plan user-dashboard # Execute with phase context
|
|
152
|
+
/specd:phase:insert user-dashboard 3 "Cache layer" # Insert Phase 3.1
|
|
153
|
+
/specd:phase:renumber user-dashboard # Clean up to integers
|
|
128
154
|
```
|
|
129
155
|
|
|
130
156
|
---
|
|
131
157
|
|
|
158
|
+
## The Flow in Detail
|
|
159
|
+
|
|
160
|
+
### Feature-Level Commands
|
|
161
|
+
|
|
162
|
+
**`feature:new`** creates the feature folder and starts the first discussion. Output:
|
|
163
|
+
- `FEATURE.md` — Technical requirements from the conversation
|
|
164
|
+
- `CONTEXT.md` — Discussion context (accumulates over time)
|
|
165
|
+
- `DECISIONS.md` — Decisions with dates, rationale, and implications
|
|
166
|
+
- `STATE.md` — Progress tracking
|
|
167
|
+
- `config.json` — Feature configuration
|
|
168
|
+
|
|
169
|
+
**`feature:discuss`** continues the conversation. Can be called many times — each session adds to `CONTEXT.md` and `DECISIONS.md`. Claude identifies gray areas based on what's been discussed so far and probes until clear.
|
|
170
|
+
|
|
171
|
+
**`feature:research`** spawns 3 parallel agents to investigate:
|
|
172
|
+
1. **Codebase integration** — How does this fit with existing code?
|
|
173
|
+
2. **External patterns** — What libraries/approaches are standard?
|
|
174
|
+
3. **Pitfalls** — What commonly goes wrong?
|
|
175
|
+
|
|
176
|
+
Output: `RESEARCH.md` with prescriptive guidance.
|
|
177
|
+
|
|
178
|
+
**`feature:plan`** creates a roadmap with phases. Each phase has a goal, deliverables, and dependencies. Creates `ROADMAP.md` and empty `plans/phase-{NN}/` directories. Does **not** create detailed PLAN.md files — that happens per-phase with `phase:plan`.
|
|
179
|
+
|
|
180
|
+
### Phase-Level Commands
|
|
181
|
+
|
|
182
|
+
**`phase:prepare`** is the main pre-execution command. It:
|
|
183
|
+
1. Shows the phase overview (goal, deliverables, existing context)
|
|
184
|
+
2. Identifies gray areas based on phase type (Types, API, UI, etc.)
|
|
185
|
+
3. Probes until clear (4 questions max per area)
|
|
186
|
+
4. Records resolutions to phase `CONTEXT.md` and `DECISIONS.md`
|
|
187
|
+
5. **Offers research** — "Would you like to research implementation patterns?"
|
|
188
|
+
6. If yes, spawns 3 parallel research agents focused on the phase
|
|
189
|
+
|
|
190
|
+
This replaces the old two-step of discuss-phase then research-phase.
|
|
191
|
+
|
|
192
|
+
**`phase:research`** is the standalone research command. Use it when you want to research a phase without discussing first. Same research agents as `phase:prepare`, just without the discussion step.
|
|
193
|
+
|
|
194
|
+
**`phase:plan`** creates detailed PLAN.md files for one phase. Each plan is a self-contained prompt for an implementing agent with:
|
|
195
|
+
- Exact file paths to create/modify
|
|
196
|
+
- Code patterns to follow (from codebase docs)
|
|
197
|
+
- Verification commands to run
|
|
198
|
+
- Clear completion criteria
|
|
199
|
+
|
|
200
|
+
Plans are created just-in-time — right before execution — so they incorporate all context from preparation and earlier phases.
|
|
201
|
+
|
|
202
|
+
**`phase:execute`** executes plans with:
|
|
203
|
+
- Auto-fix for bugs/blockers (logged to `CHANGELOG.md`)
|
|
204
|
+
- User confirmation for architectural changes
|
|
205
|
+
- Verification after each task
|
|
206
|
+
- Commits after each task
|
|
207
|
+
- Progress tracking in `STATE.md`
|
|
208
|
+
|
|
209
|
+
**`phase:insert`** adds a new phase using decimal numbering (e.g., Phase 3.1 after Phase 3). The `(INSERTED)` marker in `ROADMAP.md` identifies mid-flight additions.
|
|
210
|
+
|
|
211
|
+
**`phase:renumber`** cleans up decimal phases to sequential integers after insertions stabilize.
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
132
215
|
## How It Works
|
|
133
216
|
|
|
134
217
|
### Parallel Agents
|
|
@@ -158,49 +241,49 @@ Specdacular spawns specialized agents that run simultaneously:
|
|
|
158
241
|
|
|
159
242
|
### Feature Flow
|
|
160
243
|
|
|
161
|
-
The feature planning flow accumulates context over multiple sessions:
|
|
162
|
-
|
|
163
244
|
```
|
|
164
245
|
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
|
|
165
|
-
│
|
|
166
|
-
│ │ │
|
|
246
|
+
│ feature:new │ ──▶ │ feature: │ ◀─▶ │ feature: │
|
|
247
|
+
│ │ │ discuss │ │ research │
|
|
167
248
|
└──────────────┘ └──────────────┘ └──────────────┘
|
|
168
249
|
│
|
|
169
250
|
▼
|
|
170
251
|
┌──────────────┐
|
|
171
|
-
│
|
|
252
|
+
│ feature:plan│ (creates roadmap)
|
|
172
253
|
└──────────────┘
|
|
173
254
|
│
|
|
174
255
|
▼
|
|
175
256
|
┌─────────────────────────────┐
|
|
176
257
|
│ For each phase: │
|
|
177
|
-
│
|
|
178
|
-
│ │
|
|
179
|
-
│ │
|
|
180
|
-
│
|
|
181
|
-
│
|
|
182
|
-
│
|
|
183
|
-
│
|
|
184
|
-
│
|
|
185
|
-
│
|
|
186
|
-
│
|
|
258
|
+
│ ┌──────────┐ │
|
|
259
|
+
│ │ phase: │ │
|
|
260
|
+
│ │ prepare │ │
|
|
261
|
+
│ └──────────┘ │
|
|
262
|
+
│ │ │
|
|
263
|
+
│ ▼ │
|
|
264
|
+
│ ┌──────────┐ │
|
|
265
|
+
│ │ phase: │ │
|
|
266
|
+
│ │ plan │ │
|
|
267
|
+
│ └──────────┘ │
|
|
268
|
+
│ │ │
|
|
269
|
+
│ ▼ │
|
|
270
|
+
│ ┌──────────┐ │
|
|
271
|
+
│ │ phase: │ │
|
|
272
|
+
│ │ execute │ │
|
|
273
|
+
│ └──────────┘ │
|
|
274
|
+
│ │
|
|
275
|
+
│ Mid-flight adjustments: │
|
|
276
|
+
│ ┌──────────┐ │
|
|
277
|
+
│ │ phase: │ ──┐ │
|
|
278
|
+
│ │ insert │ │ │
|
|
279
|
+
│ └──────────┘ │ │
|
|
280
|
+
│ ┌──────▼────────┐ │
|
|
281
|
+
│ │ phase: │ │
|
|
282
|
+
│ │ renumber │ │
|
|
283
|
+
│ └──────────────┘ │
|
|
187
284
|
└─────────────────────────────┘
|
|
188
285
|
```
|
|
189
286
|
|
|
190
|
-
Each session updates:
|
|
191
|
-
- `CONTEXT.md` — Resolved questions accumulate
|
|
192
|
-
- `DECISIONS.md` — Decisions with rationale accumulate
|
|
193
|
-
|
|
194
|
-
**Phase-level commands** (optional but powerful):
|
|
195
|
-
- `discuss-phase` — Just-in-time clarification for a specific phase
|
|
196
|
-
- `research-phase` — Focused research for phase-specific patterns
|
|
197
|
-
|
|
198
|
-
Plans are prompts for implementing agents with:
|
|
199
|
-
- Specific file paths
|
|
200
|
-
- Code patterns to follow
|
|
201
|
-
- Verification commands
|
|
202
|
-
- Clear completion criteria
|
|
203
|
-
|
|
204
287
|
---
|
|
205
288
|
|
|
206
289
|
## Project Structure
|
|
@@ -223,12 +306,12 @@ your-project/
|
|
|
223
306
|
│ ├── DECISIONS.md # Decision log (feature + phase)
|
|
224
307
|
│ ├── STATE.md # Progress tracking
|
|
225
308
|
│ ├── RESEARCH.md # Feature-level research
|
|
226
|
-
│ ├── ROADMAP.md # Phase overview
|
|
227
|
-
│ └── plans/
|
|
309
|
+
│ ├── ROADMAP.md # Phase overview (from feature:plan)
|
|
310
|
+
│ └── plans/
|
|
228
311
|
│ ├── phase-01/
|
|
229
|
-
│ │ ├── CONTEXT.md # Phase discussion (
|
|
230
|
-
│ │ ├── RESEARCH.md # Phase research (
|
|
231
|
-
│ │ ├── 01-PLAN.md
|
|
312
|
+
│ │ ├── CONTEXT.md # Phase discussion (from phase:prepare)
|
|
313
|
+
│ │ ├── RESEARCH.md # Phase research (from phase:prepare or phase:research)
|
|
314
|
+
│ │ ├── 01-PLAN.md # Detailed plans (from phase:plan)
|
|
232
315
|
│ │ └── 02-PLAN.md
|
|
233
316
|
│ └── phase-02/
|
|
234
317
|
│ ├── CONTEXT.md
|
|
@@ -255,12 +338,47 @@ These docs answer questions Claude can't get from reading code:
|
|
|
255
338
|
|
|
256
339
|
Each `PLAN.md` is literally what you'd send to an implementing agent. It contains everything needed to implement without asking questions.
|
|
257
340
|
|
|
341
|
+
### Just-in-Time Planning
|
|
342
|
+
|
|
343
|
+
Detailed plans are created per-phase, not all at once. This keeps plans fresh — earlier phases inform later ones, and context doesn't go stale.
|
|
344
|
+
|
|
258
345
|
### Decisions Are Permanent
|
|
259
346
|
|
|
260
347
|
Once recorded in `DECISIONS.md`, decisions aren't re-litigated. Each has date, context, rationale, and implications.
|
|
261
348
|
|
|
262
349
|
---
|
|
263
350
|
|
|
351
|
+
## Migrating from v0.4
|
|
352
|
+
|
|
353
|
+
If you're upgrading from v0.4, here's what changed:
|
|
354
|
+
|
|
355
|
+
**Commands were renamed** into `feature:` and `phase:` namespaces:
|
|
356
|
+
|
|
357
|
+
| v0.4 | v0.5 |
|
|
358
|
+
|------|------|
|
|
359
|
+
| `/specd:new-feature` | `/specd:feature:new` |
|
|
360
|
+
| `/specd:discuss-feature` | `/specd:feature:discuss` |
|
|
361
|
+
| `/specd:research-feature` | `/specd:feature:research` |
|
|
362
|
+
| `/specd:plan-feature` | `/specd:feature:plan` |
|
|
363
|
+
| `/specd:discuss-phase` | `/specd:phase:prepare` |
|
|
364
|
+
| `/specd:research-phase` | `/specd:phase:research` |
|
|
365
|
+
| `/specd:execute-plan` | `/specd:phase:execute` |
|
|
366
|
+
| `/specd:insert-phase` | `/specd:phase:insert` |
|
|
367
|
+
| `/specd:renumber-phases` | `/specd:phase:renumber` |
|
|
368
|
+
|
|
369
|
+
**New commands:**
|
|
370
|
+
- `/specd:phase:prepare` — Replaces `discuss-phase`, adds optional research at the end
|
|
371
|
+
- `/specd:phase:plan` — Creates detailed plans for **one phase** (new command)
|
|
372
|
+
|
|
373
|
+
**Behavior changes:**
|
|
374
|
+
- `feature:plan` now creates only `ROADMAP.md` + empty phase directories. It no longer creates `PLAN.md` files for all phases upfront.
|
|
375
|
+
- Detailed `PLAN.md` files are created per-phase with `phase:plan`, right before execution. This prevents plans from going stale.
|
|
376
|
+
- `phase:prepare` combines the old discuss-phase + research-phase into a single command. Discussion always happens; research is offered as an optional step at the end.
|
|
377
|
+
|
|
378
|
+
**Existing `.specd/` data is fully compatible.** Your feature files, decisions, and roadmaps work with the new commands.
|
|
379
|
+
|
|
380
|
+
---
|
|
381
|
+
|
|
264
382
|
## Updating
|
|
265
383
|
|
|
266
384
|
```bash
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specd:blueprint
|
|
3
|
+
description: Generate visual blueprint for a feature
|
|
4
|
+
argument-hint: "[feature-name] [wireframes|diagrams]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- AskUserQuestion
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
<objective>
|
|
15
|
+
Generate a visual HTML blueprint for exploring feature artifacts.
|
|
16
|
+
|
|
17
|
+
**Base command:** `/specd:blueprint {feature}`
|
|
18
|
+
- Creates `.specd/features/{feature}/blueprint/index.html`
|
|
19
|
+
- Shows Overview, Decisions, Context, Plans tabs
|
|
20
|
+
- Opens in browser
|
|
21
|
+
|
|
22
|
+
**Subcommands:**
|
|
23
|
+
- `/specd:blueprint {feature} wireframes` — Add wireframes tab
|
|
24
|
+
- `/specd:blueprint {feature} diagrams` — Add diagrams tab with Mermaid
|
|
25
|
+
|
|
26
|
+
**Output:** Self-contained HTML file that opens in browser. Regenerate to update.
|
|
27
|
+
</objective>
|
|
28
|
+
|
|
29
|
+
<execution_context>
|
|
30
|
+
@~/.claude/specdacular/workflows/blueprint.md
|
|
31
|
+
</execution_context>
|
|
32
|
+
|
|
33
|
+
<context>
|
|
34
|
+
Feature name: First argument ($ARGUMENTS before space)
|
|
35
|
+
Subcommand: Second argument (wireframes, diagrams, or empty)
|
|
36
|
+
|
|
37
|
+
**Load feature context:**
|
|
38
|
+
@.specd/features/{name}/FEATURE.md
|
|
39
|
+
@.specd/features/{name}/CONTEXT.md
|
|
40
|
+
@.specd/features/{name}/DECISIONS.md
|
|
41
|
+
@.specd/features/{name}/plans/ (if exists)
|
|
42
|
+
|
|
43
|
+
**Load codebase context (if available):**
|
|
44
|
+
@.specd/codebase/PATTERNS.md
|
|
45
|
+
</context>
|
|
46
|
+
|
|
47
|
+
<process>
|
|
48
|
+
1. **Parse Arguments** — Extract feature name and optional subcommand
|
|
49
|
+
2. **Validate** — Check feature exists with required files
|
|
50
|
+
3. **Route Subcommand:**
|
|
51
|
+
- No subcommand → Generate base blueprint
|
|
52
|
+
- `wireframes` → Generate/update with wireframes tab
|
|
53
|
+
- `diagrams` → Generate/update with diagrams tab
|
|
54
|
+
4. **Generate HTML** — Read files, parse content, embed in template
|
|
55
|
+
5. **Open Browser** — Run `open` command to display
|
|
56
|
+
</process>
|
|
57
|
+
|
|
58
|
+
<success_criteria>
|
|
59
|
+
- [ ] Feature validated (exists, has FEATURE.md, CONTEXT.md, DECISIONS.md)
|
|
60
|
+
- [ ] HTML generated at `.specd/features/{name}/blueprint/index.html`
|
|
61
|
+
- [ ] All content properly embedded (decisions, context, plans if exist)
|
|
62
|
+
- [ ] Browser opens with the blueprint
|
|
63
|
+
- [ ] Wireframes/Diagrams tabs enabled if generated
|
|
64
|
+
</success_criteria>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: specd:new
|
|
3
|
-
description: Initialize a new feature
|
|
2
|
+
name: specd:feature:new
|
|
3
|
+
description: Initialize a new feature and start the first discussion
|
|
4
4
|
argument-hint: "[feature-name]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
|
@@ -63,5 +63,5 @@ Feature name: $ARGUMENTS
|
|
|
63
63
|
- [ ] STATE.md tracks current position
|
|
64
64
|
- [ ] config.json created
|
|
65
65
|
- [ ] Committed to git
|
|
66
|
-
- [ ] User knows next options: discuss
|
|
66
|
+
- [ ] User knows next options: `/specd:feature:discuss`, `/specd:feature:research`, or continue talking
|
|
67
67
|
</success_criteria>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: specd:plan
|
|
3
|
-
description: Create
|
|
2
|
+
name: specd:feature:plan
|
|
3
|
+
description: Create roadmap with phase overview (no detailed plans)
|
|
4
4
|
argument-hint: "[feature-name]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
|
@@ -12,17 +12,13 @@ allowed-tools:
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
<objective>
|
|
15
|
-
Create
|
|
15
|
+
Create a roadmap with phase overview and empty phase directories. Detailed PLAN.md files are created later per-phase with `/specd:phase:plan`.
|
|
16
16
|
|
|
17
17
|
**Creates:**
|
|
18
|
-
- `.specd/features/{name}/ROADMAP.md` — Phase overview with dependencies
|
|
19
|
-
- `.specd/features/{name}/plans/phase-{NN}
|
|
18
|
+
- `.specd/features/{name}/ROADMAP.md` — Phase overview with goals, deliverables, dependencies
|
|
19
|
+
- `.specd/features/{name}/plans/phase-{NN}/` — Empty phase directories
|
|
20
20
|
|
|
21
|
-
**
|
|
22
|
-
- Files to create/modify with specific paths
|
|
23
|
-
- Code patterns to follow (from codebase)
|
|
24
|
-
- Verification commands
|
|
25
|
-
- Clear completion criteria
|
|
21
|
+
**Does NOT create PLAN.md files.** Those are created just-in-time with `/specd:phase:plan` before executing each phase.
|
|
26
22
|
|
|
27
23
|
**Prerequisite:** Feature should have sufficient discussion context (FEATURE.md, CONTEXT.md, DECISIONS.md). Research (RESEARCH.md) recommended but optional.
|
|
28
24
|
</objective>
|
|
@@ -50,10 +46,10 @@ Feature name: $ARGUMENTS
|
|
|
50
46
|
1. **Validate** — Check feature exists, has required context
|
|
51
47
|
2. **Load Context** — Read ALL feature and codebase docs
|
|
52
48
|
3. **Assess Readiness** — Check if enough context to plan
|
|
53
|
-
4. **Derive Phases** — Based on dependencies (types
|
|
54
|
-
5. **
|
|
55
|
-
6. **
|
|
56
|
-
7. **
|
|
49
|
+
4. **Derive Phases** — Based on dependencies (types->API->UI pattern)
|
|
50
|
+
5. **Write ROADMAP.md** — Phase overview with goals, deliverables, dependencies
|
|
51
|
+
6. **Create Phase Directories** — Empty `plans/phase-{NN}/` directories
|
|
52
|
+
7. **Update STATE.md** — Stage moves to "planned"
|
|
57
53
|
8. **Commit and Present**
|
|
58
54
|
</process>
|
|
59
55
|
|
|
@@ -61,9 +57,10 @@ Feature name: $ARGUMENTS
|
|
|
61
57
|
- [ ] Feature validated with sufficient context
|
|
62
58
|
- [ ] All context loaded (feature, codebase, research)
|
|
63
59
|
- [ ] Phases derived from dependency analysis
|
|
64
|
-
- [ ]
|
|
65
|
-
- [ ]
|
|
66
|
-
- [ ]
|
|
60
|
+
- [ ] ROADMAP.md provides clear phase overview
|
|
61
|
+
- [ ] Empty phase directories created
|
|
62
|
+
- [ ] No PLAN.md files created (that's `/specd:phase:plan`)
|
|
63
|
+
- [ ] STATE.md updated to "planned" stage
|
|
67
64
|
- [ ] Committed to git
|
|
68
|
-
- [ ] User knows
|
|
65
|
+
- [ ] User knows next step: `/specd:phase:prepare` or `/specd:phase:plan` for first phase
|
|
69
66
|
</success_criteria>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: specd:research
|
|
2
|
+
name: specd:feature:research
|
|
3
3
|
description: Research how to implement a feature - spawns parallel agents for codebase, external, and pitfalls research
|
|
4
4
|
argument-hint: "[feature-name]"
|
|
5
5
|
allowed-tools:
|
|
@@ -48,7 +48,7 @@ Feature name: $ARGUMENTS
|
|
|
48
48
|
|
|
49
49
|
```bash
|
|
50
50
|
# Check feature exists
|
|
51
|
-
[ -d ".specd/features/$ARGUMENTS" ] || { echo "Feature not found. Run /specd:new
|
|
51
|
+
[ -d ".specd/features/$ARGUMENTS" ] || { echo "Feature not found. Run /specd:feature:new first."; exit 1; }
|
|
52
52
|
|
|
53
53
|
# Check if RESEARCH.md exists
|
|
54
54
|
[ -f ".specd/features/$ARGUMENTS/RESEARCH.md" ] && echo "existing"
|
|
@@ -419,7 +419,7 @@ Present completion:
|
|
|
419
419
|
```
|
|
420
420
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
421
421
|
RESEARCH COMPLETE ✓
|
|
422
|
-
|
|
422
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
423
423
|
|
|
424
424
|
**Feature:** {name}
|
|
425
425
|
**Confidence:** {level}
|
|
@@ -437,7 +437,7 @@ Present completion:
|
|
|
437
437
|
|
|
438
438
|
## Next Steps
|
|
439
439
|
|
|
440
|
-
/specd:plan
|
|
440
|
+
/specd:feature:plan {name} — Create roadmap with phase overview
|
|
441
441
|
|
|
442
442
|
<sub>/clear first — fresh context window</sub>
|
|
443
443
|
```
|
|
@@ -453,5 +453,5 @@ Present completion:
|
|
|
453
453
|
- [ ] Results synthesized into RESEARCH.md
|
|
454
454
|
- [ ] Decisions recorded in DECISIONS.md
|
|
455
455
|
- [ ] Files committed
|
|
456
|
-
- [ ] User knows next step is
|
|
456
|
+
- [ ] User knows next step is `/specd:feature:plan`
|
|
457
457
|
</success_criteria>
|