specdacular 0.2.3 → 0.5.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.
Files changed (32) hide show
  1. package/README.md +93 -25
  2. package/commands/specd/blueprint.md +64 -0
  3. package/commands/specd/{discuss-feature.md → feature/discuss.md} +1 -1
  4. package/commands/specd/{new-feature.md → feature/new.md} +3 -3
  5. package/commands/specd/{plan-feature.md → feature/plan.md} +15 -18
  6. package/commands/specd/{research-feature.md → feature/research.md} +5 -5
  7. package/commands/specd/help.md +50 -24
  8. package/commands/specd/{execute-plan.md → phase/execute.md} +4 -4
  9. package/commands/specd/phase/insert.md +62 -0
  10. package/commands/specd/phase/plan.md +73 -0
  11. package/commands/specd/phase/prepare.md +75 -0
  12. package/commands/specd/phase/renumber.md +66 -0
  13. package/commands/specd/phase/research.md +65 -0
  14. package/package.json +1 -1
  15. package/specdacular/agents/feature-researcher.md +4 -2
  16. package/specdacular/templates/blueprint/index.html +110 -0
  17. package/specdacular/templates/blueprint/scripts.js +71 -0
  18. package/specdacular/templates/blueprint/styles.css +429 -0
  19. package/specdacular/templates/features/STATE.md +6 -4
  20. package/specdacular/templates/features/config.json +3 -0
  21. package/specdacular/workflows/blueprint-diagrams.md +273 -0
  22. package/specdacular/workflows/blueprint-wireframes.md +312 -0
  23. package/specdacular/workflows/blueprint.md +372 -0
  24. package/specdacular/workflows/discuss-feature.md +4 -4
  25. package/specdacular/workflows/execute-plan.md +39 -5
  26. package/specdacular/workflows/insert-phase.md +222 -0
  27. package/specdacular/workflows/new-feature.md +5 -5
  28. package/specdacular/workflows/plan-feature.md +60 -233
  29. package/specdacular/workflows/plan-phase.md +363 -0
  30. package/specdacular/workflows/prepare-phase.md +759 -0
  31. package/specdacular/workflows/renumber-phases.md +273 -0
  32. package/specdacular/workflows/research-phase.md +585 -0
package/README.md CHANGED
@@ -28,14 +28,22 @@ 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-feature (discuss research)* plan-feature
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
32
35
  ```
33
36
 
34
37
  **You control the rhythm:**
35
- - `new-feature` — Initialize and start first discussion
36
- - `discuss-feature` — Refine understanding (call many times)
37
- - `research-feature` — Investigate implementation approaches
38
- - `plan-feature` — Create executable task plans
38
+ - `feature:new` — Initialize and start first discussion
39
+ - `feature:discuss` — Refine understanding (call many times)
40
+ - `feature:research` — Investigate implementation approaches
41
+ - `feature:plan` — Create roadmap with phase overview
42
+ - `phase:prepare` — Discuss gray areas + optionally research patterns (per phase)
43
+ - `phase:plan` — Create detailed PLAN.md files for one phase
44
+ - `phase:execute` — Execute plans with progress tracking
45
+ - `phase:insert` — Insert a new phase mid-flight with decimal numbering (e.g., Phase 3.1)
46
+ - `phase:renumber` — Clean up decimal phases to sequential integers
39
47
 
40
48
  ---
41
49
 
@@ -66,19 +74,31 @@ In Claude Code:
66
74
  |---------|-------------|
67
75
  | `/specd:map-codebase` | Analyze codebase with parallel agents |
68
76
 
69
- ### Feature Planning
77
+ ### Feature Commands
70
78
 
71
79
  | Command | Description |
72
80
  |---------|-------------|
73
- | `/specd:new-feature [name]` | Initialize a feature, start first discussion |
74
- | `/specd:discuss-feature [name]` | Continue/deepen discussion (iterative) |
75
- | `/specd:research-feature [name]` | Research implementation with parallel agents |
76
- | `/specd:plan-feature [name]` | Create executable task plans |
81
+ | `/specd:feature:new [name]` | Initialize a feature, start first discussion |
82
+ | `/specd:feature:discuss [name]` | Continue/deepen discussion (iterative) |
83
+ | `/specd:feature:research [name]` | Research implementation with parallel agents |
84
+ | `/specd:feature:plan [name]` | Create roadmap with phase overview |
85
+
86
+ ### Phase Commands
87
+
88
+ | Command | Description |
89
+ |---------|-------------|
90
+ | `/specd:phase:prepare [feature] [phase]` | Discuss gray areas + optionally research patterns |
91
+ | `/specd:phase:research [feature] [phase]` | Research patterns for a phase (standalone) |
92
+ | `/specd:phase:plan [feature] [phase]` | Create detailed PLAN.md files for one phase |
93
+ | `/specd:phase:execute [feature]` | Execute plans with progress tracking |
94
+ | `/specd:phase:insert [feature] [after] [desc]` | Insert a new phase after an existing one |
95
+ | `/specd:phase:renumber [feature]` | Renumber phases to clean integer sequence |
77
96
 
78
97
  ### Utilities
79
98
 
80
99
  | Command | Description |
81
100
  |---------|-------------|
101
+ | `/specd:blueprint [name] [sub]` | Generate visual blueprint (wireframes, diagrams) |
82
102
  | `/specd:help` | Show available commands |
83
103
  | `/specd:update` | Update to latest version |
84
104
 
@@ -97,7 +117,7 @@ Creates `.specd/codebase/` with 4 AI-optimized documents.
97
117
  ### Plan a Feature
98
118
 
99
119
  ```
100
- /specd:new-feature user-dashboard
120
+ /specd:feature:new user-dashboard
101
121
  ```
102
122
 
103
123
  Creates `.specd/features/user-dashboard/` with:
@@ -106,11 +126,18 @@ Creates `.specd/features/user-dashboard/` with:
106
126
  - `DECISIONS.md` — Decisions with dates and rationale
107
127
  - `STATE.md` — Progress tracking
108
128
 
109
- Then refine and plan:
129
+ Then refine and create a roadmap:
130
+ ```
131
+ /specd:feature:discuss user-dashboard # Clarify gray areas
132
+ /specd:feature:research user-dashboard # Research implementation
133
+ /specd:feature:plan user-dashboard # Create roadmap with phases
134
+ ```
135
+
136
+ Then for each phase, prepare, plan, and execute:
110
137
  ```
111
- /specd:discuss-feature user-dashboard # Clarify gray areas
112
- /specd:research-feature user-dashboard # Research implementation
113
- /specd:plan-feature user-dashboard # Create executable plans
138
+ /specd:phase:prepare user-dashboard 1 # Discuss + optionally research
139
+ /specd:phase:plan user-dashboard 1 # Create detailed task plans
140
+ /specd:phase:execute user-dashboard # Execute with progress tracking
114
141
  ```
115
142
 
116
143
  ---
@@ -148,25 +175,58 @@ The feature planning flow accumulates context over multiple sessions:
148
175
 
149
176
  ```
150
177
  ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
151
- new-feature │ ──▶ │ discuss │ ◀─▶ │ research
152
- │ │ │ feature │ │ feature
178
+ feature:new │ ──▶ │ feature: │ ◀─▶ │ feature:
179
+ │ │ │ discuss │ │ research
153
180
  └──────────────┘ └──────────────┘ └──────────────┘
154
181
 
155
182
 
156
183
  ┌──────────────┐
157
- plan-feature
158
- │ │
184
+ feature:plan (creates roadmap)
159
185
  └──────────────┘
160
186
 
161
187
 
162
- Executable PLAN.md
163
- files for agents
188
+ ┌─────────────────────────────┐
189
+ │ For each phase: │
190
+ │ ┌──────────┐ │
191
+ │ │ phase: │ │
192
+ │ │ prepare │ │
193
+ │ └──────────┘ │
194
+ │ │ │
195
+ │ ▼ │
196
+ │ ┌──────────┐ │
197
+ │ │ phase: │ │
198
+ │ │ plan │ │
199
+ │ └──────────┘ │
200
+ │ │ │
201
+ │ ▼ │
202
+ │ ┌──────────┐ │
203
+ │ │ phase: │ │
204
+ │ │ execute │ │
205
+ │ └──────────┘ │
206
+ │ │
207
+ │ Mid-flight adjustments: │
208
+ │ ┌──────────┐ │
209
+ │ │ phase: │ ──┐ │
210
+ │ │ insert │ │ │
211
+ │ └──────────┘ │ │
212
+ │ ┌──────▼────────┐ │
213
+ │ │ phase: │ │
214
+ │ │ renumber │ │
215
+ │ └──────────────┘ │
216
+ └─────────────────────────────┘
164
217
  ```
165
218
 
166
219
  Each session updates:
167
220
  - `CONTEXT.md` — Resolved questions accumulate
168
221
  - `DECISIONS.md` — Decisions with rationale accumulate
169
222
 
223
+ **Phase-level commands:**
224
+ - `phase:prepare` — Just-in-time discussion + optional research for a specific phase
225
+ - `phase:plan` — Create detailed PLAN.md files for one phase (just-in-time, not upfront)
226
+ - `phase:execute` — Execute plans with deviation tracking
227
+ - `phase:insert` — Insert urgent work mid-flight as decimal phase (e.g., 3.1)
228
+ - `phase:renumber` — Clean up decimal numbering to sequential integers
229
+
170
230
  Plans are prompts for implementing agents with:
171
231
  - Specific file paths
172
232
  - Code patterns to follow
@@ -191,16 +251,20 @@ your-project/
191
251
  │ └── features/ # From feature commands
192
252
  │ └── user-dashboard/
193
253
  │ ├── FEATURE.md # Technical requirements
194
- │ ├── CONTEXT.md # Discussion context
195
- │ ├── DECISIONS.md # Decision log
254
+ │ ├── CONTEXT.md # Feature-level discussion
255
+ │ ├── DECISIONS.md # Decision log (feature + phase)
196
256
  │ ├── STATE.md # Progress tracking
197
- │ ├── RESEARCH.md # Research findings
257
+ │ ├── RESEARCH.md # Feature-level research
198
258
  │ ├── ROADMAP.md # Phase overview
199
259
  │ └── plans/ # Executable plans
200
260
  │ ├── phase-01/
201
- │ │ ├── 01-PLAN.md
261
+ │ │ ├── CONTEXT.md # Phase discussion (from phase:prepare)
262
+ │ │ ├── RESEARCH.md # Phase research (from phase:prepare or phase:research)
263
+ │ │ ├── 01-PLAN.md # From phase:plan
202
264
  │ │ └── 02-PLAN.md
203
265
  │ └── phase-02/
266
+ │ ├── CONTEXT.md
267
+ │ ├── RESEARCH.md
204
268
  │ └── 01-PLAN.md
205
269
  └── ...
206
270
  ```
@@ -223,6 +287,10 @@ These docs answer questions Claude can't get from reading code:
223
287
 
224
288
  Each `PLAN.md` is literally what you'd send to an implementing agent. It contains everything needed to implement without asking questions.
225
289
 
290
+ ### Just-in-Time Planning
291
+
292
+ 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.
293
+
226
294
  ### Decisions Are Permanent
227
295
 
228
296
  Once recorded in `DECISIONS.md`, decisions aren't re-litigated. Each has date, context, rationale, and implications.
@@ -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,5 +1,5 @@
1
1
  ---
2
- name: specd:discuss-feature
2
+ name: specd:feature:discuss
3
3
  description: Continue or deepen feature discussion - can be called multiple times
4
4
  argument-hint: "[feature-name]"
5
5
  allowed-tools:
@@ -1,6 +1,6 @@
1
1
  ---
2
- name: specd:new-feature
3
- description: Initialize a new feature with technical questioning and start the first discussion
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-feature, research-feature, or continue talking
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-feature
3
- description: Create executable task plans for implementing a feature
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 executable task plans that an agent can implement without asking clarifying questions.
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}/{NN}-PLAN.md`Executable task plans
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
- **Each PLAN.md is a prompt** for an implementing agent with:
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 (typesAPIUI pattern)
54
- 5. **Break Into Tasks** — 2-3 tasks per plan, sized for agent execution
55
- 6. **Write PLAN Files** — As prompts for implementing agent
56
- 7. **Write ROADMAP.md** — Phase overview
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
- - [ ] Tasks are specific (files, actions, verification)
65
- - [ ] PLAN.md files are self-contained prompts
66
- - [ ] ROADMAP.md provides clear overview
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 how to execute plans
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-feature
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-feature first."; exit 1; }
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-feature {name} — Create executable task plans
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 /specd:plan-feature
456
+ - [ ] User knows next step is `/specd:feature:plan`
457
457
  </success_criteria>
@@ -20,22 +20,33 @@ Display available specdacular commands and usage guidance.
20
20
 
21
21
  | Command | Description |
22
22
  |---------|-------------|
23
- | `/specd:map-codebase` | Analyze codebase with parallel agents produce AI-optimized docs |
23
+ | `/specd:map-codebase` | Analyze codebase with parallel agents -> produce AI-optimized docs |
24
24
 
25
- ### Feature Flow
25
+ ### Feature Commands
26
26
 
27
27
  | Command | Description |
28
28
  |---------|-------------|
29
- | `/specd:new-feature [name]` | Initialize a feature, start first discussion |
30
- | `/specd:discuss-feature [name]` | Continue/deepen feature discussion (can call many times) |
31
- | `/specd:research-feature [name]` | Research implementation with parallel agents |
32
- | `/specd:plan-feature [name]` | Create executable task plans for agents |
33
- | `/specd:execute-plan [feature] [plan]` | Execute a plan with progress tracking |
29
+ | `/specd:feature:new [name]` | Initialize a feature, start first discussion |
30
+ | `/specd:feature:discuss [name]` | Continue/deepen feature discussion (can call many times) |
31
+ | `/specd:feature:research [name]` | Research implementation with parallel agents |
32
+ | `/specd:feature:plan [name]` | Create roadmap with phase overview |
34
33
 
35
- ### Utilities
34
+ ### Phase Commands
36
35
 
37
36
  | Command | Description |
38
37
  |---------|-------------|
38
+ | `/specd:phase:prepare [feature] [phase]` | Discuss gray areas + optionally research patterns |
39
+ | `/specd:phase:research [feature] [phase]` | Research patterns for a phase (standalone) |
40
+ | `/specd:phase:plan [feature] [phase]` | Create detailed PLAN.md files for one phase |
41
+ | `/specd:phase:execute [feature] [plan]` | Execute a plan with progress tracking |
42
+ | `/specd:phase:insert [feature] [after] [desc]` | Insert a new phase after an existing one |
43
+ | `/specd:phase:renumber [feature]` | Renumber phases to clean integer sequence |
44
+
45
+ ### Other
46
+
47
+ | Command | Description |
48
+ |---------|-------------|
49
+ | `/specd:blueprint [name] [sub]` | Generate visual blueprint (wireframes, diagrams) |
39
50
  | `/specd:update` | Update Specdacular to the latest version |
40
51
  | `/specd:help` | Show this help |
41
52
 
@@ -46,20 +57,27 @@ Display available specdacular commands and usage guidance.
46
57
  The feature flow helps you plan features specific enough that an agent can implement without asking questions.
47
58
 
48
59
  ```
49
- new-feature (discuss research)* plan-feature execute-plan*
60
+ feature:new -> feature:discuss -> feature:research -> feature:plan (roadmap) ->
61
+ [for each phase]
62
+ phase:prepare? -> phase:plan -> phase:execute
63
+ phase:insert? -> phase:renumber? <- mid-flight adjustments
50
64
  ```
51
65
 
52
66
  **You control the rhythm:**
53
- - `new-feature` — Creates structure, asks initial questions, starts first discussion
54
- - `discuss-feature` — Can be called **many times** to refine understanding
55
- - `research-feature` — Can be called **many times** to investigate
56
- - `plan-feature` — When satisfied, creates executable plans for an agent
57
- - `execute-plan` — Execute plans with progress tracking and deviation logging
67
+ - `feature:new` — Creates structure, asks initial questions, starts first discussion
68
+ - `feature:discuss` — Can be called **many times** to refine understanding
69
+ - `feature:research` — Can be called **many times** to investigate
70
+ - `feature:plan` — Creates roadmap with phases (no detailed plans yet)
71
+ - `phase:prepare` — Discuss gray areas + optionally research (per phase)
72
+ - `phase:plan` — Create detailed PLAN.md files for one phase
73
+ - `phase:execute` — Execute plans with progress tracking
74
+ - `phase:insert` — Insert a new phase mid-flight with decimal numbering (e.g., Phase 3.1)
75
+ - `phase:renumber` — Clean up decimal phases to sequential integers
58
76
 
59
77
  ### Quick Start
60
78
 
61
79
  ```
62
- /specd:new-feature user-dashboard
80
+ /specd:feature:new user-dashboard
63
81
  ```
64
82
 
65
83
  This creates `.specd/features/user-dashboard/` with:
@@ -69,12 +87,20 @@ This creates `.specd/features/user-dashboard/` with:
69
87
  - `CHANGELOG.md` — Auto-captured implementation decisions during execution
70
88
  - `STATE.md` — Progress tracking
71
89
 
72
- After initialization, refine with discussion and research, then create plans:
90
+ After initialization, refine and plan:
91
+
92
+ ```
93
+ /specd:feature:discuss user-dashboard # Clarify gray areas
94
+ /specd:feature:research user-dashboard # Research implementation
95
+ /specd:feature:plan user-dashboard # Create roadmap
96
+ ```
97
+
98
+ Then for each phase:
73
99
 
74
100
  ```
75
- /specd:discuss-feature user-dashboard # Clarify gray areas
76
- /specd:research-feature user-dashboard # Research implementation
77
- /specd:plan-feature user-dashboard # Create executable plans
101
+ /specd:phase:prepare user-dashboard 1 # Discuss + optionally research
102
+ /specd:phase:plan user-dashboard 1 # Create detailed plans
103
+ /specd:phase:execute user-dashboard # Execute with progress tracking
78
104
  ```
79
105
 
80
106
  ---
@@ -99,10 +125,10 @@ Spawns 4 parallel agents to analyze your codebase and creates `.specd/codebase/`
99
125
  These docs are **for Claude, not humans**.
100
126
 
101
127
  Each document answers a question Claude can't get from reading code:
102
- - MAP.md "Where is X? What functions exist?"
103
- - PATTERNS.md "How do I write code that fits?"
104
- - STRUCTURE.md "Where do I put new code?"
105
- - CONCERNS.md "What will bite me?"
128
+ - MAP.md -> "Where is X? What functions exist?"
129
+ - PATTERNS.md -> "How do I write code that fits?"
130
+ - STRUCTURE.md -> "Where do I put new code?"
131
+ - CONCERNS.md -> "What will bite me?"
106
132
 
107
133
  **Principle:** Don't document what Claude can grep. Document tribal knowledge, gotchas, and patterns.
108
134
 
@@ -110,7 +136,7 @@ Each document answers a question Claude can't get from reading code:
110
136
 
111
137
  ## Updating
112
138
 
113
- When an update is available, you'll see `⬆ /specd:update` in your statusline. Run:
139
+ When an update is available, you'll see `update available` in your statusline. Run:
114
140
  ```
115
141
  /specd:update
116
142
  ```
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: specd:execute-plan
2
+ name: specd:phase:execute
3
3
  description: Execute a feature plan with progress tracking
4
4
  argument-hint: "[feature-name] [plan-path]"
5
5
  allowed-tools:
@@ -19,10 +19,10 @@ Execute a plan from a feature, tracking progress and logging deviations.
19
19
  1. Load context — STATE.md, DECISIONS.md, RESEARCH.md, codebase patterns
20
20
  2. Find next plan — First incomplete plan, or accept path as argument
21
21
  3. Execute tasks with:
22
- - Auto-fix blockers/bugs log to CHANGELOG.md
23
- - Ask about architectural changes wait for user
22
+ - Auto-fix blockers/bugs -> log to CHANGELOG.md
23
+ - Ask about architectural changes -> wait for user
24
24
  - Run verification after each task
25
- - Stop on verification failure ask user (retry/skip/stop)
25
+ - Stop on verification failure -> ask user (retry/skip/stop)
26
26
  - Commit after each task
27
27
  4. Update progress — STATE.md with completed tasks
28
28
  5. Suggest next — Next plan to execute
@@ -0,0 +1,62 @@
1
+ ---
2
+ name: specd:phase:insert
3
+ description: Insert a new phase after an existing one (decimal numbering)
4
+ argument-hint: "[feature-name] [after-phase] [description...]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ ---
13
+
14
+ <objective>
15
+ Insert a new phase after an existing one using decimal numbering (e.g., Phase 03.1 after Phase 03).
16
+
17
+ **What it does:**
18
+ 1. Parse arguments — feature name, target phase number, description
19
+ 2. Validate — Feature exists, ROADMAP.md exists, target phase exists
20
+ 3. Find next decimal — Scan existing decimals, calculate next (03.1, 03.2, etc.)
21
+ 4. Create phase directory — `plans/phase-{NN.M}/`
22
+ 5. Update ROADMAP.md — Insert new phase section with `(INSERTED)` marker
23
+ 6. Update STATE.md — Add roadmap evolution note, add unchecked phase checkbox
24
+ 7. Update config.json — Increment `phases_count`
25
+ 8. Show next steps
26
+ </objective>
27
+
28
+ <execution_context>
29
+ @~/.claude/specdacular/workflows/insert-phase.md
30
+ </execution_context>
31
+
32
+ <context>
33
+ Arguments: $ARGUMENTS (expects: feature-name after-phase description...)
34
+
35
+ **Load feature context:**
36
+ @.specd/features/{name}/ROADMAP.md
37
+ @.specd/features/{name}/STATE.md
38
+ @.specd/features/{name}/config.json
39
+ </context>
40
+
41
+ <process>
42
+ 1. **Parse Arguments** — Extract feature-name, after-phase (integer), description
43
+ 2. **Validate** — Feature exists, ROADMAP.md exists, target phase exists
44
+ 3. **Find Next Decimal** — Scan for existing decimal directories, calculate next
45
+ 4. **Create Phase Directory** — `plans/phase-{NN.M}/`
46
+ 5. **Update ROADMAP.md** — Insert after target phase with `(INSERTED)` marker
47
+ 6. **Update STATE.md** — Add evolution note and unchecked checkbox
48
+ 7. **Update config.json** — Increment `phases_count`
49
+ 8. **Completion** — Show summary with next steps
50
+ </process>
51
+
52
+ <success_criteria>
53
+ - [ ] Arguments parsed correctly (feature, phase number, description)
54
+ - [ ] Feature and target phase validated
55
+ - [ ] Decimal number calculated correctly (based on existing decimals)
56
+ - [ ] Phase directory created: `plans/phase-{NN.M}/`
57
+ - [ ] ROADMAP.md updated with new phase entry (includes `(INSERTED)` marker)
58
+ - [ ] Phase inserted in correct position (after target phase, before next phase)
59
+ - [ ] STATE.md updated with roadmap evolution note and unchecked checkbox
60
+ - [ ] config.json `phases_count` incremented
61
+ - [ ] User informed of next steps
62
+ </success_criteria>