specdacular 0.5.1 → 0.5.3
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 +190 -130
- package/commands/specd/feature/discuss.md +2 -0
- package/commands/specd/feature/new.md +3 -3
- package/commands/specd/feature/next.md +84 -0
- package/commands/specd/feature/plan.md +2 -0
- package/commands/specd/feature/research.md +2 -0
- package/commands/specd/help.md +4 -1
- package/commands/specd/phase/review.md +80 -0
- package/package.json +1 -1
- package/specdacular/templates/features/STATE.md +8 -7
- package/specdacular/workflows/new-feature.md +39 -11
- package/specdacular/workflows/next-feature.md +497 -0
- package/specdacular/workflows/review-phase.md +555 -0
package/README.md
CHANGED
|
@@ -1,13 +1,48 @@
|
|
|
1
1
|
# Specdacular
|
|
2
2
|
|
|
3
|
-
**AI-optimized
|
|
3
|
+
**AI-optimized feature planning and codebase documentation for [Claude Code](https://docs.anthropic.com/en/docs/claude-code).**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Plan features specific enough that an agent can implement without asking questions.
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npx specdacular
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
> [!CAUTION]
|
|
12
|
+
> **Early Discovery Phase.** This project is actively evolving as we explore workflow patterns for AI-assisted feature planning. Commands, file formats, and conventions change frequently between versions. We aim to provide backwards-compatible migrations, but breaking changes may occur. Pin to a specific version if stability matters to you.
|
|
13
|
+
|
|
14
|
+
> [!WARNING]
|
|
15
|
+
> **Open Source Software.** This is maintained by a small team in their free time. It installs slash commands and workflow files into your `.claude/` directory. Always use version control. Review what gets installed. Back up your work. The software is provided "as is" without warranty of any kind. By using this tool, you accept full responsibility for any changes it makes to your project.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Table of Contents
|
|
20
|
+
|
|
21
|
+
- [What It Does](#what-it-does)
|
|
22
|
+
- [Requirements](#requirements)
|
|
23
|
+
- [Installation](#installation)
|
|
24
|
+
- [Quick Start](#quick-start)
|
|
25
|
+
- [Commands](#commands)
|
|
26
|
+
- [Feature Commands](#feature-commands-feature)
|
|
27
|
+
- [Phase Commands](#phase-commands-phase)
|
|
28
|
+
- [Codebase Documentation](#codebase-documentation)
|
|
29
|
+
- [Utilities](#utilities)
|
|
30
|
+
- [The Flow in Detail](#the-flow-in-detail)
|
|
31
|
+
- [Feature-Level Commands](#feature-level-commands)
|
|
32
|
+
- [Phase-Level Commands](#phase-level-commands)
|
|
33
|
+
- [How It Works](#how-it-works)
|
|
34
|
+
- [Parallel Agents](#parallel-agents)
|
|
35
|
+
- [Feature Flow](#feature-flow)
|
|
36
|
+
- [Project Structure](#project-structure)
|
|
37
|
+
- [Philosophy](#philosophy)
|
|
38
|
+
- [Migration Guides](#migration-guides)
|
|
39
|
+
- [From v0.5](#migrating-from-v05)
|
|
40
|
+
- [From v0.4](#migrating-from-v04)
|
|
41
|
+
- [Updating](#updating)
|
|
42
|
+
- [Uninstalling](#uninstalling)
|
|
43
|
+
- [Contributing](#contributing)
|
|
44
|
+
- [License](#license)
|
|
45
|
+
|
|
11
46
|
---
|
|
12
47
|
|
|
13
48
|
## What It Does
|
|
@@ -25,15 +60,23 @@ Spawns 4 parallel agents to analyze your codebase and generate AI-optimized docu
|
|
|
25
60
|
|
|
26
61
|
### 2. Plan Features
|
|
27
62
|
|
|
28
|
-
|
|
63
|
+
Two commands drive the entire feature lifecycle:
|
|
29
64
|
|
|
30
65
|
```
|
|
31
|
-
feature:new
|
|
32
|
-
|
|
33
|
-
phase:prepare? -> phase:plan -> phase:execute
|
|
34
|
-
phase:insert? -> phase:renumber? <- mid-flight adjustments
|
|
66
|
+
/specd:feature:new my-feature # Initialize + first discussion
|
|
67
|
+
/specd:feature:next my-feature # Everything else — discussion, research, planning, execution, review
|
|
35
68
|
```
|
|
36
69
|
|
|
70
|
+
`feature:next` reads your feature's current state and offers the natural next step. You never need to remember which command comes next.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Requirements
|
|
75
|
+
|
|
76
|
+
- [Claude Code](https://docs.anthropic.com/en/docs/claude-code) CLI installed and working
|
|
77
|
+
- Node.js >= 16.7.0
|
|
78
|
+
- Git (recommended — Specdacular commits progress automatically)
|
|
79
|
+
|
|
37
80
|
---
|
|
38
81
|
|
|
39
82
|
## Installation
|
|
@@ -55,50 +98,6 @@ In Claude Code:
|
|
|
55
98
|
|
|
56
99
|
---
|
|
57
100
|
|
|
58
|
-
## Commands
|
|
59
|
-
|
|
60
|
-
Commands are organized into **feature** and **phase** namespaces.
|
|
61
|
-
|
|
62
|
-
### Codebase Documentation
|
|
63
|
-
|
|
64
|
-
| Command | Description |
|
|
65
|
-
|---------|-------------|
|
|
66
|
-
| `/specd:map-codebase` | Analyze codebase with parallel agents |
|
|
67
|
-
|
|
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.
|
|
82
|
-
|
|
83
|
-
| Command | Description |
|
|
84
|
-
|---------|-------------|
|
|
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 |
|
|
91
|
-
|
|
92
|
-
### Utilities
|
|
93
|
-
|
|
94
|
-
| Command | Description |
|
|
95
|
-
|---------|-------------|
|
|
96
|
-
| `/specd:blueprint [name] [sub]` | Generate visual blueprint (wireframes, diagrams) |
|
|
97
|
-
| `/specd:help` | Show available commands |
|
|
98
|
-
| `/specd:update` | Update to latest version |
|
|
99
|
-
|
|
100
|
-
---
|
|
101
|
-
|
|
102
101
|
## Quick Start
|
|
103
102
|
|
|
104
103
|
### Map a Codebase
|
|
@@ -111,40 +110,39 @@ Creates `.specd/codebase/` with 4 AI-optimized documents. This gives Claude cont
|
|
|
111
110
|
|
|
112
111
|
### Plan a Feature
|
|
113
112
|
|
|
114
|
-
**Step 1: Initialize
|
|
113
|
+
**Step 1: Initialize**
|
|
115
114
|
|
|
116
115
|
```
|
|
117
116
|
/specd:feature:new user-dashboard
|
|
118
117
|
```
|
|
119
118
|
|
|
120
|
-
Creates `.specd/features/user-dashboard/` and starts the first discussion. Claude asks what you're building, follows the thread, and captures technical requirements.
|
|
119
|
+
Creates `.specd/features/user-dashboard/` and starts the first discussion. Claude asks what you're building, follows the thread, and captures technical requirements. When done, offers to continue discussing or stop.
|
|
121
120
|
|
|
122
|
-
**Step 2:
|
|
121
|
+
**Step 2: Drive the lifecycle**
|
|
123
122
|
|
|
124
123
|
```
|
|
125
|
-
/specd:feature:
|
|
126
|
-
/specd:feature:research user-dashboard # Research implementation approaches
|
|
124
|
+
/specd:feature:next user-dashboard
|
|
127
125
|
```
|
|
128
126
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
**Step 3: Create a roadmap**
|
|
127
|
+
That's it. `feature:next` reads the current state and guides you through each stage:
|
|
132
128
|
|
|
133
|
-
|
|
134
|
-
/
|
|
135
|
-
|
|
129
|
+
1. **Discussion** — Probes gray areas until clear
|
|
130
|
+
2. **Research** — Spawns parallel agents for patterns/pitfalls
|
|
131
|
+
3. **Planning** — Creates roadmap with phases
|
|
132
|
+
4. **Phase preparation** — Discusses phase-specific gray areas
|
|
133
|
+
5. **Phase planning** — Creates detailed PLAN.md files
|
|
134
|
+
6. **Phase execution** — Implements with progress tracking
|
|
135
|
+
7. **Phase review** — Compares plans against actual code
|
|
136
136
|
|
|
137
|
-
|
|
137
|
+
After each step, you can continue or stop. Resume anytime with `/specd:feature:next`.
|
|
138
138
|
|
|
139
|
-
**
|
|
139
|
+
**No argument? It picks for you:**
|
|
140
140
|
|
|
141
141
|
```
|
|
142
|
-
/specd:
|
|
143
|
-
/specd:phase:plan user-dashboard 1 # Create detailed PLAN.md files
|
|
144
|
-
/specd:phase:execute user-dashboard # Execute with progress tracking
|
|
142
|
+
/specd:feature:next
|
|
145
143
|
```
|
|
146
144
|
|
|
147
|
-
|
|
145
|
+
Scans for in-progress features and shows a picker.
|
|
148
146
|
|
|
149
147
|
**Mid-flight adjustments:**
|
|
150
148
|
|
|
@@ -155,27 +153,66 @@ Repeat for each phase. Plans are created just-in-time so they stay fresh.
|
|
|
155
153
|
|
|
156
154
|
---
|
|
157
155
|
|
|
156
|
+
## Commands
|
|
157
|
+
|
|
158
|
+
Commands are organized into **feature** and **phase** namespaces.
|
|
159
|
+
|
|
160
|
+
### Feature Commands (`feature:`)
|
|
161
|
+
|
|
162
|
+
Work with a feature as a whole — discuss, research, and create a roadmap.
|
|
163
|
+
|
|
164
|
+
| Command | Description |
|
|
165
|
+
|---------|-------------|
|
|
166
|
+
| `/specd:feature:new [name]` | Initialize a feature, start first discussion |
|
|
167
|
+
| `/specd:feature:next [name]` | **Drive the entire lifecycle** — picks up where you left off |
|
|
168
|
+
|
|
169
|
+
### Phase Commands (`phase:`)
|
|
170
|
+
|
|
171
|
+
Work with individual phases — prepare, plan, and execute one at a time.
|
|
172
|
+
|
|
173
|
+
| Command | Description |
|
|
174
|
+
|---------|-------------|
|
|
175
|
+
| `/specd:phase:prepare [feature] [phase]` | Discuss gray areas + optionally research patterns |
|
|
176
|
+
| `/specd:phase:research [feature] [phase]` | Research patterns for a phase (standalone) |
|
|
177
|
+
| `/specd:phase:plan [feature] [phase]` | Create detailed PLAN.md files for one phase |
|
|
178
|
+
| `/specd:phase:execute [feature]` | Execute plans with progress tracking |
|
|
179
|
+
| `/specd:phase:review [feature] [phase]` | Review executed plans against actual code |
|
|
180
|
+
| `/specd:phase:insert [feature] [after] [desc]` | Insert a new phase after an existing one |
|
|
181
|
+
| `/specd:phase:renumber [feature]` | Renumber phases to clean integer sequence |
|
|
182
|
+
|
|
183
|
+
### Codebase Documentation
|
|
184
|
+
|
|
185
|
+
| Command | Description |
|
|
186
|
+
|---------|-------------|
|
|
187
|
+
| `/specd:map-codebase` | Analyze codebase with parallel agents |
|
|
188
|
+
|
|
189
|
+
### Utilities
|
|
190
|
+
|
|
191
|
+
| Command | Description |
|
|
192
|
+
|---------|-------------|
|
|
193
|
+
| `/specd:status [--all]` | Show feature status dashboard |
|
|
194
|
+
| `/specd:blueprint [name] [sub]` | Generate visual blueprint (wireframes, diagrams) |
|
|
195
|
+
| `/specd:help` | Show available commands |
|
|
196
|
+
| `/specd:update` | Update to latest version |
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
158
200
|
## The Flow in Detail
|
|
159
201
|
|
|
160
202
|
### Feature-Level Commands
|
|
161
203
|
|
|
162
|
-
**`feature:new`** creates the feature folder and starts the first discussion. Output:
|
|
204
|
+
**`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:
|
|
163
205
|
- `FEATURE.md` — Technical requirements from the conversation
|
|
164
206
|
- `CONTEXT.md` — Discussion context (accumulates over time)
|
|
165
207
|
- `DECISIONS.md` — Decisions with dates, rationale, and implications
|
|
166
208
|
- `STATE.md` — Progress tracking
|
|
167
209
|
- `config.json` — Feature configuration
|
|
168
210
|
|
|
169
|
-
**`feature:
|
|
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.
|
|
211
|
+
**`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:
|
|
177
212
|
|
|
178
|
-
|
|
213
|
+
- **Discussion** — Probes gray areas, records decisions. Context accumulates across sessions.
|
|
214
|
+
- **Research** — Spawns 3 parallel agents: codebase integration, external patterns, and pitfalls. Output: `RESEARCH.md`.
|
|
215
|
+
- **Planning** — Creates `ROADMAP.md` with phases derived from dependency analysis, plus empty `plans/phase-{NN}/` directories.
|
|
179
216
|
|
|
180
217
|
### Phase-Level Commands
|
|
181
218
|
|
|
@@ -187,8 +224,6 @@ Output: `RESEARCH.md` with prescriptive guidance.
|
|
|
187
224
|
5. **Offers research** — "Would you like to research implementation patterns?"
|
|
188
225
|
6. If yes, spawns 3 parallel research agents focused on the phase
|
|
189
226
|
|
|
190
|
-
This replaces the old two-step of discuss-phase then research-phase.
|
|
191
|
-
|
|
192
227
|
**`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
228
|
|
|
194
229
|
**`phase:plan`** creates detailed PLAN.md files for one phase. Each plan is a self-contained prompt for an implementing agent with:
|
|
@@ -206,6 +241,13 @@ Plans are created just-in-time — right before execution — so they incorporat
|
|
|
206
241
|
- Commits after each task
|
|
207
242
|
- Progress tracking in `STATE.md`
|
|
208
243
|
|
|
244
|
+
**`phase:review`** reviews executed plans against actual code:
|
|
245
|
+
- Claude inspects each plan's `creates`/`modifies` against actual files
|
|
246
|
+
- Per-plan status table with pass/warn/fail/skip icons
|
|
247
|
+
- User conversation captures additional issues
|
|
248
|
+
- Generates corrective plans if needed (fed back into `phase:execute`)
|
|
249
|
+
- Review cycle tracked in `STATE.md`
|
|
250
|
+
|
|
209
251
|
**`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
252
|
|
|
211
253
|
**`phase:renumber`** cleans up decimal phases to sequential integers after insertions stabilize.
|
|
@@ -241,47 +283,46 @@ Specdacular spawns specialized agents that run simultaneously:
|
|
|
241
283
|
|
|
242
284
|
### Feature Flow
|
|
243
285
|
|
|
286
|
+
**The simple way** — two commands:
|
|
287
|
+
|
|
244
288
|
```
|
|
245
|
-
|
|
246
|
-
│
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
│
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
│ │ renumber │ │
|
|
283
|
-
│ └──────────────┘ │
|
|
284
|
-
└─────────────────────────────┘
|
|
289
|
+
/specd:feature:new /specd:feature:next
|
|
290
|
+
│ │
|
|
291
|
+
▼ ▼
|
|
292
|
+
Create feature ┌─── Read state ◀──────────────┐
|
|
293
|
+
First discussion │ Show status │
|
|
294
|
+
Offer to continue │ Offer next step │
|
|
295
|
+
│ │ │ │
|
|
296
|
+
▼ │ ▼ │
|
|
297
|
+
"Keep discussing?" │ ┌──────────────┐ │
|
|
298
|
+
Yes → discuss loop │ │ Execute the │ │
|
|
299
|
+
No → feature:next │ │ next action │ │
|
|
300
|
+
│ └──────────────┘ │
|
|
301
|
+
│ │ │
|
|
302
|
+
│ ┌────┴────┐ │
|
|
303
|
+
│ │ Discuss │ Research │
|
|
304
|
+
│ │ Plan │ Prepare phase │
|
|
305
|
+
│ │ Execute │ Review phase │
|
|
306
|
+
│ └────┬────┘ │
|
|
307
|
+
│ │ │
|
|
308
|
+
│ ▼ │
|
|
309
|
+
│ "Continue or stop?" │
|
|
310
|
+
│ Continue ──────────────────┘
|
|
311
|
+
│ Stop → clean exit
|
|
312
|
+
│
|
|
313
|
+
└─── No features? → feature:new
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
**Under the hood,** `feature:next` delegates to the same workflows as the individual commands:
|
|
317
|
+
|
|
318
|
+
```
|
|
319
|
+
discussion → discuss-feature workflow
|
|
320
|
+
research → research-feature workflow (3 parallel agents)
|
|
321
|
+
planning → plan-feature workflow
|
|
322
|
+
phase prep → prepare-phase workflow
|
|
323
|
+
phase plan → plan-phase workflow
|
|
324
|
+
execution → execute-plan workflow
|
|
325
|
+
review → review-phase workflow
|
|
285
326
|
```
|
|
286
327
|
|
|
287
328
|
---
|
|
@@ -309,9 +350,9 @@ your-project/
|
|
|
309
350
|
│ ├── ROADMAP.md # Phase overview (from feature:plan)
|
|
310
351
|
│ └── plans/
|
|
311
352
|
│ ├── phase-01/
|
|
312
|
-
│ │ ├── CONTEXT.md # Phase discussion
|
|
313
|
-
│ │ ├── RESEARCH.md # Phase research
|
|
314
|
-
│ │ ├── 01-PLAN.md # Detailed plans
|
|
353
|
+
│ │ ├── CONTEXT.md # Phase discussion
|
|
354
|
+
│ │ ├── RESEARCH.md # Phase research
|
|
355
|
+
│ │ ├── 01-PLAN.md # Detailed plans
|
|
315
356
|
│ │ └── 02-PLAN.md
|
|
316
357
|
│ └── phase-02/
|
|
317
358
|
│ ├── CONTEXT.md
|
|
@@ -348,11 +389,22 @@ Once recorded in `DECISIONS.md`, decisions aren't re-litigated. Each has date, c
|
|
|
348
389
|
|
|
349
390
|
---
|
|
350
391
|
|
|
351
|
-
##
|
|
392
|
+
## Migration Guides
|
|
393
|
+
|
|
394
|
+
### Migrating from v0.5
|
|
395
|
+
|
|
396
|
+
**New command: `/specd:feature:next`** — Drives the entire feature lifecycle from a single command. Reads current state and offers the next step automatically.
|
|
397
|
+
|
|
398
|
+
| Before (v0.5) | After (v0.6) |
|
|
399
|
+
|----------------|--------------|
|
|
400
|
+
| Remember command sequence: `discuss` → `research` → `plan` → `phase:prepare` → `phase:plan` → `phase:execute` → `phase:review` | Just run `/specd:feature:next` — it figures out what's next |
|
|
401
|
+
| `feature:new` ends with list of commands to try | `feature:new` offers to continue discussing or stop with `feature:next` |
|
|
352
402
|
|
|
353
|
-
|
|
403
|
+
**Existing `.specd/` data is fully compatible.** `feature:next` reads the same `config.json`, `STATE.md`, and other files.
|
|
354
404
|
|
|
355
|
-
|
|
405
|
+
### Migrating from v0.4
|
|
406
|
+
|
|
407
|
+
Commands were renamed into `feature:` and `phase:` namespaces:
|
|
356
408
|
|
|
357
409
|
| v0.4 | v0.5 |
|
|
358
410
|
|------|------|
|
|
@@ -366,14 +418,14 @@ If you're upgrading from v0.4, here's what changed:
|
|
|
366
418
|
| `/specd:insert-phase` | `/specd:phase:insert` |
|
|
367
419
|
| `/specd:renumber-phases` | `/specd:phase:renumber` |
|
|
368
420
|
|
|
369
|
-
**New commands:**
|
|
421
|
+
**New commands in v0.5:**
|
|
370
422
|
- `/specd:phase:prepare` — Replaces `discuss-phase`, adds optional research at the end
|
|
371
423
|
- `/specd:phase:plan` — Creates detailed plans for **one phase** (new command)
|
|
372
424
|
|
|
373
|
-
**Behavior changes:**
|
|
425
|
+
**Behavior changes in v0.5:**
|
|
374
426
|
- `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.
|
|
376
|
-
- `phase:prepare` combines the old discuss-phase + research-phase into a single command.
|
|
427
|
+
- Detailed `PLAN.md` files are created per-phase with `phase:plan`, right before execution.
|
|
428
|
+
- `phase:prepare` combines the old discuss-phase + research-phase into a single command.
|
|
377
429
|
|
|
378
430
|
**Existing `.specd/` data is fully compatible.** Your feature files, decisions, and roadmaps work with the new commands.
|
|
379
431
|
|
|
@@ -390,6 +442,8 @@ Or in Claude Code:
|
|
|
390
442
|
/specd:update
|
|
391
443
|
```
|
|
392
444
|
|
|
445
|
+
---
|
|
446
|
+
|
|
393
447
|
## Uninstalling
|
|
394
448
|
|
|
395
449
|
```bash
|
|
@@ -400,6 +454,12 @@ npx specdacular --local --uninstall
|
|
|
400
454
|
|
|
401
455
|
---
|
|
402
456
|
|
|
457
|
+
## Contributing
|
|
458
|
+
|
|
459
|
+
Issues and pull requests are welcome at [github.com/victorbalan/specdacular](https://github.com/victorbalan/specdacular).
|
|
460
|
+
|
|
461
|
+
---
|
|
462
|
+
|
|
403
463
|
## License
|
|
404
464
|
|
|
405
465
|
MIT
|
|
@@ -12,6 +12,8 @@ allowed-tools:
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
<objective>
|
|
15
|
+
> **Note:** Consider using `/specd:feature:next` instead — it guides you through the entire feature lifecycle automatically, including discussion.
|
|
16
|
+
|
|
15
17
|
Continue or deepen understanding of a feature through targeted discussion. Can be called **many times** — context accumulates.
|
|
16
18
|
|
|
17
19
|
**Updates:**
|
|
@@ -12,7 +12,7 @@ allowed-tools:
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
<objective>
|
|
15
|
-
Initialize a feature folder and start the first discussion. Creates structure, asks initial questions about what's being built, and writes technical requirements.
|
|
15
|
+
Initialize a feature folder and start the first discussion. Creates structure, asks initial questions about what's being built, and writes technical requirements. After initialization, offers to continue discussing or stop.
|
|
16
16
|
|
|
17
17
|
**Creates:**
|
|
18
18
|
- `.specd/features/{name}/FEATURE.md` — Technical requirements from discussion
|
|
@@ -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,
|
|
24
|
+
**This is the entry point.** After this, continue with `/specd:feature:next` 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
|
|
66
|
+
- [ ] User offered to continue discussing or stop with `/specd:feature:next`
|
|
67
67
|
</success_criteria>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specd:feature:next
|
|
3
|
+
description: Drive feature lifecycle — picks up where you left off and guides next steps
|
|
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
|
+
Smart state machine that reads current feature state and drives the entire lifecycle. One command from discussion through phase execution.
|
|
18
|
+
|
|
19
|
+
**How it works:**
|
|
20
|
+
1. Select feature (from argument or picker)
|
|
21
|
+
2. Read current state (STATE.md, config.json, CONTEXT.md, ROADMAP.md)
|
|
22
|
+
3. Show status summary
|
|
23
|
+
4. Offer the natural next step
|
|
24
|
+
5. Execute it (delegating to existing workflows)
|
|
25
|
+
6. Loop back — offer the next step or stop
|
|
26
|
+
|
|
27
|
+
**Covers the full lifecycle:**
|
|
28
|
+
- Discussion (gray areas, decisions)
|
|
29
|
+
- Research (parallel agents for patterns/pitfalls)
|
|
30
|
+
- Planning (roadmap with phases)
|
|
31
|
+
- Phase preparation (phase-specific discussion + research)
|
|
32
|
+
- Phase planning (detailed PLAN.md files)
|
|
33
|
+
- Phase execution (with progress tracking)
|
|
34
|
+
- Phase review (compare plans vs actual code)
|
|
35
|
+
|
|
36
|
+
**No need to remember individual commands.** This one command figures out what's next.
|
|
37
|
+
</objective>
|
|
38
|
+
|
|
39
|
+
<execution_context>
|
|
40
|
+
@~/.claude/specdacular/workflows/next-feature.md
|
|
41
|
+
</execution_context>
|
|
42
|
+
|
|
43
|
+
<context>
|
|
44
|
+
Feature name: $ARGUMENTS
|
|
45
|
+
|
|
46
|
+
**Scans for features:**
|
|
47
|
+
@.specd/features/*/config.json
|
|
48
|
+
|
|
49
|
+
**Loads feature context (once selected):**
|
|
50
|
+
@.specd/features/{name}/config.json
|
|
51
|
+
@.specd/features/{name}/STATE.md
|
|
52
|
+
@.specd/features/{name}/CONTEXT.md
|
|
53
|
+
@.specd/features/{name}/FEATURE.md
|
|
54
|
+
@.specd/features/{name}/ROADMAP.md (if exists)
|
|
55
|
+
@.specd/features/{name}/RESEARCH.md (if exists)
|
|
56
|
+
|
|
57
|
+
**Delegates to existing workflows:**
|
|
58
|
+
@~/.claude/specdacular/workflows/discuss-feature.md
|
|
59
|
+
@~/.claude/specdacular/workflows/research-feature.md
|
|
60
|
+
@~/.claude/specdacular/workflows/plan-feature.md
|
|
61
|
+
@~/.claude/specdacular/workflows/prepare-phase.md
|
|
62
|
+
@~/.claude/specdacular/workflows/plan-phase.md
|
|
63
|
+
@~/.claude/specdacular/workflows/execute-plan.md
|
|
64
|
+
@~/.claude/specdacular/workflows/review-phase.md
|
|
65
|
+
</context>
|
|
66
|
+
|
|
67
|
+
<process>
|
|
68
|
+
1. **Select Feature** — From argument or scan .specd/features/*/config.json
|
|
69
|
+
2. **Read State** — Load config.json, STATE.md, CONTEXT.md, ROADMAP.md
|
|
70
|
+
3. **Show Status** — Concise summary of where things stand
|
|
71
|
+
4. **Determine Next** — Based on stage + phase status
|
|
72
|
+
5. **Offer Choice** — Next step + alternatives + "stop for now"
|
|
73
|
+
6. **Execute** — Delegate to appropriate workflow
|
|
74
|
+
7. **Loop** — Back to step 2 after each action
|
|
75
|
+
</process>
|
|
76
|
+
|
|
77
|
+
<success_criteria>
|
|
78
|
+
- [ ] Feature selected (from argument or picker)
|
|
79
|
+
- [ ] Current state accurately displayed
|
|
80
|
+
- [ ] Correct next action offered
|
|
81
|
+
- [ ] User can stop at any natural boundary
|
|
82
|
+
- [ ] Delegated to correct workflow for execution
|
|
83
|
+
- [ ] Looped back after completion
|
|
84
|
+
</success_criteria>
|
|
@@ -12,6 +12,8 @@ allowed-tools:
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
<objective>
|
|
15
|
+
> **Note:** Consider using `/specd:feature:next` instead — it guides you through the entire feature lifecycle automatically, including planning.
|
|
16
|
+
|
|
15
17
|
Create a roadmap with phase overview and empty phase directories. Detailed PLAN.md files are created later per-phase with `/specd:phase:plan`.
|
|
16
18
|
|
|
17
19
|
**Creates:**
|
|
@@ -13,6 +13,8 @@ allowed-tools:
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
<objective>
|
|
16
|
+
> **Note:** Consider using `/specd:feature:next` instead — it guides you through the entire feature lifecycle automatically, including research.
|
|
17
|
+
|
|
16
18
|
Research how to implement a feature before planning. Spawns parallel research agents to investigate:
|
|
17
19
|
|
|
18
20
|
1. **Codebase Integration** - How does this fit with existing code? (uses Claude Code Explore agent)
|
package/commands/specd/help.md
CHANGED
|
@@ -39,6 +39,7 @@ Display available specdacular commands and usage guidance.
|
|
|
39
39
|
| `/specd:phase:research [feature] [phase]` | Research patterns for a phase (standalone) |
|
|
40
40
|
| `/specd:phase:plan [feature] [phase]` | Create detailed PLAN.md files for one phase |
|
|
41
41
|
| `/specd:phase:execute [feature] [plan]` | Execute a plan with progress tracking |
|
|
42
|
+
| `/specd:phase:review [feature] [phase]` | Review executed plans against actual code |
|
|
42
43
|
| `/specd:phase:insert [feature] [after] [desc]` | Insert a new phase after an existing one |
|
|
43
44
|
| `/specd:phase:renumber [feature]` | Renumber phases to clean integer sequence |
|
|
44
45
|
|
|
@@ -60,7 +61,7 @@ The feature flow helps you plan features specific enough that an agent can imple
|
|
|
60
61
|
```
|
|
61
62
|
feature:new -> feature:discuss -> feature:research -> feature:plan (roadmap) ->
|
|
62
63
|
[for each phase]
|
|
63
|
-
phase:prepare? -> phase:plan -> phase:execute
|
|
64
|
+
phase:prepare? -> phase:plan -> phase:execute -> phase:review?
|
|
64
65
|
phase:insert? -> phase:renumber? <- mid-flight adjustments
|
|
65
66
|
```
|
|
66
67
|
|
|
@@ -72,6 +73,7 @@ feature:new -> feature:discuss -> feature:research -> feature:plan (roadmap) ->
|
|
|
72
73
|
- `phase:prepare` — Discuss gray areas + optionally research (per phase)
|
|
73
74
|
- `phase:plan` — Create detailed PLAN.md files for one phase
|
|
74
75
|
- `phase:execute` — Execute plans with progress tracking
|
|
76
|
+
- `phase:review` — Review executed plans, generate corrective plans if needed
|
|
75
77
|
- `phase:insert` — Insert a new phase mid-flight with decimal numbering (e.g., Phase 3.1)
|
|
76
78
|
- `phase:renumber` — Clean up decimal phases to sequential integers
|
|
77
79
|
|
|
@@ -102,6 +104,7 @@ Then for each phase:
|
|
|
102
104
|
/specd:phase:prepare user-dashboard 1 # Discuss + optionally research
|
|
103
105
|
/specd:phase:plan user-dashboard 1 # Create detailed plans
|
|
104
106
|
/specd:phase:execute user-dashboard # Execute with progress tracking
|
|
107
|
+
/specd:phase:review user-dashboard 1 # Review phase against actual code
|
|
105
108
|
```
|
|
106
109
|
|
|
107
110
|
---
|