speccrew 0.7.20 → 0.7.21
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/.speccrew/skills/speccrew-pm-phase5-subprd-dispatch/SKILL.md +71 -71
- package/.speccrew/skills/speccrew-pm-phase6-verify-confirm/SKILL.md +2 -2
- package/.speccrew/skills/speccrew-pm-requirement-clarify/templates/CLARIFICATION-QUESTIONS-TEMPLATE.md +23 -23
- package/.speccrew/skills/speccrew-pm-requirement-clarify/templates/CLARIFICATION-SUMMARY-TEMPLATE.md +21 -21
- package/.speccrew/skills/speccrew-product-manager-orchestration/SKILL.md +9 -9
- package/package.json +1 -1
|
@@ -2,93 +2,93 @@
|
|
|
2
2
|
|
|
3
3
|
## Description
|
|
4
4
|
|
|
5
|
-
PM Phase 5 Sub-PRD
|
|
5
|
+
PM Phase 5 Sub-PRD Batch Dispatch Skill. Responsible for dispatching Sub-PRD generation tasks (split from complex requirements) to Worker Agents in batches.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
7
|
+
This Skill is the core orchestration component of the Master-Sub PRD workflow, implementing:
|
|
8
|
+
- Reading Dispatch Plan from Master PRD (Sub-PRD grouping information)
|
|
9
|
+
- Initializing dispatch progress tracking file DISPATCH-PROGRESS.json
|
|
10
|
+
- Batch parallel dispatch of Workers to generate Sub-PRDs for each module
|
|
11
|
+
- Failure retry mechanism (max 1 retry)
|
|
12
|
+
- Result collection and completeness verification
|
|
13
13
|
|
|
14
14
|
## Input Parameters
|
|
15
15
|
|
|
16
16
|
| Parameter | Type | Required | Description |
|
|
17
17
|
|-----------|------|----------|-------------|
|
|
18
|
-
| `prd_output` | object | true | Phase 4 PRD
|
|
19
|
-
| `iteration_path` | string | true |
|
|
20
|
-
| `language` | string | false |
|
|
21
|
-
| `workspace_path` | string | true | speccrew-workspace
|
|
22
|
-
| `update_progress_script` | string | true | update-progress.js
|
|
23
|
-
| `max_concurrent_workers` | number | false |
|
|
18
|
+
| `prd_output` | object | true | Phase 4 PRD generation output, containing master_prd_path, dispatch_plan_path, etc. |
|
|
19
|
+
| `iteration_path` | string | true | Absolute path to current iteration directory |
|
|
20
|
+
| `language` | string | false | User language (default: zh) |
|
|
21
|
+
| `workspace_path` | string | true | Absolute path to speccrew-workspace root directory |
|
|
22
|
+
| `update_progress_script` | string | true | Absolute path to update-progress.js script |
|
|
23
|
+
| `max_concurrent_workers` | number | false | Maximum concurrent Workers (default: 5) |
|
|
24
24
|
|
|
25
25
|
## Outputs
|
|
26
26
|
|
|
27
27
|
| Output | Type | Description |
|
|
28
28
|
|--------|------|-------------|
|
|
29
|
-
| `dispatch_result` | string |
|
|
30
|
-
| `total_subprds` | number | Sub-PRD
|
|
31
|
-
| `success_count` | number |
|
|
32
|
-
| `failure_count` | number |
|
|
33
|
-
| `sub_prd_files` | array |
|
|
34
|
-
| `feature_list_path` | string | Feature List
|
|
29
|
+
| `dispatch_result` | string | Dispatch result status: success / partial / failed |
|
|
30
|
+
| `total_subprds` | number | Total Sub-PRD count |
|
|
31
|
+
| `success_count` | number | Successfully generated Sub-PRD count |
|
|
32
|
+
| `failure_count` | number | Failed Sub-PRD count |
|
|
33
|
+
| `sub_prd_files` | array | List of generated Sub-PRD file paths |
|
|
34
|
+
| `feature_list_path` | string | Feature List file path |
|
|
35
35
|
|
|
36
36
|
<!-- @agentflow: workflow.agentflow.xml -->
|
|
37
37
|
|
|
38
38
|
## Checklist
|
|
39
39
|
|
|
40
|
-
### Step 5.1:
|
|
41
|
-
- [ ]
|
|
42
|
-
- [ ]
|
|
43
|
-
- [ ]
|
|
44
|
-
|
|
45
|
-
### Step 5.2:
|
|
46
|
-
- [ ]
|
|
47
|
-
- [ ]
|
|
48
|
-
- [ ]
|
|
49
|
-
|
|
50
|
-
### Step 5.3:
|
|
51
|
-
- [ ]
|
|
52
|
-
- [ ]
|
|
53
|
-
- [ ]
|
|
54
|
-
- [ ]
|
|
55
|
-
|
|
56
|
-
### Step 5.4:
|
|
57
|
-
- [ ]
|
|
58
|
-
- [ ]
|
|
59
|
-
- [ ]
|
|
60
|
-
|
|
61
|
-
### Step 5.5:
|
|
62
|
-
- [ ]
|
|
63
|
-
- [ ]
|
|
64
|
-
- [ ]
|
|
65
|
-
- [ ]
|
|
66
|
-
- [ ]
|
|
67
|
-
|
|
68
|
-
### Step 5.6:
|
|
69
|
-
- [ ]
|
|
40
|
+
### Step 5.1: Read Dispatch Plan
|
|
41
|
+
- [ ] Read dispatch-plan from Master PRD (Sub-PRD grouping information)
|
|
42
|
+
- [ ] Parse sub_prd_groups array
|
|
43
|
+
- [ ] Verify each group contains required fields: module_id, module_name, module_key, module_scope, module_entities
|
|
44
|
+
|
|
45
|
+
### Step 5.2: Initialize Progress Tracking
|
|
46
|
+
- [ ] Create temporary task definition file .tasks-temp.json
|
|
47
|
+
- [ ] Initialize DISPATCH-PROGRESS.json using update-progress.js script
|
|
48
|
+
- [ ] Verify initialization success (Total: N | Pending: N | Completed: 0)
|
|
49
|
+
|
|
50
|
+
### Step 5.3: Batch Dispatch Workers
|
|
51
|
+
- [ ] Group in batches of 5 for parallel dispatch
|
|
52
|
+
- [ ] Each Worker carries complete context parameters
|
|
53
|
+
- [ ] Update DISPATCH-PROGRESS.json after each batch completes
|
|
54
|
+
- [ ] Continue to next batch until all modules are processed
|
|
55
|
+
|
|
56
|
+
### Step 5.4: Failure Retry
|
|
57
|
+
- [ ] Check for tasks with failed status
|
|
58
|
+
- [ ] If failures exist -> retry once (single retry mechanism)
|
|
59
|
+
- [ ] If still failing after retry -> log and continue
|
|
60
|
+
|
|
61
|
+
### Step 5.5: Result Collection and Verification
|
|
62
|
+
- [ ] Read final DISPATCH-PROGRESS.json
|
|
63
|
+
- [ ] Verify all Sub-PRD files exist and size > 3KB
|
|
64
|
+
- [ ] Generate summary report
|
|
65
|
+
- [ ] Update checkpoint
|
|
66
|
+
- [ ] Verify feature list completeness
|
|
67
|
+
|
|
68
|
+
### Step 5.6: User Confirmation
|
|
69
|
+
- [ ] Wait for user confirmation of Sub-PRD generation results
|
|
70
70
|
|
|
71
71
|
## Key Rules
|
|
72
72
|
|
|
73
|
-
### MANDATORY - Worker
|
|
74
|
-
- **ONE Worker per Module** -
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
### MANDATORY -
|
|
80
|
-
- **Batch Size = 5** -
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
|
|
85
|
-
### MANDATORY -
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
-
|
|
89
|
-
|
|
90
|
-
### FORBIDDEN -
|
|
91
|
-
-
|
|
92
|
-
-
|
|
93
|
-
-
|
|
94
|
-
-
|
|
73
|
+
### MANDATORY - Worker Dispatch Rules
|
|
74
|
+
- **ONE Worker per Module** - Dispatch one independent Worker per Sub-PRD module
|
|
75
|
+
- **PM Must Not Generate Directly** - PM Agent must NOT directly generate Sub-PRD content
|
|
76
|
+
- **Must Use dispatch-to-worker** - All Workers must be executed via `dispatch-to-worker` action
|
|
77
|
+
- **Direct Skill Invocation Forbidden** - Must NOT directly invoke `speccrew-pm-sub-prd-generate` skill
|
|
78
|
+
|
|
79
|
+
### MANDATORY - Batch Processing Rules
|
|
80
|
+
- **Batch Size = 5** - Maximum 5 parallel Workers per batch
|
|
81
|
+
- **Parallel Dispatch** - Workers in the same batch must be dispatched simultaneously
|
|
82
|
+
- **Sequential Wait** - Wait for current batch to complete before dispatching next batch
|
|
83
|
+
- **Progress Update** - Immediately update DISPATCH-PROGRESS.json after each Worker completes
|
|
84
|
+
|
|
85
|
+
### MANDATORY - Progress Tracking Rules
|
|
86
|
+
- **Script Initialization** - DISPATCH-PROGRESS.json must be created via update-progress.js
|
|
87
|
+
- **Manual Creation Forbidden** - Must NOT create progress files directly via create_file or PowerShell
|
|
88
|
+
- **Idempotent Update** - Use `update-task` command to update individual task status
|
|
89
|
+
|
|
90
|
+
### FORBIDDEN - Prohibited Actions
|
|
91
|
+
- PM Agent directly generating Sub-PRD files is forbidden
|
|
92
|
+
- Dispatching one Worker to handle multiple modules is forbidden
|
|
93
|
+
- Skipping Worker dispatch as a fallback after failure is forbidden
|
|
94
|
+
- Marking checkpoint as passed before user confirmation is forbidden
|
|
@@ -35,7 +35,7 @@ Applies three-stage gated verification:
|
|
|
35
35
|
|
|
36
36
|
## PM Stage Content Boundary
|
|
37
37
|
|
|
38
|
-
> **DO NOT:** Update checkpoints before user confirmation, skip user review gate, auto-proceed without explicit "
|
|
38
|
+
> **DO NOT:** Update checkpoints before user confirmation, skip user review gate, auto-proceed without explicit "confirm" or "OK", modify PRD document status before confirmation.
|
|
39
39
|
|
|
40
40
|
## Templates Used
|
|
41
41
|
|
|
@@ -75,7 +75,7 @@ Applies three-stage gated verification:
|
|
|
75
75
|
|
|
76
76
|
**Must do:**
|
|
77
77
|
- Execute all verification steps in order: 6.1 → 6.2 → 6.3
|
|
78
|
-
- Wait for explicit user confirmation ("
|
|
78
|
+
- Wait for explicit user confirmation ("confirm" or "OK") before Phase 6.3
|
|
79
79
|
- Use `update-progress.js` for all JSON file updates
|
|
80
80
|
- Present complete verification summary to user
|
|
81
81
|
- Report all deliverables with file paths and sizes
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Requirement Clarification Questionnaire - Round {round_number}
|
|
2
2
|
|
|
3
3
|
> **Iteration**: {iteration_name}
|
|
4
4
|
> **Date**: {date}
|
|
5
5
|
> **Complexity**: {complexity_level}
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Clarification Context
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Based on the user requirement: "{requirement_summary}", the following items need further clarification.
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Items to Confirm
|
|
12
12
|
|
|
13
|
-
### 🎯
|
|
13
|
+
### 🎯 Business Scope & Boundaries
|
|
14
14
|
|
|
15
|
-
| # |
|
|
15
|
+
| # | Question | Priority | User Answer |
|
|
16
16
|
|---|------|--------|---------|
|
|
17
|
-
| 1 | {question} | {priority} |
|
|
17
|
+
| 1 | {question} | {priority} | _To be answered_ |
|
|
18
18
|
|
|
19
|
-
### 👥
|
|
19
|
+
### 👥 User Roles & Permissions
|
|
20
20
|
|
|
21
|
-
| # |
|
|
21
|
+
| # | Question | Priority | User Answer |
|
|
22
22
|
|---|------|--------|---------|
|
|
23
|
-
| 1 | {question} | {priority} |
|
|
23
|
+
| 1 | {question} | {priority} | _To be answered_ |
|
|
24
24
|
|
|
25
|
-
### 🔄
|
|
25
|
+
### 🔄 Business Rules & Processes
|
|
26
26
|
|
|
27
|
-
| # |
|
|
27
|
+
| # | Question | Priority | User Answer |
|
|
28
28
|
|---|------|--------|---------|
|
|
29
|
-
| 1 | {question} | {priority} |
|
|
29
|
+
| 1 | {question} | {priority} | _To be answered_ |
|
|
30
30
|
|
|
31
|
-
### 🔗
|
|
31
|
+
### 🔗 Integration & Dependencies
|
|
32
32
|
|
|
33
|
-
| # |
|
|
33
|
+
| # | Question | Priority | User Answer |
|
|
34
34
|
|---|------|--------|---------|
|
|
35
|
-
| 1 | {question} | {priority} |
|
|
35
|
+
| 1 | {question} | {priority} | _To be answered_ |
|
|
36
36
|
|
|
37
|
-
### ⚡
|
|
37
|
+
### ⚡ Performance & Constraints
|
|
38
38
|
|
|
39
|
-
| # |
|
|
39
|
+
| # | Question | Priority | User Answer |
|
|
40
40
|
|---|------|--------|---------|
|
|
41
|
-
| 1 | {question} | {priority} |
|
|
41
|
+
| 1 | {question} | {priority} | _To be answered_ |
|
|
42
42
|
|
|
43
43
|
---
|
|
44
44
|
|
|
45
|
-
##
|
|
45
|
+
## Instructions
|
|
46
46
|
|
|
47
|
-
1.
|
|
48
|
-
2.
|
|
49
|
-
3.
|
|
47
|
+
1. Please fill in your answers directly in the "User Answer" column
|
|
48
|
+
2. If a question is not applicable, enter "N/A" with a brief explanation
|
|
49
|
+
3. If additional information is needed, you may append notes after your answer
|
package/.speccrew/skills/speccrew-pm-requirement-clarify/templates/CLARIFICATION-SUMMARY-TEMPLATE.md
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Requirement Clarification Summary
|
|
2
2
|
|
|
3
3
|
> **Iteration**: {iteration_name}
|
|
4
4
|
> **Total Rounds**: {total_rounds}
|
|
5
5
|
> **Date**: {date}
|
|
6
6
|
> **Final Sufficiency**: {sufficiency_result} ({checks_passed}/4)
|
|
7
7
|
|
|
8
|
-
## 1.
|
|
8
|
+
## 1. Requirement Overview
|
|
9
9
|
|
|
10
10
|
{requirement_overview}
|
|
11
11
|
|
|
12
|
-
## 2.
|
|
12
|
+
## 2. Complexity Assessment
|
|
13
13
|
|
|
14
|
-
|
|
|
14
|
+
| Dimension | Assessment | Rationale |
|
|
15
15
|
|------|------|------|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
16
|
+
| Business Complexity | {business_complexity} | {reason} |
|
|
17
|
+
| Technical Complexity | {technical_complexity} | {reason} |
|
|
18
|
+
| Integration Complexity | {integration_complexity} | {reason} |
|
|
19
|
+
| **Overall Assessment** | **{overall_complexity}** | |
|
|
20
20
|
|
|
21
|
-
## 3.
|
|
21
|
+
## 3. Key Decision Log
|
|
22
22
|
|
|
23
|
-
| # |
|
|
23
|
+
| # | Decision Item | Decision Result | Confirmed Round |
|
|
24
24
|
|---|--------|---------|---------|
|
|
25
25
|
| 1 | {decision_item} | {decision_result} | Round {N} |
|
|
26
26
|
|
|
27
|
-
## 4.
|
|
27
|
+
## 4. Clarification Q&A Summary
|
|
28
28
|
|
|
29
29
|
### Round {N}
|
|
30
30
|
|
|
31
|
-
| # |
|
|
31
|
+
| # | Question | Answer | Category |
|
|
32
32
|
|---|------|------|------|
|
|
33
33
|
| 1 | {question} | {answer} | {category} |
|
|
34
34
|
|
|
35
|
-
## 5.
|
|
35
|
+
## 5. Sufficiency Check Results
|
|
36
36
|
|
|
37
|
-
| # |
|
|
37
|
+
| # | Check Item | Status | Detail |
|
|
38
38
|
|---|--------|------|------|
|
|
39
|
-
| 1 |
|
|
40
|
-
| 2 |
|
|
41
|
-
| 3 |
|
|
42
|
-
| 4 |
|
|
39
|
+
| 1 | Scope boundaries are clear | {status} | {detail} |
|
|
40
|
+
| 2 | Key business rules documented | {status} | {detail} |
|
|
41
|
+
| 3 | Priority/phasing decisions made | {status} | {detail} |
|
|
42
|
+
| 4 | Integration boundaries identified | {status} | {detail} |
|
|
43
43
|
|
|
44
|
-
## 6.
|
|
44
|
+
## 6. Open Issues & Risks
|
|
45
45
|
|
|
46
|
-
| # |
|
|
46
|
+
| # | Issue/Risk | Impact | Suggested Resolution |
|
|
47
47
|
|---|----------|------|------------|
|
|
48
48
|
| 1 | {issue} | {impact} | {suggestion} |
|
|
49
49
|
|
|
50
|
-
## 7.
|
|
50
|
+
## 7. Next Steps
|
|
51
51
|
|
|
52
52
|
{next_steps}
|
|
@@ -87,18 +87,18 @@ There are **mandatory user confirmation gates** after Phase 3 and Phase 4a:
|
|
|
87
87
|
|
|
88
88
|
## Resume Router
|
|
89
89
|
|
|
90
|
-
Phase 0
|
|
90
|
+
Phase 0 outputs `resume_target` to control resume routing:
|
|
91
91
|
|
|
92
92
|
| resume_target | Target Block | Description |
|
|
93
93
|
|---------------|--------------|-------------|
|
|
94
|
-
| `PHASE_1_KNOWLEDGE_CHECK` | P1 |
|
|
95
|
-
| `PHASE_3_USER_CONFIRMATION` | P3-CONFIRM |
|
|
96
|
-
| `PHASE_4_PRD_SIMPLE` | P4-SIMPLE |
|
|
97
|
-
| `PHASE_4A_MODEL` | P4A |
|
|
98
|
-
| `PHASE_4A_CONFIRMATION` | P4A-CONFIRM |
|
|
99
|
-
| `PHASE_4B_PRD_GENERATION` | P4B | Master PRD
|
|
100
|
-
| `PHASE_5_SUBPRD_DISPATCH` | P5 | Sub-PRD
|
|
101
|
-
| `PHASE_6_VERIFICATION` | P6 |
|
|
94
|
+
| `PHASE_1_KNOWLEDGE_CHECK` | P1 | Start from knowledge base check |
|
|
95
|
+
| `PHASE_3_USER_CONFIRMATION` | P3-CONFIRM | Resume to Phase 3 confirmation gate |
|
|
96
|
+
| `PHASE_4_PRD_SIMPLE` | P4-SIMPLE | Simple path PRD generation |
|
|
97
|
+
| `PHASE_4A_MODEL` | P4A | Complex path modeling |
|
|
98
|
+
| `PHASE_4A_CONFIRMATION` | P4A-CONFIRM | Resume to Phase 4a confirmation gate |
|
|
99
|
+
| `PHASE_4B_PRD_GENERATION` | P4B | Master PRD generation |
|
|
100
|
+
| `PHASE_5_SUBPRD_DISPATCH` | P5 | Sub-PRD dispatch |
|
|
101
|
+
| `PHASE_6_VERIFICATION` | P6 | Verification and confirmation |
|
|
102
102
|
|
|
103
103
|
## Invocation Method
|
|
104
104
|
|