specdacular 0.7.0 → 0.7.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.
Files changed (36) hide show
  1. package/README.md +39 -86
  2. package/commands/specd/feature/{next.md → continue.md} +6 -6
  3. package/commands/specd/feature/new.md +2 -2
  4. package/commands/specd/feature/toolbox.md +49 -0
  5. package/commands/specd/help.md +1 -146
  6. package/commands/specd/update.md +4 -6
  7. package/package.json +1 -1
  8. package/specdacular/HELP.md +84 -0
  9. package/specdacular/references/commit-code.md +34 -0
  10. package/specdacular/references/commit-docs.md +35 -0
  11. package/specdacular/references/select-feature.md +57 -0
  12. package/specdacular/references/select-phase.md +30 -0
  13. package/specdacular/templates/features/STATE.md +11 -1
  14. package/specdacular/workflows/{next-feature.md → continue-feature.md} +50 -90
  15. package/specdacular/workflows/discuss-feature.md +4 -27
  16. package/specdacular/workflows/execute-plan.md +75 -47
  17. package/specdacular/workflows/insert-phase.md +50 -26
  18. package/specdacular/workflows/map-codebase.md +4 -30
  19. package/specdacular/workflows/new-feature.md +14 -38
  20. package/specdacular/workflows/plan-feature.md +6 -29
  21. package/specdacular/workflows/plan-phase.md +4 -29
  22. package/specdacular/workflows/prepare-phase.md +4 -35
  23. package/specdacular/workflows/research-phase.md +4 -30
  24. package/specdacular/workflows/review-feature.md +316 -0
  25. package/specdacular/workflows/review-phase.md +4 -30
  26. package/specdacular/workflows/toolbox.md +115 -0
  27. package/commands/specd/feature/discuss.md +0 -66
  28. package/commands/specd/feature/plan.md +0 -68
  29. package/commands/specd/feature/research.md +0 -459
  30. package/commands/specd/phase/execute.md +0 -68
  31. package/commands/specd/phase/insert.md +0 -62
  32. package/commands/specd/phase/plan.md +0 -73
  33. package/commands/specd/phase/prepare.md +0 -75
  34. package/commands/specd/phase/renumber.md +0 -66
  35. package/commands/specd/phase/research.md +0 -65
  36. package/commands/specd/phase/review.md +0 -80
package/README.md CHANGED
@@ -20,13 +20,10 @@ npx specdacular
20
20
  - [Installation](#installation)
21
21
  - [Quick Start](#quick-start)
22
22
  - [Commands](#commands)
23
- - [Feature Commands](#feature-commands-feature)
24
- - [Phase Commands](#phase-commands-phase)
23
+ - [Core Flow](#core-flow)
25
24
  - [Codebase Documentation](#codebase-documentation)
26
25
  - [Utilities](#utilities)
27
26
  - [The Flow in Detail](#the-flow-in-detail)
28
- - [Feature-Level Commands](#feature-level-commands)
29
- - [Phase-Level Commands](#phase-level-commands)
30
27
  - [How It Works](#how-it-works)
31
28
  - [Parallel Agents](#parallel-agents)
32
29
  - [Feature Flow](#feature-flow)
@@ -57,14 +54,17 @@ For monorepos and multi-repo setups, it maps each sub-project in parallel, then
57
54
 
58
55
  ### 2. Plan Features
59
56
 
60
- Two commands drive the entire feature lifecycle:
57
+ Three commands drive the entire feature lifecycle:
61
58
 
62
59
  ```
63
- /specd:feature:new my-feature # Initialize + first discussion
64
- /specd:feature:next my-feature # Everything else — discussion, research, planning, execution, review
60
+ /specd:feature:new my-feature # Initialize + first discussion
61
+ /specd:feature:continue my-feature # Everything else — discussion, research, planning, execution, review
62
+ /specd:feature:toolbox my-feature # Advanced operations menu
65
63
  ```
66
64
 
67
- `feature:next` reads your feature's current state and offers the natural next step. You never need to remember which command comes next.
65
+ `feature:continue` reads your feature's current state and offers the natural next step. You never need to remember which command comes next.
66
+
67
+ `feature:toolbox` gives you direct access to advanced operations — discuss, research, plan, review, or insert a phase — when you want to jump to a specific action outside the normal flow.
68
68
 
69
69
  Works with single projects and multi-project setups (monorepos, multi-repo). In multi-project mode, features are discussed at the system level and routed to the relevant sub-projects, with cross-project dependency tracking and contract validation.
70
70
 
@@ -120,10 +120,10 @@ Creates `.specd/features/user-dashboard/` and starts the first discussion. Claud
120
120
  **Step 2: Drive the lifecycle**
121
121
 
122
122
  ```
123
- /specd:feature:next user-dashboard
123
+ /specd:feature:continue user-dashboard
124
124
  ```
125
125
 
126
- That's it. `feature:next` reads the current state and guides you through each stage:
126
+ That's it. `feature:continue` reads the current state and guides you through each stage:
127
127
 
128
128
  1. **Discussion** — Probes gray areas until clear
129
129
  2. **Research** — Spawns parallel agents for patterns/pitfalls
@@ -133,51 +133,35 @@ That's it. `feature:next` reads the current state and guides you through each st
133
133
  6. **Phase execution** — Implements with progress tracking
134
134
  7. **Phase review** — Compares plans against actual code
135
135
 
136
- After each step, you can continue or stop. Resume anytime with `/specd:feature:next`.
136
+ After each step, you can continue or stop. Resume anytime with `/specd:feature:continue`.
137
137
 
138
138
  **No argument? It picks for you:**
139
139
 
140
140
  ```
141
- /specd:feature:next
141
+ /specd:feature:continue
142
142
  ```
143
143
 
144
144
  Scans for in-progress features and shows a picker.
145
145
 
146
- **Mid-flight adjustments:**
146
+ **Need a specific operation?**
147
147
 
148
148
  ```
149
- /specd:phase:insert user-dashboard 3 "Cache layer" # Insert Phase 3.1
150
- /specd:phase:renumber user-dashboard # Clean up to integers
149
+ /specd:feature:toolbox user-dashboard
151
150
  ```
152
151
 
152
+ Opens a menu with: Discuss, Research, Plan, Review, Insert phase. Useful when you want to jump to a specific action — like running research mid-execution or inserting a phase between existing ones.
153
+
153
154
  ---
154
155
 
155
156
  ## Commands
156
157
 
157
- Commands are organized into **feature** and **phase** namespaces.
158
-
159
- ### Feature Commands (`feature:`)
160
-
161
- Work with a feature as a whole — discuss, research, and create a roadmap.
158
+ ### Core Flow
162
159
 
163
160
  | Command | Description |
164
161
  |---------|-------------|
165
162
  | `/specd:feature:new [name]` | Initialize a feature, start first discussion |
166
- | `/specd:feature:next [name]` | **Drive the entire lifecycle** — picks up where you left off |
167
-
168
- ### Phase Commands (`phase:`)
169
-
170
- Work with individual phases — prepare, plan, and execute one at a time.
171
-
172
- | Command | Description |
173
- |---------|-------------|
174
- | `/specd:phase:prepare [feature] [phase]` | Discuss gray areas + optionally research patterns |
175
- | `/specd:phase:research [feature] [phase]` | Research patterns for a phase (standalone) |
176
- | `/specd:phase:plan [feature] [phase]` | Create detailed PLAN.md files for one phase |
177
- | `/specd:phase:execute [feature]` | Execute plans with progress tracking |
178
- | `/specd:phase:review [feature] [phase]` | Review executed plans against actual code |
179
- | `/specd:phase:insert [feature] [after] [desc]` | Insert a new phase after an existing one |
180
- | `/specd:phase:renumber [feature]` | Renumber phases to clean integer sequence |
163
+ | `/specd:feature:continue [name]` | **Drive the entire lifecycle** — picks up where you left off |
164
+ | `/specd:feature:toolbox [name]` | Advanced operations: discuss, research, plan, review, insert |
181
165
 
182
166
  ### Codebase Documentation
183
167
 
@@ -190,7 +174,6 @@ Work with individual phases — prepare, plan, and execute one at a time.
190
174
  | Command | Description |
191
175
  |---------|-------------|
192
176
  | `/specd:status [--all]` | Show feature status dashboard |
193
- | `/specd:blueprint [name] [sub]` | Generate visual blueprint (wireframes, diagrams) |
194
177
  | `/specd:help` | Show available commands |
195
178
  | `/specd:update` | Update to latest version |
196
179
 
@@ -198,58 +181,30 @@ Work with individual phases — prepare, plan, and execute one at a time.
198
181
 
199
182
  ## The Flow in Detail
200
183
 
201
- ### Feature-Level Commands
202
-
203
- **`feature:new`** creates the feature folder and starts the first discussion. After initialization, offers to continue discussing or come back later with `feature:next`. Output:
184
+ **`feature:new`** creates the feature folder and starts the first discussion. After initialization, offers to continue discussing or come back later with `feature:continue`. Output:
204
185
  - `FEATURE.md` — Technical requirements from the conversation
205
186
  - `CONTEXT.md` — Discussion context (accumulates over time)
206
187
  - `DECISIONS.md` — Decisions with dates, rationale, and implications
207
188
  - `STATE.md` — Progress tracking
208
189
  - `config.json` — Feature configuration
209
190
 
210
- **`feature:next`** is the smart state machine. It reads `config.json` and `STATE.md` to determine where the feature is, shows a status summary, and offers the natural next step. After each action it loops back — you keep going until you choose to stop. Under the hood it delegates to these stages:
191
+ **`feature:continue`** is the smart state machine. It reads `config.json` and `STATE.md` to determine where the feature is, shows a status summary, and offers the natural next step. After each action it loops back — you keep going until you choose to stop. Under the hood it delegates to these stages:
211
192
 
212
193
  - **Discussion** — Probes gray areas, records decisions. Context accumulates across sessions.
213
194
  - **Research** — Spawns 3 parallel agents: codebase integration, external patterns, and pitfalls. Output: `RESEARCH.md`.
214
195
  - **Planning** — Creates `ROADMAP.md` with phases derived from dependency analysis, plus empty `plans/phase-{NN}/` directories.
196
+ - **Phase preparation** — Discusses phase-specific gray areas, records resolutions to phase `CONTEXT.md` and `DECISIONS.md`. Optionally spawns research agents focused on the phase.
197
+ - **Phase planning** — Creates detailed PLAN.md files. Each plan is a self-contained prompt for an implementing agent with exact file paths, code patterns, verification commands, and completion criteria. Plans are created just-in-time so they incorporate all context from preparation and earlier phases.
198
+ - **Phase execution** — Implements plans with auto-fix for bugs/blockers, user confirmation for architectural changes, verification after each task, commits, and progress tracking in `STATE.md`.
199
+ - **Phase review** — Reviews executed plans against actual code using git diff. Generates corrective plans if needed (fed back into execution). Review cycle tracked in `STATE.md`.
215
200
 
216
- ### Phase-Level Commands
217
-
218
- **`phase:prepare`** is the main pre-execution command. It:
219
- 1. Shows the phase overview (goal, deliverables, existing context)
220
- 2. Identifies gray areas based on phase type (Types, API, UI, etc.)
221
- 3. Probes until clear (4 questions max per area)
222
- 4. Records resolutions to phase `CONTEXT.md` and `DECISIONS.md`
223
- 5. **Offers research** — "Would you like to research implementation patterns?"
224
- 6. If yes, spawns 3 parallel research agents focused on the phase
225
-
226
- **`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.
227
-
228
- **`phase:plan`** creates detailed PLAN.md files for one phase. Each plan is a self-contained prompt for an implementing agent with:
229
- - Exact file paths to create/modify
230
- - Code patterns to follow (from codebase docs)
231
- - Verification commands to run
232
- - Clear completion criteria
233
-
234
- Plans are created just-in-time — right before execution — so they incorporate all context from preparation and earlier phases.
201
+ **`feature:toolbox`** provides direct access to advanced operations outside the normal flow:
235
202
 
236
- **`phase:execute`** executes plans with:
237
- - Auto-fix for bugs/blockers (logged to `CHANGELOG.md`)
238
- - User confirmation for architectural changes
239
- - Verification after each task
240
- - Commits after each task
241
- - Progress tracking in `STATE.md`
242
-
243
- **`phase:review`** reviews executed plans against actual code:
244
- - Claude inspects each plan's `creates`/`modifies` against actual files
245
- - Per-plan status table with pass/warn/fail/skip icons
246
- - User conversation captures additional issues
247
- - Generates corrective plans if needed (fed back into `phase:execute`)
248
- - Review cycle tracked in `STATE.md`
249
-
250
- **`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.
251
-
252
- **`phase:renumber`** cleans up decimal phases to sequential integers after insertions stabilize.
203
+ - **Discuss** Explore open questions at the feature or phase level
204
+ - **Research** Spawn parallel agents for patterns/pitfalls
205
+ - **Plan** Create implementation plans for a specific phase
206
+ - **Review** Review executed work and report issues
207
+ - **Insert phase** — Add a phase mid-development using decimal numbering (e.g., Phase 3.1 after Phase 3)
253
208
 
254
209
  ---
255
210
 
@@ -282,10 +237,8 @@ Specdacular spawns specialized agents that run simultaneously:
282
237
 
283
238
  ### Feature Flow
284
239
 
285
- **The simple way** — two commands:
286
-
287
240
  ```
288
- /specd:feature:new /specd:feature:next
241
+ /specd:feature:new /specd:feature:continue
289
242
  │ │
290
243
  ▼ ▼
291
244
  Create feature ┌─── Read state ◀──────────────┐
@@ -295,7 +248,7 @@ Specdacular spawns specialized agents that run simultaneously:
295
248
  ▼ │ ▼ │
296
249
  "Keep discussing?" │ ┌──────────────┐ │
297
250
  Yes → discuss loop │ │ Execute the │ │
298
- No → feature:next │ │ next action │ │
251
+ No → feature:continue │ │ next action │ │
299
252
  │ └──────────────┘ │
300
253
  │ │ │
301
254
  │ ┌────┴────┐ │
@@ -312,7 +265,7 @@ Specdacular spawns specialized agents that run simultaneously:
312
265
  └─── No features? → feature:new
313
266
  ```
314
267
 
315
- **Under the hood,** `feature:next` delegates to the same workflows as the individual commands:
268
+ **Under the hood,** `feature:continue` delegates to the same workflows as the toolbox operations:
316
269
 
317
270
  ```
318
271
  discussion → discuss-feature workflow
@@ -321,7 +274,7 @@ planning → plan-feature workflow
321
274
  phase prep → prepare-phase workflow
322
275
  phase plan → plan-phase workflow
323
276
  execution → execute-plan workflow
324
- review → review-phase workflow
277
+ review → review-feature workflow
325
278
  ```
326
279
 
327
280
  ---
@@ -353,15 +306,15 @@ When it detects multiple projects (via `package.json`, `go.mod`, `Cargo.toml`, e
353
306
 
354
307
  `feature:new` conducts a system-level discussion, identifies which projects are involved, and creates per-project features with self-contained requirements. Each sub-project's `.specd/` works identically whether standalone or part of a multi-project setup.
355
308
 
356
- `feature:plan` creates per-project roadmaps plus a cross-project dependency graph (`DEPENDENCIES.md`) with cycle validation.
309
+ Planning creates per-project roadmaps plus a cross-project dependency graph (`DEPENDENCIES.md`) with cycle validation.
357
310
 
358
311
  ### Execution & Scheduling
359
312
 
360
- `feature:next` schedules across projects, respecting cross-project dependencies. After each phase, it performs contract review — comparing what was implemented against system-level expectations and flagging deviations before they cascade to downstream projects.
313
+ `feature:continue` schedules across projects, respecting cross-project dependencies. After each phase, it performs contract review — comparing what was implemented against system-level expectations and flagging deviations before they cascade to downstream projects.
361
314
 
362
315
  ```
363
- /specd:feature:next auth-system # Auto-picks next unblocked phase across projects
364
- /specd:feature:next auth-system api # Target a specific sub-project
316
+ /specd:feature:continue auth-system # Auto-picks next unblocked phase across projects
317
+ /specd:feature:continue auth-system api # Target a specific sub-project
365
318
  ```
366
319
 
367
320
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
- name: specd:feature:next
3
- description: Drive feature lifecycle — picks up where you left off and guides next steps
2
+ name: specd:feature:continue
3
+ description: Continue feature lifecycle — picks up where you left off
4
4
  argument-hint: "[feature-name]"
5
5
  allowed-tools:
6
6
  - Read
@@ -31,13 +31,13 @@ Smart state machine that reads current feature state and drives the entire lifec
31
31
  - Phase preparation (phase-specific discussion + research)
32
32
  - Phase planning (detailed PLAN.md files)
33
33
  - Phase execution (with progress tracking)
34
- - Phase review (compare plans vs actual code)
34
+ - Phase review (review executed work, user-guided)
35
35
 
36
- **No need to remember individual commands.** This one command figures out what's next.
36
+ **No need to remember individual commands.** This one command figures out what to do.
37
37
  </objective>
38
38
 
39
39
  <execution_context>
40
- @~/.claude/specdacular/workflows/next-feature.md
40
+ @~/.claude/specdacular/workflows/continue-feature.md
41
41
  </execution_context>
42
42
 
43
43
  <context>
@@ -61,7 +61,7 @@ Feature name: $ARGUMENTS
61
61
  @~/.claude/specdacular/workflows/prepare-phase.md
62
62
  @~/.claude/specdacular/workflows/plan-phase.md
63
63
  @~/.claude/specdacular/workflows/execute-plan.md
64
- @~/.claude/specdacular/workflows/review-phase.md
64
+ @~/.claude/specdacular/workflows/review-feature.md
65
65
  </context>
66
66
 
67
67
  <process>
@@ -21,7 +21,7 @@ Initialize a feature folder and start the first discussion. Creates structure, a
21
21
  - `.specd/features/{name}/STATE.md` — Progress tracking
22
22
  - `.specd/features/{name}/config.json` — Feature configuration
23
23
 
24
- **This is the entry point.** After this, continue with `/specd:feature:next` to drive the entire lifecycle.
24
+ **This is the entry point.** After this, continue with `/specd:feature:continue` to drive the entire lifecycle.
25
25
  </objective>
26
26
 
27
27
  <execution_context>
@@ -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 offered to continue discussing or stop with `/specd:feature:next`
66
+ - [ ] User offered to continue discussing or stop with `/specd:feature:continue`
67
67
  </success_criteria>
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: specd:feature:toolbox
3
+ description: Advanced feature operations — discuss, research, plan, review, insert
4
+ argument-hint: "[feature-name]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - Task
13
+ - AskUserQuestion
14
+ ---
15
+
16
+ <objective>
17
+ Menu of advanced feature operations. Presents options and dispatches to the appropriate workflow.
18
+
19
+ **Operations:**
20
+ - Discuss — Explore open questions (feature or phase level)
21
+ - Research — Spawn parallel research agents (feature or phase level)
22
+ - Plan — Create implementation plans (feature or phase level)
23
+ - Review — Review executed work, report issues, generate fix plans
24
+ - Insert phase — Add a new phase with decimal numbering
25
+ </objective>
26
+
27
+ <execution_context>
28
+ @~/.claude/specdacular/workflows/toolbox.md
29
+ </execution_context>
30
+
31
+ <context>
32
+ Feature name: $ARGUMENTS
33
+
34
+ **Delegates to workflows:**
35
+ @~/.claude/specdacular/workflows/discuss-feature.md
36
+ @~/.claude/specdacular/workflows/research-feature.md
37
+ @~/.claude/specdacular/workflows/plan-feature.md
38
+ @~/.claude/specdacular/workflows/review-feature.md
39
+ @~/.claude/specdacular/workflows/insert-phase.md
40
+ @~/.claude/specdacular/workflows/prepare-phase.md
41
+ @~/.claude/specdacular/workflows/plan-phase.md
42
+ </context>
43
+
44
+ <success_criteria>
45
+ - [ ] Feature selected (from argument or picker)
46
+ - [ ] Menu presented with all 5 operations
47
+ - [ ] Selected operation executed via correct workflow
48
+ - [ ] Scope selection works for discuss/research/plan
49
+ </success_criteria>
@@ -5,149 +5,4 @@ allowed-tools:
5
5
  - Read
6
6
  ---
7
7
 
8
- <objective>
9
- Display available specdacular commands and usage guidance.
10
- </objective>
11
-
12
- <output>
13
- # Specdacular
14
-
15
- **AI-optimized codebase documentation and feature planning for Claude.**
16
-
17
- ## Commands
18
-
19
- ### Codebase Documentation
20
-
21
- | Command | Description |
22
- |---------|-------------|
23
- | `/specd:map-codebase` | Analyze codebase with parallel agents -> produce AI-optimized docs |
24
-
25
- ### Feature Commands
26
-
27
- | Command | Description |
28
- |---------|-------------|
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 |
33
-
34
- ### Phase Commands
35
-
36
- | Command | Description |
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:review [feature] [phase]` | Review executed plans against actual code |
43
- | `/specd:phase:insert [feature] [after] [desc]` | Insert a new phase after an existing one |
44
- | `/specd:phase:renumber [feature]` | Renumber phases to clean integer sequence |
45
-
46
- ### Other
47
-
48
- | Command | Description |
49
- |---------|-------------|
50
- | `/specd:config` | Create or update `.specd/config.json` with commit settings |
51
- | `/specd:status [--all]` | Show feature status dashboard |
52
- | `/specd:blueprint [name] [sub]` | Generate visual blueprint (wireframes, diagrams) |
53
- | `/specd:update` | Update Specdacular to the latest version |
54
- | `/specd:help` | Show this help |
55
-
56
- ---
57
-
58
- ## Feature Flow
59
-
60
- The feature flow helps you plan features specific enough that an agent can implement without asking questions.
61
-
62
- ```
63
- feature:new -> feature:discuss -> feature:research -> feature:plan (roadmap) ->
64
- [for each phase]
65
- phase:prepare? -> phase:plan -> phase:execute -> phase:review?
66
- phase:insert? -> phase:renumber? <- mid-flight adjustments
67
- ```
68
-
69
- **You control the rhythm:**
70
- - `feature:new` — Creates structure, asks initial questions, starts first discussion
71
- - `feature:discuss` — Can be called **many times** to refine understanding
72
- - `feature:research` — Can be called **many times** to investigate
73
- - `feature:plan` — Creates roadmap with phases (no detailed plans yet)
74
- - `phase:prepare` — Discuss gray areas + optionally research (per phase)
75
- - `phase:plan` — Create detailed PLAN.md files for one phase
76
- - `phase:execute` — Execute plans with progress tracking
77
- - `phase:review` — Review executed plans, generate corrective plans if needed
78
- - `phase:insert` — Insert a new phase mid-flight with decimal numbering (e.g., Phase 3.1)
79
- - `phase:renumber` — Clean up decimal phases to sequential integers
80
-
81
- ### Quick Start
82
-
83
- ```
84
- /specd:feature:new user-dashboard
85
- ```
86
-
87
- This creates `.specd/features/user-dashboard/` with:
88
- - `FEATURE.md` — Technical requirements
89
- - `CONTEXT.md` — Discussion context (accumulates)
90
- - `DECISIONS.md` — User-driven decisions with dates and rationale
91
- - `CHANGELOG.md` — Auto-captured implementation decisions during execution
92
- - `STATE.md` — Progress tracking
93
-
94
- After initialization, refine and plan:
95
-
96
- ```
97
- /specd:feature:discuss user-dashboard # Clarify gray areas
98
- /specd:feature:research user-dashboard # Research implementation
99
- /specd:feature:plan user-dashboard # Create roadmap
100
- ```
101
-
102
- Then for each phase:
103
-
104
- ```
105
- /specd:phase:prepare user-dashboard 1 # Discuss + optionally research
106
- /specd:phase:plan user-dashboard 1 # Create detailed plans
107
- /specd:phase:execute user-dashboard # Execute with progress tracking
108
- /specd:phase:review user-dashboard 1 # Review phase against actual code
109
- ```
110
-
111
- ---
112
-
113
- ## Codebase Documentation
114
-
115
- ```
116
- /specd:map-codebase
117
- ```
118
-
119
- Spawns 4 parallel agents to analyze your codebase and creates `.specd/codebase/`:
120
-
121
- | Document | What it contains |
122
- |----------|------------------|
123
- | **MAP.md** | Navigation: modules, functions, entry points |
124
- | **PATTERNS.md** | Code examples: services, errors, testing |
125
- | **STRUCTURE.md** | Organization: where to put new code |
126
- | **CONCERNS.md** | Warnings: gotchas, anti-patterns, debt |
127
-
128
- ### Philosophy
129
-
130
- These docs are **for Claude, not humans**.
131
-
132
- Each document answers a question Claude can't get from reading code:
133
- - MAP.md -> "Where is X? What functions exist?"
134
- - PATTERNS.md -> "How do I write code that fits?"
135
- - STRUCTURE.md -> "Where do I put new code?"
136
- - CONCERNS.md -> "What will bite me?"
137
-
138
- **Principle:** Don't document what Claude can grep. Document tribal knowledge, gotchas, and patterns.
139
-
140
- ---
141
-
142
- ## Updating
143
-
144
- When an update is available, you'll see `update available` in your statusline. Run:
145
- ```
146
- /specd:update
147
- ```
148
- Or manually: `npx specdacular@latest`
149
-
150
- ---
151
-
152
- GitHub: https://github.com/vlad-ds/specdacular
153
- </output>
8
+ Read the file at `~/.claude/specdacular/HELP.md` and output its entire contents to the user as-is. Do not summarize, truncate, or add commentary.
@@ -21,22 +21,20 @@ cat ~/.claude/specdacular/VERSION 2>/dev/null || cat .claude/specdacular/VERSION
21
21
  npm view specdacular version
22
22
  ```
23
23
 
24
- 3. If already on latest, inform user and exit.
25
-
26
- 4. If update available, run the installer:
24
+ 3. Always run the installer to ensure old commands are cleaned up and replaced with fresh ones (even if versions match):
27
25
  ```bash
28
26
  npx specdacular@latest --global
29
27
  ```
30
28
 
31
- 5. Show new version:
29
+ 4. Show new version:
32
30
  ```bash
33
31
  cat ~/.claude/specdacular/VERSION 2>/dev/null || cat .claude/specdacular/VERSION 2>/dev/null
34
32
  ```
35
33
 
36
- 6. Clear the update cache:
34
+ 5. Clear the update cache:
37
35
  ```bash
38
36
  rm -f ~/.claude/cache/specd-update-check.json
39
37
  ```
40
38
 
41
- 7. Inform user the update is complete and they may want to restart Claude Code to pick up any new commands.
39
+ 6. If versions were the same, inform user commands were refreshed. If version changed, inform user of the update. Suggest restarting Claude Code to pick up any command changes.
42
40
  </process>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specdacular",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Feature planning system for existing codebases. Map, understand, and plan features in large projects.",
5
5
  "bin": {
6
6
  "specdacular": "bin/install.js"
@@ -0,0 +1,84 @@
1
+ # Specdacular
2
+
3
+ **AI-optimized codebase documentation and feature planning for Claude.**
4
+
5
+ ## Commands
6
+
7
+ ### Core Flow
8
+
9
+ | Command | Description |
10
+ |---------|-------------|
11
+ | `/specd:feature:new [name]` | Initialize a feature, start first discussion |
12
+ | `/specd:feature:continue [name]` | Continue feature lifecycle — picks up where you left off |
13
+ | `/specd:feature:toolbox [name]` | Advanced operations: discuss, research, plan, review, insert |
14
+
15
+ ### Utilities
16
+
17
+ | Command | Description |
18
+ |---------|-------------|
19
+ | `/specd:map-codebase` | Analyze codebase with parallel agents → AI-optimized docs |
20
+ | `/specd:status [--all]` | Show feature status dashboard |
21
+ | `/specd:help` | Show this help |
22
+ | `/specd:update` | Update Specdacular to the latest version |
23
+
24
+ ---
25
+
26
+ ## Feature Flow
27
+
28
+ ```
29
+ /specd:feature:new → /specd:feature:continue → continue → continue → done
30
+ ```
31
+
32
+ **You only need three commands:**
33
+
34
+ 1. **`/specd:feature:new [name]`** — Start here. Creates feature folder, asks initial questions.
35
+ 2. **`/specd:feature:continue [name]`** — Picks up where you left off. Drives the entire lifecycle:
36
+ - Discussion → Research → Planning → Phase Execution → Review
37
+ - After each step, offers the next step or "stop for now"
38
+ - Works across context windows — reads state fresh each time
39
+ 3. **`/specd:feature:toolbox [name]`** — Advanced operations menu:
40
+ - **Discuss** — Explore open questions (feature or phase level)
41
+ - **Research** — Spawn parallel agents for patterns/pitfalls
42
+ - **Plan** — Create implementation plans
43
+ - **Review** — Review executed work, report issues
44
+ - **Insert phase** — Add a phase mid-development (decimal numbering)
45
+
46
+ ### Quick Start
47
+
48
+ ```
49
+ /specd:feature:new user-dashboard
50
+ /specd:feature:continue user-dashboard
51
+ ```
52
+
53
+ After initialization, just keep running `continue`. It figures out what's next.
54
+
55
+ ---
56
+
57
+ ## Codebase Documentation
58
+
59
+ ```
60
+ /specd:map-codebase
61
+ ```
62
+
63
+ Spawns 4 parallel agents to analyze your codebase and creates `.specd/codebase/`:
64
+
65
+ | Document | What it contains |
66
+ |----------|------------------|
67
+ | **MAP.md** | Navigation: modules, functions, entry points |
68
+ | **PATTERNS.md** | Code examples: services, errors, testing |
69
+ | **STRUCTURE.md** | Organization: where to put new code |
70
+ | **CONCERNS.md** | Warnings: gotchas, anti-patterns, debt |
71
+
72
+ ---
73
+
74
+ ## Updating
75
+
76
+ When an update is available, you'll see `update available` in your statusline. Run:
77
+ ```
78
+ /specd:update
79
+ ```
80
+ Or manually: `npx specdacular@latest`
81
+
82
+ ---
83
+
84
+ GitHub: https://github.com/vlad-ds/specdacular
@@ -0,0 +1,34 @@
1
+ <shared name="commit_code">
2
+
3
+ ## Auto-Commit Code
4
+
5
+ Commit implementation code changes, respecting the user's auto-commit setting.
6
+
7
+ **Before using this reference, you must have ready:**
8
+ - `$FILES` — the files to `git add` (space-separated paths)
9
+ - `$MESSAGE` — the commit message
10
+
11
+ **Check auto-commit setting:**
12
+
13
+ ```bash
14
+ cat .specd/config.json 2>/dev/null || echo '{"auto_commit_code": true}'
15
+ ```
16
+
17
+ **If `auto_commit_code` is `false`:**
18
+ Do NOT run git commands. Instead print:
19
+
20
+ ```
21
+ Auto-commit disabled for code — changes not committed.
22
+ Modified files: $FILES
23
+ ```
24
+
25
+ Then skip ahead to the next step in your workflow.
26
+
27
+ **If `auto_commit_code` is `true` or not set (default):**
28
+
29
+ ```bash
30
+ git add $FILES
31
+ git commit -m "$MESSAGE"
32
+ ```
33
+
34
+ </shared>