specdacular 0.2.5 → 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 +81 -45
  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 -29
  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/{discuss-phase.md → phase/prepare.md} +21 -9
  12. package/commands/specd/phase/renumber.md +66 -0
  13. package/commands/specd/{research-phase.md → phase/research.md} +3 -1
  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/workflows/blueprint-diagrams.md +273 -0
  21. package/specdacular/workflows/blueprint-wireframes.md +312 -0
  22. package/specdacular/workflows/blueprint.md +372 -0
  23. package/specdacular/workflows/discuss-feature.md +4 -4
  24. package/specdacular/workflows/execute-plan.md +4 -4
  25. package/specdacular/workflows/insert-phase.md +222 -0
  26. package/specdacular/workflows/new-feature.md +5 -5
  27. package/specdacular/workflows/plan-feature.md +60 -233
  28. package/specdacular/workflows/plan-phase.md +363 -0
  29. package/specdacular/workflows/prepare-phase.md +759 -0
  30. package/specdacular/workflows/renumber-phases.md +273 -0
  31. package/specdacular/workflows/research-phase.md +5 -3
  32. package/specdacular/workflows/discuss-phase.md +0 -389
package/README.md CHANGED
@@ -28,18 +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-feature plan-feature
32
- (discuss-phase? research-phase? → execute-plan)* per phase
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
37
  **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
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
43
47
 
44
48
  ---
45
49
 
@@ -70,22 +74,31 @@ In Claude Code:
70
74
  |---------|-------------|
71
75
  | `/specd:map-codebase` | Analyze codebase with parallel agents |
72
76
 
73
- ### Feature Planning
77
+ ### Feature Commands
74
78
 
75
79
  | Command | Description |
76
80
  |---------|-------------|
77
- | `/specd:new-feature [name]` | Initialize a feature, start first discussion |
78
- | `/specd:discuss-feature [name]` | Continue/deepen discussion (iterative) |
79
- | `/specd:research-feature [name]` | Research implementation with parallel agents |
80
- | `/specd:plan-feature [name]` | Create executable task plans |
81
- | `/specd:discuss-phase [feature] [phase]` | Discuss a phase before execution |
82
- | `/specd:research-phase [feature] [phase]` | Research patterns for a phase |
83
- | `/specd:execute-plan [feature]` | Execute plans with progress tracking |
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 |
84
96
 
85
97
  ### Utilities
86
98
 
87
99
  | Command | Description |
88
100
  |---------|-------------|
101
+ | `/specd:blueprint [name] [sub]` | Generate visual blueprint (wireframes, diagrams) |
89
102
  | `/specd:help` | Show available commands |
90
103
  | `/specd:update` | Update to latest version |
91
104
 
@@ -104,7 +117,7 @@ Creates `.specd/codebase/` with 4 AI-optimized documents.
104
117
  ### Plan a Feature
105
118
 
106
119
  ```
107
- /specd:new-feature user-dashboard
120
+ /specd:feature:new user-dashboard
108
121
  ```
109
122
 
110
123
  Creates `.specd/features/user-dashboard/` with:
@@ -113,18 +126,18 @@ Creates `.specd/features/user-dashboard/` with:
113
126
  - `DECISIONS.md` — Decisions with dates and rationale
114
127
  - `STATE.md` — Progress tracking
115
128
 
116
- Then refine and plan:
129
+ Then refine and create a roadmap:
117
130
  ```
118
- /specd:discuss-feature user-dashboard # Clarify gray areas
119
- /specd:research-feature user-dashboard # Research implementation
120
- /specd:plan-feature user-dashboard # Create executable plans
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
121
134
  ```
122
135
 
123
- Optionally, before executing each phase:
136
+ Then for each phase, prepare, plan, and execute:
124
137
  ```
125
- /specd:discuss-phase user-dashboard 1 # Discuss phase 1 specifics
126
- /specd:research-phase user-dashboard 1 # Research phase 1 patterns
127
- /specd:execute-plan user-dashboard # Execute with phase context
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
128
141
  ```
129
142
 
130
143
  ---
@@ -162,28 +175,44 @@ The feature planning flow accumulates context over multiple sessions:
162
175
 
163
176
  ```
164
177
  ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
165
- new-feature │ ──▶ │ discuss │ ◀─▶ │ research
166
- │ │ │ feature │ │ feature
178
+ feature:new │ ──▶ │ feature: │ ◀─▶ │ feature:
179
+ │ │ │ discuss │ │ research
167
180
  └──────────────┘ └──────────────┘ └──────────────┘
168
181
 
169
182
 
170
183
  ┌──────────────┐
171
- plan-feature
184
+ feature:plan (creates roadmap)
172
185
  └──────────────┘
173
186
 
174
187
 
175
188
  ┌─────────────────────────────┐
176
189
  │ For each phase: │
177
- ┌─────────┐ ┌─────────┐
178
- │ │ discuss research │ │
179
- │ │ phase phase │ │
180
- └─────────┘ └─────────┘
181
-
182
- └─────┬─────┘
183
-
184
- ┌────────────┐
185
- execute-plan│
186
- └────────────┘
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
+ │ └──────────────┘ │
187
216
  └─────────────────────────────┘
188
217
  ```
189
218
 
@@ -191,9 +220,12 @@ Each session updates:
191
220
  - `CONTEXT.md` — Resolved questions accumulate
192
221
  - `DECISIONS.md` — Decisions with rationale accumulate
193
222
 
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
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
197
229
 
198
230
  Plans are prompts for implementing agents with:
199
231
  - Specific file paths
@@ -226,9 +258,9 @@ your-project/
226
258
  │ ├── ROADMAP.md # Phase overview
227
259
  │ └── plans/ # Executable plans
228
260
  │ ├── phase-01/
229
- │ │ ├── CONTEXT.md # Phase discussion (optional)
230
- │ │ ├── RESEARCH.md # Phase research (optional)
231
- │ │ ├── 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
232
264
  │ │ └── 02-PLAN.md
233
265
  │ └── phase-02/
234
266
  │ ├── CONTEXT.md
@@ -255,6 +287,10 @@ These docs answer questions Claude can't get from reading code:
255
287
 
256
288
  Each `PLAN.md` is literally what you'd send to an implementing agent. It contains everything needed to implement without asking questions.
257
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
+
258
294
  ### Decisions Are Permanent
259
295
 
260
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,24 +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:discuss-phase [feature] [phase]` | Discuss a phase before execution |
34
- | `/specd:research-phase [feature] [phase]` | Research patterns for a phase |
35
- | `/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 |
36
33
 
37
- ### Utilities
34
+ ### Phase Commands
38
35
 
39
36
  | Command | Description |
40
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) |
41
50
  | `/specd:update` | Update Specdacular to the latest version |
42
51
  | `/specd:help` | Show this help |
43
52
 
@@ -48,23 +57,27 @@ Display available specdacular commands and usage guidance.
48
57
  The feature flow helps you plan features specific enough that an agent can implement without asking questions.
49
58
 
50
59
  ```
51
- new-feature discuss-feature plan-feature
52
- (discuss-phase? research-phase? → execute-plan)* per phase
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
53
64
  ```
54
65
 
55
66
  **You control the rhythm:**
56
- - `new-feature` — Creates structure, asks initial questions, starts first discussion
57
- - `discuss-feature` — Can be called **many times** to refine understanding
58
- - `research-feature` — Can be called **many times** to investigate
59
- - `plan-feature` — When satisfied, creates executable plans for an agent
60
- - `discuss-phase` — Optional: dive deeper into phase specifics before execution
61
- - `research-phase` — Optional: research patterns for a specific phase
62
- - `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
63
76
 
64
77
  ### Quick Start
65
78
 
66
79
  ```
67
- /specd:new-feature user-dashboard
80
+ /specd:feature:new user-dashboard
68
81
  ```
69
82
 
70
83
  This creates `.specd/features/user-dashboard/` with:
@@ -74,12 +87,20 @@ This creates `.specd/features/user-dashboard/` with:
74
87
  - `CHANGELOG.md` — Auto-captured implementation decisions during execution
75
88
  - `STATE.md` — Progress tracking
76
89
 
77
- 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:
78
99
 
79
100
  ```
80
- /specd:discuss-feature user-dashboard # Clarify gray areas
81
- /specd:research-feature user-dashboard # Research implementation
82
- /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
83
104
  ```
84
105
 
85
106
  ---
@@ -104,10 +125,10 @@ Spawns 4 parallel agents to analyze your codebase and creates `.specd/codebase/`
104
125
  These docs are **for Claude, not humans**.
105
126
 
106
127
  Each document answers a question Claude can't get from reading code:
107
- - MAP.md "Where is X? What functions exist?"
108
- - PATTERNS.md "How do I write code that fits?"
109
- - STRUCTURE.md "Where do I put new code?"
110
- - 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?"
111
132
 
112
133
  **Principle:** Don't document what Claude can grep. Document tribal knowledge, gotchas, and patterns.
113
134
 
@@ -115,7 +136,7 @@ Each document answers a question Claude can't get from reading code:
115
136
 
116
137
  ## Updating
117
138
 
118
- 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:
119
140
  ```
120
141
  /specd:update
121
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>