speccrew 0.3.8 → 0.3.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.
|
@@ -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,33 @@ 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**: `templates/PRD-TEMPLATE.md` (relative to the invoked skill directory)
|
|
467
|
+
- **BIZS Modeling Template**: `templates/BIZS-MODELING-TEMPLATE.md` (relative to the invoked skill directory)
|
|
468
|
+
- **DO NOT search for templates in bizs/, knowledges/, or other directories**
|
|
420
469
|
|
|
421
|
-
|
|
470
|
+
### Must do
|
|
422
471
|
- Read business module list to confirm boundaries between requirements and existing features
|
|
423
472
|
- Use templates from `speccrew-pm-requirement-analysis/templates/`
|
|
424
473
|
- Explicitly prompt user for review and confirmation after PRD completion
|
|
@@ -427,10 +476,12 @@ After user confirms (HARD STOP passed), update `.checkpoints.json`:
|
|
|
427
476
|
- Perform Complexity Assessment & Skill Routing at Phase 1 to determine simple vs complex workflow
|
|
428
477
|
- For complex requirements (3+ modules), dispatch Sub-PRD generation to parallel workers using `speccrew-pm-sub-prd-generate/SKILL.md`
|
|
429
478
|
|
|
430
|
-
|
|
479
|
+
### Must not do
|
|
431
480
|
- Do not make technical solution decisions (that's speccrew-planner's responsibility)
|
|
432
481
|
- Do not skip manual confirmation to directly start the next stage
|
|
433
482
|
- Do not assume business rules on your own; clarify unclear requirements with the user
|
|
434
483
|
- Do not skip the clarification process, even when user provides detailed documents
|
|
435
484
|
- 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.
|
|
485
|
+
- Do not create WORKFLOW-PROGRESS.json or DISPATCH-PROGRESS.json manually when the script is available
|
|
486
|
+
- Do not search for PRD templates outside the skill's templates/ directory
|
|
436
487
|
|
|
@@ -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,12 @@ Phase 3 (Extension): Remaining modules
|
|
|
362
371
|
|
|
363
372
|
## Step 7: Read PRD Template
|
|
364
373
|
|
|
365
|
-
Read the template file:
|
|
374
|
+
Read the PRD template file:
|
|
366
375
|
```
|
|
367
|
-
|
|
376
|
+
templates/PRD-TEMPLATE.md
|
|
368
377
|
```
|
|
378
|
+
> This path is relative to the current skill directory (`.speccrew/skills/speccrew-pm-requirement-analysis/`).
|
|
379
|
+
> **DO NOT search for PRD templates in bizs/, knowledges/, workspace docs, or any other directory.**
|
|
369
380
|
|
|
370
381
|
After reading the template, check if any required information is missing based on:
|
|
371
382
|
- Template structure requirements
|
|
@@ -629,8 +640,11 @@ Total files: 1 (Master) + N (Sub-PRDs) = N+1 files.
|
|
|
629
640
|
|
|
630
641
|
**IF Step 8 determined Master-Sub structure:**
|
|
631
642
|
|
|
632
|
-
⚠️ **
|
|
633
|
-
|
|
643
|
+
⚠️ **CRITICAL — Sub-PRD Generation Rules:**
|
|
644
|
+
|
|
645
|
+
1. **DO NOT generate Sub-PRD files in this Skill** — this Skill outputs the dispatch plan ONLY
|
|
646
|
+
2. **DO NOT skip Sub-PRD generation** — If modules > 1, Sub-PRDs are REQUIRED
|
|
647
|
+
3. **This Skill MUST RETURN control to PM Agent for Phase 4 execution**
|
|
634
648
|
|
|
635
649
|
Prepare and output the dispatch plan for the PM Agent:
|
|
636
650
|
|
|
@@ -657,11 +671,18 @@ For each module, collect and output the following context data:
|
|
|
657
671
|
After outputting the dispatch plan:
|
|
658
672
|
|
|
659
673
|
```
|
|
660
|
-
→ RETURN to PM Agent
|
|
661
|
-
→ PM Agent
|
|
662
|
-
→ Each worker uses speccrew-pm-sub-prd-generate/SKILL.md
|
|
674
|
+
→ **MANDATORY: RETURN to PM Agent Phase 4 (Sub-PRD Worker Dispatch)**
|
|
675
|
+
→ PM Agent MUST invoke speccrew-task-worker for each module
|
|
676
|
+
→ Each worker uses speccrew-pm-sub-prd-generate/SKILL.md
|
|
677
|
+
→ All workers execute in parallel
|
|
678
|
+
→ After ALL workers complete → PM Agent executes Phase 5 Verification
|
|
663
679
|
```
|
|
664
680
|
|
|
681
|
+
**IF PM Agent skips Phase 4:**
|
|
682
|
+
- Sub-PRDs will NOT be generated
|
|
683
|
+
- Master PRD alone is INCOMPLETE for Feature Design stage
|
|
684
|
+
- Entire PRD stage must be redone
|
|
685
|
+
|
|
665
686
|
**IF Single PRD Structure:** Skip this step (no Sub-PRDs needed).
|
|
666
687
|
|
|
667
688
|
---
|
|
@@ -80,9 +80,20 @@ node speccrew-workspace/scripts/update-progress.js update-workflow \
|
|
|
80
80
|
|
|
81
81
|
### Step 3: Read PRD Template
|
|
82
82
|
|
|
83
|
-
Read
|
|
83
|
+
Read the PRD template from the complex requirement skill's template directory:
|
|
84
|
+
```
|
|
85
|
+
{skill-root}/../speccrew-pm-requirement-analysis/templates/PRD-TEMPLATE.md
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Where `{skill-root}` is the directory of this skill (`.speccrew/skills/speccrew-pm-requirement-simple/`).
|
|
89
|
+
|
|
90
|
+
Alternatively, if the file is available at workspace level:
|
|
91
|
+
```
|
|
92
|
+
speccrew-workspace/docs/templates/PRD-TEMPLATE.md
|
|
93
|
+
```
|
|
84
94
|
|
|
85
|
-
|
|
95
|
+
> **Priority**: Use the skill-level template first. Only fall back to workspace-level if not found.
|
|
96
|
+
> **DO NOT search in bizs/, knowledges/, or other unrelated directories.**
|
|
86
97
|
|
|
87
98
|
### Step 4: Generate Single PRD
|
|
88
99
|
|