speccrew 0.3.8 → 0.3.10
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.
|
@@ -48,7 +48,14 @@ Before starting work, check the workflow progress state:
|
|
|
48
48
|
- If `current_stage` is not `01_prd`, this iteration may already be in progress at a later stage
|
|
49
49
|
- If `01_prd.status` is `confirmed`, check resume state (Step 0.2)
|
|
50
50
|
3. **If WORKFLOW-PROGRESS.json does not exist**:
|
|
51
|
-
-
|
|
51
|
+
- **MUST use script to initialize:**
|
|
52
|
+
```bash
|
|
53
|
+
node speccrew-workspace/scripts/update-progress.js init-workflow \
|
|
54
|
+
--file speccrew-workspace/iterations/{iteration}/WORKFLOW-PROGRESS.json \
|
|
55
|
+
--iteration {iteration}
|
|
56
|
+
```
|
|
57
|
+
- **Fallback** (ONLY if script file does not exist):
|
|
58
|
+
Create manually with the following structure:
|
|
52
59
|
```json
|
|
53
60
|
{
|
|
54
61
|
"iteration": "{iteration-name}",
|
|
@@ -248,8 +255,28 @@ Pass the following context to the Skill:
|
|
|
248
255
|
- Clarification Q&A records (if any)
|
|
249
256
|
- Complexity routing decision (simple|complex)
|
|
250
257
|
|
|
258
|
+
### After Skill Completes
|
|
259
|
+
|
|
260
|
+
When the invoked skill returns:
|
|
261
|
+
|
|
262
|
+
1. **Check if Master-Sub structure was selected** (from skill Step 8 output)
|
|
263
|
+
2. **If Master-Sub**: Skill will output a Sub-PRD Dispatch Plan → **MANDATORY: Execute Phase 4**
|
|
264
|
+
3. **If Single PRD**: Skill completed the entire PRD → **Skip Phase 4, go to Phase 5**
|
|
265
|
+
|
|
266
|
+
> ⚠️ **DO NOT present results to user before Phase 4 completes (for complex requirements).**
|
|
267
|
+
> The Master PRD alone is incomplete without Sub-PRDs.
|
|
268
|
+
|
|
251
269
|
---
|
|
252
270
|
|
|
271
|
+
> ⚠️ **MANDATORY RULES FOR PHASE 4 (Sub-PRD Worker Dispatch):**
|
|
272
|
+
> These rules apply to ALL complex requirements (3+ modules). Violation = workflow failure.
|
|
273
|
+
>
|
|
274
|
+
> 1. **DO NOT skip Phase 4 when Master-Sub structure is present** — If the Skill output indicates "Master-Sub PRD structure", Phase 4 MUST execute.
|
|
275
|
+
> 2. **DO NOT generate Sub-PRDs yourself** — Each Sub-PRD MUST be generated by invoking `speccrew-task-worker` with `speccrew-pm-sub-prd-generate/SKILL.md`. You are the orchestrator, NOT the writer.
|
|
276
|
+
> 3. **DO NOT create DISPATCH-PROGRESS.json manually** — Use the script: `node speccrew-workspace/scripts/update-progress.js init-dispatch`.
|
|
277
|
+
> 4. **DO NOT dispatch Sub-PRDs sequentially** — All workers MUST execute in parallel (batch of 6 if modules > 6).
|
|
278
|
+
> 5. **DO NOT proceed to Phase 5 without verification** — After ALL workers complete, execute Phase 5 Verification Checklist before presenting to user.
|
|
279
|
+
|
|
253
280
|
## Phase 4: Sub-PRD Worker Dispatch (Master-Sub Structure Only)
|
|
254
281
|
|
|
255
282
|
**IF the Skill output includes a Sub-PRD Dispatch Plan (from Step 12c), execute this phase.**
|
|
@@ -269,17 +296,19 @@ From the Skill's Step 12c output, collect:
|
|
|
269
296
|
- `module_user_stories`, `module_requirements`, `module_features`
|
|
270
297
|
- `module_dependencies`
|
|
271
298
|
|
|
272
|
-
### 4.
|
|
273
|
-
|
|
274
|
-
Before dispatching workers, initialize `DISPATCH-PROGRESS.json`:
|
|
299
|
+
### 4.1b Initialize Dispatch Progress Tracking
|
|
275
300
|
|
|
301
|
+
**MANDATORY: Initialize dispatch tracking with script:**
|
|
276
302
|
```bash
|
|
277
303
|
node speccrew-workspace/scripts/update-progress.js init-dispatch \
|
|
278
304
|
--file speccrew-workspace/iterations/{iteration}/01.product-requirement/DISPATCH-PROGRESS.json \
|
|
279
|
-
--tasks "module-1,module-2,module-3,..."
|
|
305
|
+
--tasks "module-key-1,module-key-2,module-key-3,..."
|
|
280
306
|
```
|
|
281
307
|
|
|
282
|
-
|
|
308
|
+
> ⚠️ DO NOT create DISPATCH-PROGRESS.json manually with PowerShell or any other method.
|
|
309
|
+
> If the script fails, STOP and report the error to the user.
|
|
310
|
+
|
|
311
|
+
After each worker completes:
|
|
283
312
|
```bash
|
|
284
313
|
node speccrew-workspace/scripts/update-progress.js update-task \
|
|
285
314
|
--file speccrew-workspace/iterations/{iteration}/01.product-requirement/DISPATCH-PROGRESS.json \
|
|
@@ -412,13 +441,36 @@ After user confirms (HARD STOP passed), update `.checkpoints.json`:
|
|
|
412
441
|
|
|
413
442
|
# Constraints
|
|
414
443
|
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
444
|
+
### MANDATORY Phase Execution Order
|
|
445
|
+
|
|
446
|
+
Phase 0 → Phase 1 → Phase 2 → Phase 3 → Phase 4 (if complex) → Phase 5
|
|
447
|
+
|
|
448
|
+
> ⚠️ Phases MUST execute in order. DO NOT skip any phase.
|
|
449
|
+
> Phase 4 is MANDATORY for complex requirements (3+ modules).
|
|
450
|
+
|
|
451
|
+
### MANDATORY CLARIFICATION RULE
|
|
452
|
+
|
|
453
|
+
- **NEVER skip requirement clarification** regardless of input quality
|
|
454
|
+
- **NEVER proceed to PRD generation without .clarification-summary.md**
|
|
455
|
+
- **NEVER assume requirement completeness** — always verify with at least 1 round
|
|
456
|
+
|
|
457
|
+
### MANDATORY WORKER DISPATCH RULE
|
|
458
|
+
|
|
459
|
+
- **For complex requirements (3+ modules): Phase 4 is MANDATORY**
|
|
460
|
+
- **MUST dispatch `speccrew-task-worker` with `speccrew-pm-sub-prd-generate/SKILL.md` for each Sub-PRD**
|
|
461
|
+
- **DO NOT generate Sub-PRDs yourself** — you are the orchestrator, not the writer
|
|
462
|
+
- **MUST use `update-progress.js` for all progress file operations** — DO NOT create JSON files manually
|
|
463
|
+
|
|
464
|
+
### MANDATORY TEMPLATE PATH
|
|
465
|
+
|
|
466
|
+
- **PRD Template**: Search with glob `**/speccrew-pm-requirement-analysis/templates/PRD-TEMPLATE.md`
|
|
467
|
+
- **BIZS Modeling Template**: Search with glob `**/speccrew-pm-requirement-analysis/templates/BIZS-MODELING-TEMPLATE.md`
|
|
468
|
+
- **Sub-PRD Template**: The Sub-PRD worker skill (`speccrew-pm-sub-prd-generate/SKILL.md`) receives template_path as parameter — pass the found PRD template path to the worker
|
|
469
|
+
- **DO NOT search for templates in bizs/, knowledges/, project source, or other unrelated directories**
|
|
470
|
+
- **DO NOT try to find templates by listing all .md files in the project**
|
|
471
|
+
- **Templates are ALWAYS in the skill's own `templates/` subfolder**, accessed via glob pattern
|
|
420
472
|
|
|
421
|
-
|
|
473
|
+
### Must do
|
|
422
474
|
- Read business module list to confirm boundaries between requirements and existing features
|
|
423
475
|
- Use templates from `speccrew-pm-requirement-analysis/templates/`
|
|
424
476
|
- Explicitly prompt user for review and confirmation after PRD completion
|
|
@@ -427,10 +479,12 @@ After user confirms (HARD STOP passed), update `.checkpoints.json`:
|
|
|
427
479
|
- Perform Complexity Assessment & Skill Routing at Phase 1 to determine simple vs complex workflow
|
|
428
480
|
- For complex requirements (3+ modules), dispatch Sub-PRD generation to parallel workers using `speccrew-pm-sub-prd-generate/SKILL.md`
|
|
429
481
|
|
|
430
|
-
|
|
482
|
+
### Must not do
|
|
431
483
|
- Do not make technical solution decisions (that's speccrew-planner's responsibility)
|
|
432
484
|
- Do not skip manual confirmation to directly start the next stage
|
|
433
485
|
- Do not assume business rules on your own; clarify unclear requirements with the user
|
|
434
486
|
- Do not skip the clarification process, even when user provides detailed documents
|
|
435
487
|
- Do not automatically transition to or invoke the next stage agent (Feature Designer). The user will start the next stage in a new conversation window.
|
|
488
|
+
- Do not create WORKFLOW-PROGRESS.json or DISPATCH-PROGRESS.json manually when the script is available
|
|
489
|
+
- Do not search for PRD templates outside the skill's templates/ directory
|
|
436
490
|
|
|
@@ -50,13 +50,22 @@ This skill applies the ISA-95 six-stage methodology (Stages 1-3) as an internal
|
|
|
50
50
|
|
|
51
51
|
⚠️ **MANDATORY: This step CANNOT be skipped.**
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
**ABORT CONDITIONS — If ANY of these apply, workflow MUST STOP:**
|
|
54
|
+
- `.clarification-summary.md` file was not generated
|
|
55
|
+
- Sufficiency Checks are not ALL marked as ✅
|
|
56
|
+
- No Q&A round was conducted with the user
|
|
57
|
+
|
|
58
|
+
**DO NOT proceed to Step 2 without completing this step.**
|
|
59
|
+
|
|
60
|
+
**MANDATORY CLARIFICATION LOGIC:**
|
|
61
|
+
- ALWAYS perform at least 1 clarification round, REGARDLESS of input completeness
|
|
62
|
+
- NEVER skip clarification based on user urgency or perceived completeness
|
|
63
|
+
- COMPLETE ALL Sufficiency Checks before proceeding
|
|
64
|
+
|
|
65
|
+
**Clarification Depth:**
|
|
66
|
+
- User provided complete requirement document → Minimum 1 confirmation round to verify understanding
|
|
67
|
+
- User provided incomplete input → Minimum 2 rounds (Core scope + Boundaries), 3rd round if needed
|
|
68
|
+
- User says "skip clarification" → REFUSE. Explain: "Clarification ensures PRD quality and cannot be skipped."
|
|
60
69
|
|
|
61
70
|
Use progressive questioning to clarify requirements. Do NOT ask all questions at once.
|
|
62
71
|
|
|
@@ -145,21 +154,21 @@ Path: speccrew-workspace/iterations/{iteration}/01.product-requirement/.clarific
|
|
|
145
154
|
|
|
146
155
|
### Proceed Gate to Step 2
|
|
147
156
|
|
|
148
|
-
**
|
|
157
|
+
⚠️ **HARD STOP — Proceed Gate:**
|
|
149
158
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
159
|
+
**ABORT if ANY condition is missing:**
|
|
160
|
+
- [ ] `.clarification-summary.md` file MUST exist with complete content
|
|
161
|
+
- [ ] ALL 4 Sufficiency Checks MUST be marked as ✅
|
|
162
|
+
- [ ] At least 1 confirmed round of clarification Q&A
|
|
163
|
+
- [ ] Key Decisions section MUST be filled
|
|
153
164
|
|
|
154
|
-
IF
|
|
155
|
-
|
|
156
|
-
|
|
165
|
+
**IF ANY condition fails:**
|
|
166
|
+
→ REFUSE to proceed to Step 2
|
|
167
|
+
→ Continue clarification until ALL conditions pass
|
|
157
168
|
|
|
158
|
-
|
|
169
|
+
**ONLY after ALL conditions verified → Proceed to Step 2**
|
|
159
170
|
|
|
160
|
-
|
|
161
|
-
# Create or update checkpoint file
|
|
162
|
-
```
|
|
171
|
+
After clarification is confirmed sufficient, write initial `.checkpoints.json`:
|
|
163
172
|
|
|
164
173
|
Write the following structure to `speccrew-workspace/iterations/{iteration}/01.product-requirement/.checkpoints.json`:
|
|
165
174
|
|
|
@@ -362,10 +371,24 @@ Phase 3 (Extension): Remaining modules
|
|
|
362
371
|
|
|
363
372
|
## Step 7: Read PRD Template
|
|
364
373
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
```
|
|
374
|
+
**Locate and read the PRD template file using this search strategy:**
|
|
375
|
+
|
|
376
|
+
1. **Search** for the template using glob pattern:
|
|
377
|
+
```
|
|
378
|
+
**/speccrew-pm-requirement-analysis/templates/PRD-TEMPLATE.md
|
|
379
|
+
```
|
|
380
|
+
This will find the template regardless of IDE adapter path (.qoder/, .claude/, .cursor/, .speccrew/).
|
|
381
|
+
|
|
382
|
+
2. **Read** the found template file.
|
|
383
|
+
|
|
384
|
+
3. **If BIZS modeling template is needed** (for complex systems with 3+ modules):
|
|
385
|
+
```
|
|
386
|
+
**/speccrew-pm-requirement-analysis/templates/BIZS-MODELING-TEMPLATE.md
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
> ⚠️ **DO NOT manually search in these directories:** bizs/, knowledges/, workspace docs, project src/
|
|
390
|
+
> The template is ALWAYS located in the skill's own `templates/` subfolder.
|
|
391
|
+
> If glob returns no results, check if speccrew was properly initialized (`speccrew init`).
|
|
369
392
|
|
|
370
393
|
After reading the template, check if any required information is missing based on:
|
|
371
394
|
- Template structure requirements
|
|
@@ -629,8 +652,11 @@ Total files: 1 (Master) + N (Sub-PRDs) = N+1 files.
|
|
|
629
652
|
|
|
630
653
|
**IF Step 8 determined Master-Sub structure:**
|
|
631
654
|
|
|
632
|
-
⚠️ **
|
|
633
|
-
|
|
655
|
+
⚠️ **CRITICAL — Sub-PRD Generation Rules:**
|
|
656
|
+
|
|
657
|
+
1. **DO NOT generate Sub-PRD files in this Skill** — this Skill outputs the dispatch plan ONLY
|
|
658
|
+
2. **DO NOT skip Sub-PRD generation** — If modules > 1, Sub-PRDs are REQUIRED
|
|
659
|
+
3. **This Skill MUST RETURN control to PM Agent for Phase 4 execution**
|
|
634
660
|
|
|
635
661
|
Prepare and output the dispatch plan for the PM Agent:
|
|
636
662
|
|
|
@@ -657,11 +683,18 @@ For each module, collect and output the following context data:
|
|
|
657
683
|
After outputting the dispatch plan:
|
|
658
684
|
|
|
659
685
|
```
|
|
660
|
-
→ RETURN to PM Agent
|
|
661
|
-
→ PM Agent
|
|
662
|
-
→ Each worker uses speccrew-pm-sub-prd-generate/SKILL.md
|
|
686
|
+
→ **MANDATORY: RETURN to PM Agent Phase 4 (Sub-PRD Worker Dispatch)**
|
|
687
|
+
→ PM Agent MUST invoke speccrew-task-worker for each module
|
|
688
|
+
→ Each worker uses speccrew-pm-sub-prd-generate/SKILL.md
|
|
689
|
+
→ All workers execute in parallel
|
|
690
|
+
→ After ALL workers complete → PM Agent executes Phase 5 Verification
|
|
663
691
|
```
|
|
664
692
|
|
|
693
|
+
**IF PM Agent skips Phase 4:**
|
|
694
|
+
- Sub-PRDs will NOT be generated
|
|
695
|
+
- Master PRD alone is INCOMPLETE for Feature Design stage
|
|
696
|
+
- Entire PRD stage must be redone
|
|
697
|
+
|
|
665
698
|
**IF Single PRD Structure:** Skip this step (no Sub-PRDs needed).
|
|
666
699
|
|
|
667
700
|
---
|
|
@@ -80,9 +80,19 @@ node speccrew-workspace/scripts/update-progress.js update-workflow \
|
|
|
80
80
|
|
|
81
81
|
### Step 3: Read PRD Template
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
**Locate and read the PRD template:**
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
1. **Search** for the template using glob pattern:
|
|
86
|
+
```
|
|
87
|
+
**/speccrew-pm-requirement-analysis/templates/PRD-TEMPLATE.md
|
|
88
|
+
```
|
|
89
|
+
> Note: Simple requirement skill shares the PRD template with the complex requirement skill.
|
|
90
|
+
|
|
91
|
+
2. **Read** the found template file.
|
|
92
|
+
|
|
93
|
+
> ⚠️ **DO NOT search in bizs/, knowledges/, or project source directories.**
|
|
94
|
+
> The template is ALWAYS located in the skill's own `templates/` subfolder.
|
|
95
|
+
> If glob returns no results, check if speccrew was properly initialized (`speccrew init`).
|
|
86
96
|
|
|
87
97
|
### Step 4: Generate Single PRD
|
|
88
98
|
|