specweave 0.1.8 → 0.1.9
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 +31 -20
- package/SPECWEAVE.md +54 -22
- package/package.json +2 -2
- package/src/commands/build.md +45 -4
- package/src/commands/increment.md +155 -62
- package/src/commands/progress.md +258 -0
- package/src/templates/CLAUDE.md.template +11 -10
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
> **Spec-Driven Development Framework** - Where specifications and documentation are the source of truth
|
|
4
4
|
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
|
-
[](https://github.com/anton-abyzov/specweave/releases/tag/v0.1.9)
|
|
7
7
|
[]()
|
|
8
8
|
[](https://spec-weave.com)
|
|
9
9
|
|
|
@@ -147,15 +147,21 @@ User: /done 0001 # Close increment with slash command
|
|
|
147
147
|
✅ Increment 0001 closed successfully
|
|
148
148
|
```
|
|
149
149
|
|
|
150
|
-
**How it works** (append-only
|
|
150
|
+
**How it works** (smart append-only workflow: 0001 → 0002 → 0003):
|
|
151
151
|
1. `specweave init` → ALL components pre-installed (10 agents + 35+ skills)
|
|
152
152
|
2. **Use `/inc "feature"`** → PM creates specs + plan + auto-generates tasks
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
153
|
+
- **Smart**: Auto-closes previous increment if PM gates pass
|
|
154
|
+
3. **Use `/build` or `/build 0001`** → Execute implementation (hooks after EVERY task)
|
|
155
|
+
- **Smart**: Auto-resumes from next incomplete task
|
|
156
|
+
4. **Use `/progress`** → Check status, task completion %, next action
|
|
157
|
+
5. **Use `/validate 0001`** → Optional quality check (LLM-as-judge)
|
|
158
|
+
6. Repeat: `/inc "next feature"` → Auto-closes if ready, creates next increment
|
|
159
|
+
|
|
160
|
+
**Why smart workflow?**
|
|
161
|
+
- ✅ No manual `/done` needed (auto-closes on next `/inc`)
|
|
162
|
+
- ✅ No task tracking needed (`/build` auto-resumes)
|
|
163
|
+
- ✅ `/progress` shows exactly where you are
|
|
164
|
+
- ✅ Natural flow: finish → start next
|
|
159
165
|
|
|
160
166
|
---
|
|
161
167
|
|
|
@@ -297,28 +303,33 @@ specweave/
|
|
|
297
303
|
# Option A: Comprehensive (Enterprise) - 500-600+ pages upfront
|
|
298
304
|
# Option B: Incremental (Startup) - Build as you go
|
|
299
305
|
|
|
300
|
-
# 2. Plan increment
|
|
306
|
+
# 2. Plan increment (PM-led, auto-closes previous if ready)
|
|
301
307
|
/inc "user authentication"
|
|
302
308
|
# Alias for /increment
|
|
303
309
|
# PM-led: Market research → spec.md → plan.md → auto-generate tasks.md
|
|
304
|
-
#
|
|
310
|
+
# Smart: Auto-closes previous increment if PM gates pass
|
|
305
311
|
|
|
306
|
-
# 3. Build it (hooks
|
|
307
|
-
/build
|
|
308
|
-
#
|
|
312
|
+
# 3. Build it (smart resume, hooks after EVERY task)
|
|
313
|
+
/build
|
|
314
|
+
# Or: /build 0001
|
|
315
|
+
# Smart: Auto-resumes from next incomplete task
|
|
309
316
|
# Hooks automatically update CLAUDE.md, README.md, CHANGELOG.md
|
|
310
317
|
|
|
311
|
-
# 4.
|
|
318
|
+
# 4. Check progress anytime
|
|
319
|
+
/progress
|
|
320
|
+
# Shows: task completion %, PM gates status, next action
|
|
321
|
+
# No increment ID needed - finds active increment automatically
|
|
322
|
+
|
|
323
|
+
# 5. Validate quality (optional)
|
|
312
324
|
/validate 0001 --quality
|
|
313
325
|
# LLM-as-judge quality assessment
|
|
314
326
|
|
|
315
|
-
#
|
|
316
|
-
/
|
|
317
|
-
#
|
|
318
|
-
#
|
|
319
|
-
# Gate 3: Documentation updated
|
|
327
|
+
# 6. Start next feature (auto-closes previous)
|
|
328
|
+
/inc "payment processing"
|
|
329
|
+
# Auto-closes 0001 if gates pass, creates 0002
|
|
330
|
+
# No manual /done needed!
|
|
320
331
|
|
|
321
|
-
#
|
|
332
|
+
# 7. Sync with tools (optional)
|
|
322
333
|
/sync-github # Sync to GitHub issues
|
|
323
334
|
```
|
|
324
335
|
|
package/SPECWEAVE.md
CHANGED
|
@@ -25,14 +25,15 @@ SpecWeave follows the **spec-kit approach**: You MUST use slash commands explici
|
|
|
25
25
|
|
|
26
26
|
### Quick Command Reference
|
|
27
27
|
|
|
28
|
-
**Core Workflow** (
|
|
28
|
+
**Core Workflow** (Smart Commands):
|
|
29
29
|
|
|
30
30
|
| Alias | Full Command | Purpose | Example |
|
|
31
31
|
|-------|--------------|---------|---------|
|
|
32
|
-
| `/inc` | `/increment` | **Plan
|
|
33
|
-
| - | `/build` | Execute
|
|
32
|
+
| `/inc` | `/increment` | **Plan Increment** (PM-led, auto-closes previous) | `/inc "User auth"` |
|
|
33
|
+
| - | `/build` | Execute (smart resume, hooks after every task) | `/build` or `/build 0001` |
|
|
34
|
+
| - | `/progress` | **Show status** (task %, PM gates, next action) | `/progress` |
|
|
34
35
|
| - | `/validate` | Validate quality (optional LLM judge) | `/validate 0001 --quality` |
|
|
35
|
-
|
|
|
36
|
+
| `/done` | `/done` | Close explicitly (optional, /inc auto-closes) | `/done 0001` |
|
|
36
37
|
|
|
37
38
|
**Supporting Commands**:
|
|
38
39
|
- `/create-project` - Initialize SpecWeave project
|
|
@@ -41,37 +42,61 @@ SpecWeave follows the **spec-kit approach**: You MUST use slash commands explici
|
|
|
41
42
|
- `/generate-docs` - Generate doc site
|
|
42
43
|
- `/sync-github` - Sync to GitHub
|
|
43
44
|
|
|
44
|
-
**
|
|
45
|
-
- ✅ `/inc`
|
|
46
|
-
- ✅
|
|
47
|
-
- ✅
|
|
48
|
-
- ✅
|
|
45
|
+
**Smart Workflow Features**:
|
|
46
|
+
- ✅ `/inc` suggests options if previous incomplete (never forces closure)
|
|
47
|
+
- ✅ `/inc` auto-closes previous only if PM gates pass (seamless happy path)
|
|
48
|
+
- ✅ `/build` auto-resumes from next incomplete task
|
|
49
|
+
- ✅ `/progress` shows exactly where you are
|
|
50
|
+
- ✅ `/done` is optional (use when explicit closure needed)
|
|
51
|
+
- ✅ Natural flow: finish → start next (with user control)
|
|
49
52
|
|
|
50
|
-
### Typical Workflow
|
|
53
|
+
### Typical Workflow (Smart & Natural)
|
|
51
54
|
|
|
52
55
|
```bash
|
|
53
56
|
# 1. Initialize project
|
|
54
57
|
npx specweave init my-saas
|
|
55
58
|
|
|
56
|
-
# 2. Plan your first increment
|
|
59
|
+
# 2. Plan your first increment
|
|
57
60
|
/inc "User authentication with JWT and RBAC"
|
|
61
|
+
# PM-led: market research → spec → plan → auto-generate tasks
|
|
58
62
|
|
|
59
63
|
# 3. Review generated docs
|
|
60
64
|
# spec.md, plan.md, tasks.md (auto-generated!), tests.md
|
|
61
65
|
|
|
62
|
-
# 4. Build it (hooks
|
|
63
|
-
/build
|
|
66
|
+
# 4. Build it (smart resume, hooks after EVERY task)
|
|
67
|
+
/build
|
|
68
|
+
# Auto-resumes from next incomplete task
|
|
69
|
+
# No need to track which task you're on!
|
|
64
70
|
|
|
65
|
-
# 5.
|
|
66
|
-
/
|
|
71
|
+
# 5. Check progress anytime
|
|
72
|
+
/progress
|
|
73
|
+
# Shows: 5/12 tasks (42%), next: T006, PM gates status
|
|
74
|
+
|
|
75
|
+
# 6. Continue building
|
|
76
|
+
/build
|
|
77
|
+
# Picks up where you left off
|
|
67
78
|
|
|
68
|
-
#
|
|
69
|
-
/
|
|
79
|
+
# 7. Validate quality (optional)
|
|
80
|
+
/validate 0001 --quality
|
|
70
81
|
|
|
71
|
-
#
|
|
82
|
+
# 8. Start next feature (auto-closes previous!)
|
|
72
83
|
/inc "Payment processing"
|
|
84
|
+
# Smart: Auto-closes 0001 if PM gates pass
|
|
85
|
+
# No manual /done needed!
|
|
86
|
+
|
|
87
|
+
# 9. Keep building
|
|
88
|
+
/build
|
|
89
|
+
# Auto-finds active increment 0002
|
|
90
|
+
|
|
91
|
+
# Repeat: /inc → /build → /progress → /inc (auto-closes) → /build...
|
|
73
92
|
```
|
|
74
93
|
|
|
94
|
+
**Key Insight**: Natural flow without administrative overhead!
|
|
95
|
+
- No manual tracking (`/build` auto-resumes)
|
|
96
|
+
- No manual closure (`/inc` auto-closes if ready)
|
|
97
|
+
- Check progress anytime (`/progress`)
|
|
98
|
+
- Focus on building, not project management
|
|
99
|
+
|
|
75
100
|
**Remember**: Type `/inc` first, THEN build! Otherwise you lose all SpecWeave benefits (specs, architecture, auto-generated tasks, test strategy).
|
|
76
101
|
|
|
77
102
|
---
|
|
@@ -201,14 +226,21 @@ npx specweave list --installed # See what's installed
|
|
|
201
226
|
|
|
202
227
|
**CRITICAL**: SpecWeave uses **EXPLICIT SLASH COMMANDS** - type them to activate the framework!
|
|
203
228
|
|
|
204
|
-
### Core Workflow (
|
|
229
|
+
### Core Workflow (Smart Commands)
|
|
205
230
|
|
|
206
231
|
| Command | Alias | Purpose | Example |
|
|
207
232
|
|---------|-------|---------|---------|
|
|
208
|
-
| `/increment` | `/inc` | Plan
|
|
209
|
-
| `/build` | - | Execute
|
|
233
|
+
| `/increment` | `/inc` | Plan Increment (PM-led, auto-closes previous if ready) | `/inc "user authentication"` |
|
|
234
|
+
| `/build` | - | Execute (smart resume from next incomplete task) | `/build` or `/build 0001` |
|
|
235
|
+
| `/progress` | - | Show status (task %, PM gates, next action) | `/progress` |
|
|
210
236
|
| `/validate` | - | Validate quality (optional LLM judge) | `/validate 0001 --quality` |
|
|
211
|
-
| `/done` | - | Close
|
|
237
|
+
| `/done` | - | Close explicitly (optional, /inc auto-closes) | `/done 0001` |
|
|
238
|
+
|
|
239
|
+
**Smart Features**:
|
|
240
|
+
- `/inc` suggests options if previous incomplete, auto-closes if PM gates pass
|
|
241
|
+
- `/build` auto-resumes from next incomplete task (no task ID needed)
|
|
242
|
+
- `/progress` auto-finds active increment (no ID needed)
|
|
243
|
+
- `/done` optional in happy path (use for explicit closure only)
|
|
212
244
|
|
|
213
245
|
### Supporting Commands
|
|
214
246
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "specweave",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Replace vibe coding with spec-driven development.
|
|
3
|
+
"version": "0.1.9",
|
|
4
|
+
"description": "Replace vibe coding with spec-driven development. Smart workflow: /inc auto-closes previous, /build auto-resumes, /progress shows status. PM-led planning, 10 agents, 35+ skills. spec-weave.com",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"specweave": "./bin/specweave.js"
|
package/src/commands/build.md
CHANGED
|
@@ -12,12 +12,18 @@ You are helping the user implement a SpecWeave increment by executing tasks from
|
|
|
12
12
|
## Usage
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
+
# Auto-resumes from last incomplete task
|
|
15
16
|
/build <increment-id>
|
|
17
|
+
|
|
18
|
+
# Or let it find active increment automatically
|
|
19
|
+
/build
|
|
16
20
|
```
|
|
17
21
|
|
|
18
22
|
## Arguments
|
|
19
23
|
|
|
20
|
-
- `<increment-id>`:
|
|
24
|
+
- `<increment-id>`: Optional. Increment ID (e.g., "001", "0001", "1", "0042")
|
|
25
|
+
- If omitted, finds the active in-progress increment automatically
|
|
26
|
+
- **Smart resume**: Automatically starts from next incomplete task
|
|
21
27
|
|
|
22
28
|
---
|
|
23
29
|
|
|
@@ -54,9 +60,42 @@ You are helping the user implement a SpecWeave increment by executing tasks from
|
|
|
54
60
|
🎯 Ready to build!
|
|
55
61
|
```
|
|
56
62
|
|
|
57
|
-
### Step 2:
|
|
63
|
+
### Step 2: Smart Resume - Find Next Incomplete Task
|
|
64
|
+
|
|
65
|
+
**🎯 CRITICAL: Auto-resume functionality** - no need to remember which task you were on!
|
|
66
|
+
|
|
67
|
+
1. **Parse tasks.md**:
|
|
68
|
+
- Scan all tasks in order
|
|
69
|
+
- Check completion status (`[x]` = complete, `[ ]` = incomplete)
|
|
70
|
+
- Find first incomplete task
|
|
71
|
+
|
|
72
|
+
2. **Determine starting point**:
|
|
73
|
+
- If all tasks complete → Show completion message
|
|
74
|
+
- If tasks incomplete → Resume from first incomplete task
|
|
75
|
+
- If no tasks started → Start from T001
|
|
76
|
+
|
|
77
|
+
3. **Show resume context**:
|
|
78
|
+
```
|
|
79
|
+
📊 Resume Context:
|
|
58
80
|
|
|
59
|
-
|
|
81
|
+
Completed: 3/12 tasks (25%)
|
|
82
|
+
├─ [✅] T001: Setup auth module (P1)
|
|
83
|
+
├─ [✅] T002: Create user model (P1)
|
|
84
|
+
├─ [✅] T003: Implement JWT tokens (P1)
|
|
85
|
+
└─ [⏳] T004: Add password hashing (P1) ← RESUMING HERE
|
|
86
|
+
|
|
87
|
+
Remaining: 9 tasks (estimated 2 weeks)
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**Why smart resume?**
|
|
91
|
+
- ✅ No manual tracking needed
|
|
92
|
+
- ✅ Seamlessly continue after breaks
|
|
93
|
+
- ✅ Prevents duplicate work
|
|
94
|
+
- ✅ Shows progress at a glance
|
|
95
|
+
|
|
96
|
+
### Step 3: Update Status to In-Progress (if needed)
|
|
97
|
+
|
|
98
|
+
If status is "planned", update `spec.md` frontmatter:
|
|
60
99
|
|
|
61
100
|
```yaml
|
|
62
101
|
---
|
|
@@ -66,7 +105,9 @@ started: 2025-10-28 # ← Start date
|
|
|
66
105
|
---
|
|
67
106
|
```
|
|
68
107
|
|
|
69
|
-
|
|
108
|
+
If already "in-progress", keep existing metadata.
|
|
109
|
+
|
|
110
|
+
### Step 4: Execute Tasks Sequentially
|
|
70
111
|
|
|
71
112
|
**For each task in tasks.md**:
|
|
72
113
|
|
|
@@ -1,20 +1,104 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
3
|
-
description:
|
|
2
|
+
name: increment
|
|
3
|
+
description: Plan new Product Increment - PM-led process (market research, spec, plan, auto-generate tasks). Auto-closes previous increment if PM gates pass.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# Plan Product Increment
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
**PM-Led Workflow**: From market research to ready-to-build increment.
|
|
9
|
+
|
|
10
|
+
You are helping the user create a new SpecWeave increment with automatic closure of previous increment if ready.
|
|
9
11
|
|
|
10
12
|
## Steps:
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
### Step 0: Smart Check Previous Increment (if applicable)
|
|
15
|
+
|
|
16
|
+
**🎯 CRITICAL: Suggest, don't force** - help user make informed decision!
|
|
17
|
+
|
|
18
|
+
1. **Check for in-progress increments**:
|
|
19
|
+
```bash
|
|
20
|
+
# Find increments with status: in-progress
|
|
21
|
+
grep -r "status: in-progress" .specweave/increments/*/spec.md
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
2. **If previous increment found, validate PM gates**:
|
|
25
|
+
- **Gate 1**: All P1 tasks completed?
|
|
26
|
+
- **Gate 2**: Tests passing (>80% coverage)?
|
|
27
|
+
- **Gate 3**: Documentation updated (CLAUDE.md, README.md)?
|
|
28
|
+
|
|
29
|
+
3. **Decision matrix** (NEVER force, ALWAYS suggest):
|
|
30
|
+
```
|
|
31
|
+
All gates ✅ → Auto-close previous, create new (seamless)
|
|
32
|
+
|
|
33
|
+
Any gate ❌ → STOP and present options (user decides):
|
|
34
|
+
Option A: Complete 0001 first (recommended)
|
|
35
|
+
→ Finish remaining work before starting new
|
|
36
|
+
|
|
37
|
+
Option B: Move incomplete tasks to 0002
|
|
38
|
+
→ Transfer T006, T007 to new increment
|
|
39
|
+
→ Close 0001 as "completed with deferrals"
|
|
40
|
+
|
|
41
|
+
Option C: Cancel new increment
|
|
42
|
+
→ Stay on 0001, continue working
|
|
43
|
+
→ User will retry /inc when ready
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**CRITICAL**: NEVER auto-close with incomplete work! Always give user control.
|
|
47
|
+
|
|
48
|
+
4. **Auto-close output** (if gates pass):
|
|
49
|
+
```
|
|
50
|
+
📊 Previous Increment Check
|
|
51
|
+
|
|
52
|
+
Found: 0001-user-authentication (in-progress)
|
|
53
|
+
|
|
54
|
+
PM Gate Validation:
|
|
55
|
+
├─ Gate 1 (Tasks): 8/8 P1 completed ✅
|
|
56
|
+
├─ Gate 2 (Tests): 5/5 passing (85% coverage) ✅
|
|
57
|
+
└─ Gate 3 (Docs): CLAUDE.md ✅, README.md ✅
|
|
58
|
+
|
|
59
|
+
✅ Auto-closing increment 0001...
|
|
60
|
+
|
|
61
|
+
Proceeding with new increment 0002...
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
5. **Prompt output** (if gates fail):
|
|
65
|
+
```
|
|
66
|
+
⚠️ Previous Increment Incomplete
|
|
67
|
+
|
|
68
|
+
Found: 0001-user-authentication (in-progress)
|
|
69
|
+
|
|
70
|
+
PM Gate Validation:
|
|
71
|
+
├─ Gate 1 (Tasks): 6/8 P1 completed ❌ (2 P1 tasks remaining)
|
|
72
|
+
├─ Gate 2 (Tests): 3/5 passing (60% coverage) ❌
|
|
73
|
+
└─ Gate 3 (Docs): CLAUDE.md ✅, README.md ⏳
|
|
74
|
+
|
|
75
|
+
Options:
|
|
76
|
+
A. Complete 0001 first (recommended)
|
|
77
|
+
→ Run `/build 0001` to finish remaining tasks
|
|
78
|
+
|
|
79
|
+
B. Force close 0001 and defer tasks to 0002
|
|
80
|
+
→ Transfer T006, T007 to new increment
|
|
81
|
+
|
|
82
|
+
C. Cancel and stay on 0001
|
|
83
|
+
→ Continue working on authentication
|
|
16
84
|
|
|
17
|
-
|
|
85
|
+
What would you like to do? (A/B/C)
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**Why suggest, not force?**
|
|
89
|
+
- ✅ User stays in control (no surprises)
|
|
90
|
+
- ✅ Natural flow in happy path (auto-close if ready)
|
|
91
|
+
- ✅ Clear options when incomplete (complete, defer, or cancel)
|
|
92
|
+
- ✅ Enforces quality awareness (can't ignore incomplete work)
|
|
93
|
+
- ✅ No manual `/done` needed when gates pass
|
|
94
|
+
|
|
95
|
+
### Step 1: Find next increment number
|
|
96
|
+
|
|
97
|
+
- Scan `.specweave/increments/` directory
|
|
98
|
+
- Find highest number (e.g., 002)
|
|
99
|
+
- Next increment: 003
|
|
100
|
+
|
|
101
|
+
### Step 2: Detect tech stack (CRITICAL - framework-agnostic)
|
|
18
102
|
- Check `.specweave/config.yaml` for tech_stack configuration
|
|
19
103
|
- If not found, detect from project files:
|
|
20
104
|
- `package.json` → TypeScript/JavaScript
|
|
@@ -27,42 +111,47 @@ You are helping the user create a new SpecWeave increment.
|
|
|
27
111
|
- If detection fails, ask user: "What language/framework are you using?"
|
|
28
112
|
- Store detected tech stack for later use
|
|
29
113
|
|
|
30
|
-
3
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
114
|
+
### Step 3: Ask user for details
|
|
115
|
+
|
|
116
|
+
- "What would you like to build?" (get high-level description)
|
|
117
|
+
- "What's the short name?" (e.g., "user-authentication" for increment 003-user-authentication)
|
|
118
|
+
- "Priority? (P1/P2/P3)" (default: P1)
|
|
119
|
+
|
|
120
|
+
### Step 4: Activate role-orchestrator
|
|
121
|
+
|
|
122
|
+
- Analyze user's description
|
|
123
|
+
- Determine which strategic agents are needed:
|
|
124
|
+
- pm-agent (product strategy)?
|
|
125
|
+
- architect-agent (system design)?
|
|
126
|
+
- devops-agent (infrastructure)?
|
|
127
|
+
- security-agent (security review)?
|
|
128
|
+
- qa-lead-agent (testing strategy)?
|
|
129
|
+
|
|
130
|
+
### Step 5: Ask clarifying questions (if needed)
|
|
131
|
+
|
|
132
|
+
- Target users/scale?
|
|
133
|
+
- Technology preferences? (if not detected)
|
|
134
|
+
- Budget constraints?
|
|
135
|
+
- Deployment platform?
|
|
136
|
+
- Payment processing needed?
|
|
137
|
+
- Authentication method?
|
|
138
|
+
|
|
139
|
+
### Step 6: Run strategic agents (with user approval)
|
|
140
|
+
|
|
141
|
+
- **Pass detected tech stack to ALL agents** (CRITICAL!)
|
|
142
|
+
- PM agent creates pm-analysis.md
|
|
143
|
+
- Architect agent creates architecture.md, ADRs (using detected tech stack)
|
|
144
|
+
- DevOps agent creates infrastructure.md (platform-specific)
|
|
145
|
+
- Security agent creates security.md (framework-specific security)
|
|
146
|
+
- QA agent creates test-strategy.md (framework-specific tests)
|
|
147
|
+
|
|
148
|
+
### Step 7: Present strategic docs for review
|
|
149
|
+
|
|
150
|
+
- Show summary of all strategic outputs
|
|
151
|
+
- Ask: "Review docs with /review-docs or approve to continue?"
|
|
152
|
+
- Wait for user approval
|
|
153
|
+
|
|
154
|
+
### Step 8: Create spec.md (based on strategic docs)
|
|
66
155
|
- Frontmatter with increment number, title, priority, status, dependencies
|
|
67
156
|
- **Include detected tech stack in frontmatter** (see format below)
|
|
68
157
|
- Overview section
|
|
@@ -73,23 +162,27 @@ You are helping the user create a new SpecWeave increment.
|
|
|
73
162
|
- Success criteria
|
|
74
163
|
- Dependencies
|
|
75
164
|
|
|
76
|
-
9
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
165
|
+
### Step 9: Create tasks.md (task-builder skill)
|
|
166
|
+
|
|
167
|
+
**🎯 CRITICAL: Auto-generate tasks from plan.md**
|
|
168
|
+
|
|
169
|
+
- Analyze all strategic docs
|
|
170
|
+
- Break down into phases (framework-specific)
|
|
171
|
+
- Create tasks with:
|
|
172
|
+
- Agent references (use framework-specific agents if available)
|
|
173
|
+
- File paths (framework-specific paths: src/ for TS, app/ for Django, etc.)
|
|
174
|
+
- Implementation snippets (framework-specific code)
|
|
175
|
+
- Acceptance criteria
|
|
176
|
+
- Documentation updates
|
|
177
|
+
|
|
178
|
+
### Step 10: Save increment
|
|
179
|
+
|
|
180
|
+
- Create `.specweave/increments/####-name/`
|
|
181
|
+
- Save spec.md
|
|
182
|
+
- Save tasks.md (auto-generated!)
|
|
183
|
+
- Save strategic docs (pm-analysis.md, architecture.md, etc.)
|
|
184
|
+
|
|
185
|
+
### Step 11: Output to user
|
|
93
186
|
```
|
|
94
187
|
✅ Created increment 0003-user-authentication
|
|
95
188
|
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: progress
|
|
3
|
+
description: Show current increment progress, task completion %, PM gate status, and next action
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Progress Tracking
|
|
7
|
+
|
|
8
|
+
**Quick Status Check**: See exactly where you are in your current increment.
|
|
9
|
+
|
|
10
|
+
Shows:
|
|
11
|
+
- Active increment status
|
|
12
|
+
- Task completion percentage
|
|
13
|
+
- PM gate preview (tasks, tests, docs)
|
|
14
|
+
- Next action to take
|
|
15
|
+
- Time tracking
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Check current progress
|
|
23
|
+
/progress
|
|
24
|
+
|
|
25
|
+
# Show progress for specific increment
|
|
26
|
+
/progress 0001
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## What It Shows
|
|
32
|
+
|
|
33
|
+
### 1. Active Increment Info
|
|
34
|
+
- Increment ID and name
|
|
35
|
+
- Current status (planned, in-progress, completed)
|
|
36
|
+
- Time started and last activity
|
|
37
|
+
|
|
38
|
+
### 2. Task Progress (with %)
|
|
39
|
+
- Visual task list with completion indicators
|
|
40
|
+
- Percentage complete (P1 tasks weighted higher)
|
|
41
|
+
- Next incomplete task highlighted
|
|
42
|
+
- Stuck/blocked task warnings
|
|
43
|
+
|
|
44
|
+
### 3. PM Gates Preview
|
|
45
|
+
- **Gate 1**: Tasks completed (P1 required)
|
|
46
|
+
- **Gate 2**: Tests passing (>80% coverage)
|
|
47
|
+
- **Gate 3**: Documentation updated
|
|
48
|
+
|
|
49
|
+
### 4. Next Action Guidance
|
|
50
|
+
- Suggests exact command to run next
|
|
51
|
+
- Warns about WIP limit violations
|
|
52
|
+
- Alerts for long-inactive increments
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Example Output
|
|
57
|
+
|
|
58
|
+
### Normal Progress
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
📊 Current Progress
|
|
62
|
+
|
|
63
|
+
Active Increment: 0001-user-authentication
|
|
64
|
+
Status: in-progress (started 2 hours ago)
|
|
65
|
+
|
|
66
|
+
Task Progress: 3/12 completed (25%)
|
|
67
|
+
├─ [✅] T001: Setup auth module (P1) - 5 min ago
|
|
68
|
+
├─ [✅] T002: Create user model (P1) - 10 min ago
|
|
69
|
+
├─ [✅] T003: Implement JWT tokens (P1) - 15 min ago
|
|
70
|
+
├─ [⏳] T004: Add password hashing (P1) ← NEXT
|
|
71
|
+
├─ [ ] T005: Create login endpoint (P1)
|
|
72
|
+
├─ [ ] T006: Add logout endpoint (P2)
|
|
73
|
+
└─ 6 more tasks...
|
|
74
|
+
|
|
75
|
+
PM Gates Preview:
|
|
76
|
+
├─ Gate 1 (Tasks): 3/8 P1 tasks done (38%) ⏳
|
|
77
|
+
├─ Gate 2 (Tests): 2/5 passing (40%) ⏳
|
|
78
|
+
└─ Gate 3 (Docs): CLAUDE.md ✅, README.md ⏳
|
|
79
|
+
|
|
80
|
+
Last Activity: 5 minutes ago
|
|
81
|
+
Next Action: Run `/build 0001` to resume at T004
|
|
82
|
+
|
|
83
|
+
💡 Tip: `/build` auto-resumes from last incomplete task!
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### No Active Work
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
📊 Current Progress
|
|
90
|
+
|
|
91
|
+
No active increment found.
|
|
92
|
+
|
|
93
|
+
Recent Increments:
|
|
94
|
+
├─ 0003-payment-flow (completed) - 1 day ago
|
|
95
|
+
├─ 0002-user-profile (completed) - 2 days ago
|
|
96
|
+
└─ 0001-auth (closed) - 3 days ago
|
|
97
|
+
|
|
98
|
+
Next Action: Run `/inc "feature description"` to start new work
|
|
99
|
+
|
|
100
|
+
💡 Tip: `/inc` is your starting point for all new features
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Multiple In-Progress (WIP Limit Warning)
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
📊 Current Progress
|
|
107
|
+
|
|
108
|
+
⚠️ Warning: 2 increments in-progress (exceeds recommended WIP limit: 1)
|
|
109
|
+
|
|
110
|
+
Active Increments:
|
|
111
|
+
1. 0002-payment-flow (in-progress)
|
|
112
|
+
└─ Task Progress: 5/10 completed (50%)
|
|
113
|
+
|
|
114
|
+
2. 0003-notifications (in-progress)
|
|
115
|
+
└─ Task Progress: 2/8 completed (25%)
|
|
116
|
+
|
|
117
|
+
Recommendation: Focus on completing 0002 before starting new work.
|
|
118
|
+
|
|
119
|
+
Next Action: Run `/build 0002` to continue payment-flow
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Stuck/Inactive Increment
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
📊 Current Progress
|
|
126
|
+
|
|
127
|
+
Active Increment: 0001-user-authentication
|
|
128
|
+
Status: in-progress (started 2 days ago)
|
|
129
|
+
|
|
130
|
+
⚠️ Warning: Last activity was 6 hours ago
|
|
131
|
+
└─ Current task T005 may be stuck or blocked
|
|
132
|
+
|
|
133
|
+
Task Progress: 4/12 completed (33%)
|
|
134
|
+
├─ [✅] T001: Setup auth module (P1)
|
|
135
|
+
├─ [✅] T002: Create user model (P1)
|
|
136
|
+
├─ [✅] T003: Implement JWT tokens (P1)
|
|
137
|
+
├─ [✅] T004: Add password hashing (P1)
|
|
138
|
+
├─ [🔄] T005: Create login endpoint (P1) ← STUCK? (6 hours)
|
|
139
|
+
├─ [ ] T006: Add logout endpoint (P2)
|
|
140
|
+
└─ 6 more tasks...
|
|
141
|
+
|
|
142
|
+
Next Action:
|
|
143
|
+
1. Run `/build 0001` to retry T005
|
|
144
|
+
2. Or manually review T005 for blockers
|
|
145
|
+
3. Or skip T005 and defer to next increment
|
|
146
|
+
|
|
147
|
+
💡 Tip: Long-running tasks may need breaking down
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## Implementation
|
|
153
|
+
|
|
154
|
+
**How `/progress` works**:
|
|
155
|
+
|
|
156
|
+
### Step 1: Find Active Increment
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
# Check for in-progress increments
|
|
160
|
+
find .specweave/increments -name "tasks.md" -exec grep -l "status: in-progress" {} \;
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### Step 2: Parse Tasks and Calculate %
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
# Read tasks.md
|
|
167
|
+
# Count completed vs total
|
|
168
|
+
# Weight P1 tasks higher (2x), P2 (1.5x), P3 (1x)
|
|
169
|
+
# Calculate percentage
|
|
170
|
+
|
|
171
|
+
Example:
|
|
172
|
+
- P1 tasks: 3/8 complete = 3*2 / 8*2 = 6/16 (37.5%)
|
|
173
|
+
- P2 tasks: 2/3 complete = 2*1.5 / 3*1.5 = 3/4.5 (66%)
|
|
174
|
+
- P3 tasks: 1/1 complete = 1*1 / 1*1 = 1/1 (100%)
|
|
175
|
+
|
|
176
|
+
Overall: (6 + 3 + 1) / (16 + 4.5 + 1) = 10/21.5 = 46.5%
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### Step 3: Check PM Gates
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
# Gate 1: Tasks
|
|
183
|
+
# - Count P1 tasks completed
|
|
184
|
+
# - Status: ✅ all done, ⏳ in progress, ❌ blocked
|
|
185
|
+
|
|
186
|
+
# Gate 2: Tests
|
|
187
|
+
# - Run test suite (npm test or equivalent)
|
|
188
|
+
# - Check coverage report
|
|
189
|
+
# - Status: ✅ >80%, ⏳ 50-80%, ❌ <50%
|
|
190
|
+
|
|
191
|
+
# Gate 3: Docs
|
|
192
|
+
# - Check if CLAUDE.md updated recently
|
|
193
|
+
# - Check if README.md mentions new feature
|
|
194
|
+
# - Status: ✅ updated, ⏳ partial, ❌ outdated
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### Step 4: Determine Next Action
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
if [[ $in_progress_count -eq 0 ]]; then
|
|
201
|
+
echo "Run \`/inc\` to start new feature"
|
|
202
|
+
elif [[ $in_progress_count -gt 1 ]]; then
|
|
203
|
+
echo "⚠️ Multiple increments active. Focus on completing one."
|
|
204
|
+
echo "Run \`/build $oldest_increment\`"
|
|
205
|
+
elif [[ $next_task != "" ]]; then
|
|
206
|
+
echo "Run \`/build $increment_id\` to resume at $next_task"
|
|
207
|
+
else
|
|
208
|
+
echo "All tasks complete! Run \`/done $increment_id\` to close."
|
|
209
|
+
fi
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## When to Use `/progress`
|
|
215
|
+
|
|
216
|
+
Use `/progress` when you:
|
|
217
|
+
- ✅ Come back after a break and need context
|
|
218
|
+
- ✅ Want to see overall completion status
|
|
219
|
+
- ✅ Need to know which task to work on next
|
|
220
|
+
- ✅ Forgot which increment you're working on
|
|
221
|
+
- ✅ Want to check if PM gates will pass
|
|
222
|
+
- ✅ Suspect a task is stuck or blocked
|
|
223
|
+
- ✅ Have multiple increments and need to prioritize
|
|
224
|
+
|
|
225
|
+
**Typical workflow**:
|
|
226
|
+
```bash
|
|
227
|
+
# Morning: Check what you were working on
|
|
228
|
+
/progress
|
|
229
|
+
|
|
230
|
+
# Shows: "Active: 0002-payments, Task 5/10 (50%)"
|
|
231
|
+
# Shows: "Next: /build 0002 to resume at T006"
|
|
232
|
+
|
|
233
|
+
/build 0002
|
|
234
|
+
# Auto-resumes from T006
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
239
|
+
## Pro Tips
|
|
240
|
+
|
|
241
|
+
1. **No increment ID needed** - `/progress` automatically finds active increment
|
|
242
|
+
2. **Smart resume** - `/build` picks up where you left off (no task ID needed)
|
|
243
|
+
3. **WIP limits** - Keep 1-2 increments active max for focus
|
|
244
|
+
4. **Completion %** - P1 tasks weighted higher (they're critical path)
|
|
245
|
+
5. **Time tracking** - Warns if tasks are stuck (>2 hours inactive)
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
## Related Commands
|
|
250
|
+
|
|
251
|
+
- `/inc` - Start new increment (auto-closes previous if ready)
|
|
252
|
+
- `/build` - Execute tasks (auto-resumes from next incomplete)
|
|
253
|
+
- `/validate` - Run quality checks (optional)
|
|
254
|
+
- `/done` - Explicitly close increment (optional if `/inc` auto-closes)
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
**💡 Remember**: `/progress` is your "where am I?" command. Use it anytime you need orientation!
|
|
@@ -12,16 +12,17 @@ This project uses **SpecWeave** - a specification-first AI development framework
|
|
|
12
12
|
|
|
13
13
|
SpecWeave uses **EXPLICIT SLASH COMMANDS** - no auto-activation, no proactive detection.
|
|
14
14
|
|
|
15
|
-
**
|
|
16
|
-
1. ✅
|
|
17
|
-
2. ✅
|
|
18
|
-
3. ✅
|
|
19
|
-
4. ✅ **
|
|
20
|
-
|
|
21
|
-
**Why
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
15
|
+
**Smart Workflow** (Natural & Efficient):
|
|
16
|
+
1. ✅ **`/inc "feature description"`** - Plan increment (PM-led, auto-closes previous if ready)
|
|
17
|
+
2. ✅ **`/build`** - Execute tasks (smart resume, hooks after EVERY task)
|
|
18
|
+
3. ✅ **`/progress`** - Check status (task %, PM gates, next action)
|
|
19
|
+
4. ✅ **Repeat**: `/inc "next"` → auto-closes previous if done
|
|
20
|
+
|
|
21
|
+
**Why smart workflow?**
|
|
22
|
+
- No manual tracking (`/build` auto-resumes from next incomplete task)
|
|
23
|
+
- No manual closure (`/inc` suggests options if previous incomplete)
|
|
24
|
+
- Check progress anytime (`/progress`)
|
|
25
|
+
- Natural flow: finish → start next
|
|
25
26
|
|
|
26
27
|
**See**: Full command list below in "Quick Commands" section
|
|
27
28
|
|