speccrew 0.7.74 → 0.7.76

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.
Files changed (71) hide show
  1. package/.speccrew/agents/speccrew-feature-designer.md +4 -647
  2. package/.speccrew/agents/speccrew-product-manager.md +5 -480
  3. package/.speccrew/agents/speccrew-system-deployer.md +6 -457
  4. package/.speccrew/agents/speccrew-system-developer.md +9 -913
  5. package/.speccrew/agents/speccrew-test-manager.md +403 -1112
  6. package/.speccrew/skills/speccrew-agentflow-manager/SKILL.md +6 -149
  7. package/.speccrew/skills/speccrew-deploy-build/SKILL.md +2 -59
  8. package/.speccrew/skills/speccrew-deploy-migrate/SKILL.md +2 -64
  9. package/.speccrew/skills/speccrew-deploy-smoke-test/SKILL.md +2 -75
  10. package/.speccrew/skills/speccrew-deploy-startup/SKILL.md +2 -70
  11. package/.speccrew/skills/speccrew-dev-backend/SKILL.md +2 -381
  12. package/.speccrew/skills/speccrew-dev-desktop-electron/SKILL.md +2 -369
  13. package/.speccrew/skills/speccrew-dev-desktop-tauri/SKILL.md +2 -362
  14. package/.speccrew/skills/speccrew-dev-frontend/SKILL.md +2 -304
  15. package/.speccrew/skills/speccrew-dev-mobile/SKILL.md +2 -294
  16. package/.speccrew/skills/speccrew-dev-review-backend/SKILL.md +2 -204
  17. package/.speccrew/skills/speccrew-dev-review-desktop/SKILL.md +2 -173
  18. package/.speccrew/skills/speccrew-dev-review-frontend/SKILL.md +2 -169
  19. package/.speccrew/skills/speccrew-dev-review-mobile/SKILL.md +2 -173
  20. package/.speccrew/skills/speccrew-fd-api-contract/SKILL.md +2 -251
  21. package/.speccrew/skills/speccrew-fd-feature-analyze/SKILL.md +2 -254
  22. package/.speccrew/skills/speccrew-fd-feature-design/SKILL.md +2 -748
  23. package/.speccrew/skills/speccrew-feature-designer-orchestration/SKILL.md +6 -105
  24. package/.speccrew/skills/speccrew-get-timestamp/SKILL.md +6 -33
  25. package/.speccrew/skills/speccrew-knowledge-bizs-api-analyze/SKILL.md +3 -138
  26. package/.speccrew/skills/speccrew-knowledge-bizs-api-graph/SKILL.md +3 -283
  27. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/SKILL.md +3 -1014
  28. package/.speccrew/skills/speccrew-knowledge-bizs-identify-entries/SKILL.md +4 -343
  29. package/.speccrew/skills/speccrew-knowledge-bizs-init-features/SKILL.md +4 -235
  30. package/.speccrew/skills/speccrew-knowledge-bizs-module-classify/SKILL.md +6 -72
  31. package/.speccrew/skills/speccrew-knowledge-bizs-ui-analyze/SKILL.md +3 -534
  32. package/.speccrew/skills/speccrew-knowledge-bizs-ui-graph/SKILL.md +3 -432
  33. package/.speccrew/skills/speccrew-knowledge-bizs-ui-style-extract/SKILL.md +4 -391
  34. package/.speccrew/skills/speccrew-knowledge-graph-query/SKILL.md +3 -98
  35. package/.speccrew/skills/speccrew-knowledge-graph-write/SKILL.md +3 -92
  36. package/.speccrew/skills/speccrew-knowledge-module-summarize/SKILL.md +3 -181
  37. package/.speccrew/skills/speccrew-knowledge-system-summarize/SKILL.md +3 -148
  38. package/.speccrew/skills/speccrew-knowledge-techs-dispatch/SKILL.md +3 -330
  39. package/.speccrew/skills/speccrew-knowledge-techs-generate/SKILL.md +6 -159
  40. package/.speccrew/skills/speccrew-knowledge-techs-generate-conventions/SKILL.md +3 -142
  41. package/.speccrew/skills/speccrew-knowledge-techs-generate-quality/SKILL.md +3 -568
  42. package/.speccrew/skills/speccrew-knowledge-techs-generate-ui-style/SKILL.md +3 -180
  43. package/.speccrew/skills/speccrew-knowledge-techs-index/SKILL.md +3 -154
  44. package/.speccrew/skills/speccrew-knowledge-techs-init/SKILL.md +3 -176
  45. package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/SKILL.md +3 -135
  46. package/.speccrew/skills/speccrew-pm-knowledge-detector/SKILL.md +4 -88
  47. package/.speccrew/skills/speccrew-pm-module-initializer/SKILL.md +4 -178
  48. package/.speccrew/skills/speccrew-pm-module-matcher/SKILL.md +3 -102
  49. package/.speccrew/skills/speccrew-pm-phase0-init/SKILL.md +5 -78
  50. package/.speccrew/skills/speccrew-pm-phase1-knowledge-check/SKILL.md +5 -85
  51. package/.speccrew/skills/speccrew-pm-phase2-complexity-assess/SKILL.md +4 -100
  52. package/.speccrew/skills/speccrew-pm-phase5-subprd-dispatch/SKILL.md +14 -106
  53. package/.speccrew/skills/speccrew-pm-phase6-verify-confirm/SKILL.md +7 -84
  54. package/.speccrew/skills/speccrew-pm-requirement-analysis/SKILL.md +6 -66
  55. package/.speccrew/skills/speccrew-pm-requirement-assess/SKILL.md +4 -96
  56. package/.speccrew/skills/speccrew-pm-requirement-clarify/SKILL.md +4 -131
  57. package/.speccrew/skills/speccrew-pm-requirement-model/SKILL.md +6 -79
  58. package/.speccrew/skills/speccrew-pm-requirement-simple/SKILL.md +4 -76
  59. package/.speccrew/skills/speccrew-pm-sub-prd-generate/SKILL.md +3 -281
  60. package/.speccrew/skills/speccrew-product-manager-orchestration/SKILL.md +6 -165
  61. package/.speccrew/skills/speccrew-system-deployer-orchestration/SKILL.md +6 -79
  62. package/.speccrew/skills/speccrew-system-designer-orchestration/SKILL.md +2 -35
  63. package/.speccrew/skills/speccrew-system-developer-orchestration/SKILL.md +6 -98
  64. package/.speccrew/skills/speccrew-task-worker-execution/SKILL.md +6 -94
  65. package/.speccrew/skills/speccrew-team-leader-routing/SKILL.md +6 -79
  66. package/.speccrew/skills/speccrew-test-case-design/SKILL.md +2 -58
  67. package/.speccrew/skills/speccrew-test-code-gen/SKILL.md +2 -61
  68. package/.speccrew/skills/speccrew-test-manager-orchestration/SKILL.md +6 -94
  69. package/.speccrew/skills/speccrew-test-reporter/SKILL.md +2 -102
  70. package/.speccrew/skills/speccrew-test-runner/SKILL.md +3 -121
  71. package/package.json +1 -1
@@ -1,99 +1,15 @@
1
1
  ---
2
2
  name: speccrew-pm-knowledge-detector
3
- description: Detect business knowledge base availability and completeness status. Scans sync-state directory to determine if full knowledge (system-overview.md), lite knowledge (features-*.json), or no knowledge is available.
3
+ description: Detect business knowledge base availability and completeness status. Scans sync-state directory to determine if full knowledge, lite knowledge, or no knowledge is available.
4
4
  tools: Read, Glob
5
5
  ---
6
6
 
7
- # Knowledge Base Detector
8
-
9
- Detect business knowledge base availability and completeness status. Scans the sync-state directory to determine the current knowledge state.
10
-
11
- ## Language Adaptation
12
-
13
- **CRITICAL**: Generate all content in the language specified by the `language` parameter.
14
-
15
- - `language: "zh"` → Generate all content in 中文
16
- - `language: "en"` → Generate all content in English
17
- - Other languages → Use the specified language
18
-
19
- **All output content must be in the target language only.**
20
-
21
- ## Trigger Scenarios
22
-
7
+ # Trigger Scenarios
23
8
  - "Check knowledge base status"
24
9
  - "Detect if business knowledge exists"
25
10
  - "Scan knowledge availability"
26
- - "What knowledge is available?"
27
-
28
- ## Input
29
-
30
- | Variable | Type | Description | Required |
31
- |----------|------|-------------|----------|
32
- | `workspace_path` | string | Absolute path to speccrew workspace (e.g., `speccrew-workspace`) | **Yes** |
33
- | `sync_state_bizs_dir` | string | Absolute path to `knowledges/base/sync-state/knowledge-bizs/` directory | **Yes** |
34
- | `configs_dir` | string | Absolute path to `docs/configs/` directory | **Yes** |
35
-
36
- ## Output JSON
37
-
38
- ```json
39
- {
40
- "status": "full | lite | none",
41
- "has_system_overview": false,
42
- "has_features": false,
43
- "has_entry_dirs": false,
44
- "available_platforms": ["web-vue3", "backend-spring"],
45
- "module_count": 0,
46
- "features_files": ["path/to/features-web-vue3.json"],
47
- "entry_dirs_files": ["path/to/entry-dirs-web-vue3.json"],
48
- "system_overview_path": null,
49
- "message": "Knowledge base status detected"
50
- }
51
- ```
52
-
53
- **Status Definitions**:
54
-
55
- | Status | Condition |
56
- |--------|-----------|
57
- | `full` | has_system_overview = true AND has_features = true |
58
- | `lite` | has_features = true AND has_system_overview = false |
59
- | `none` | has_features = false AND has_system_overview = false |
60
11
 
61
12
  ## AgentFlow Definition
62
-
63
13
  <!-- @agentflow: SKILL.xml -->
64
-
65
- > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `speccrew-workspace/docs/rules/agentflow-spec.md`
66
-
67
- ## Constraints
68
-
69
- 1. **READ-ONLY**: This skill does not modify any files
70
- 2. **Fast execution**: Use Glob for scanning, avoid deep file reads
71
- 3. **Graceful handling**: Return empty arrays if directories don't exist
72
- 4. **Path format**: All returned paths should be relative to workspace_path
73
-
74
- > **MANDATORY**: Use the provided absolute paths directly. DO NOT construct or derive paths yourself.
75
-
76
- ## Task Completion Report
77
-
78
- When the task is complete, report:
79
-
80
- ```json
81
- {
82
- "status": "success | failed",
83
- "skill": "speccrew-pm-knowledge-detector",
84
- "detection_result": {
85
- "status": "full | lite | none",
86
- "available_platforms": [...],
87
- "module_count": 0
88
- },
89
- "message": "Knowledge base status detected successfully"
90
- }
91
- ```
92
-
93
- ## Checklist
94
-
95
- - [ ] Step 1: Checked system-overview.md existence
96
- - [ ] Step 2: Scanned for features-*.json files
97
- - [ ] Step 3: Scanned for entry-dirs-*.json files
98
- - [ ] Step 4: Counted platforms and modules
99
- - [ ] Step 5: Determined overall status and returned JSON
14
+ > **REQUIRED**: Before executing this workflow, read the XML workflow specification: speccrew-workspace/docs/rules/agentflow-spec.md
15
+ > Then read and execute the XML workflow in SKILL.xml block-by-block as the authoritative execution plan.
@@ -1,189 +1,15 @@
1
1
  ---
2
2
  name: speccrew-pm-module-initializer
3
- description: Generate analyze task plan for a single business module. Reads features-*.json, filters matched module's pending features, and outputs a task plan JSON (list of features to analyze with analyzer parameters). Used by Worker Agent, invoked by PM Agent for on-demand module task planning.
3
+ description: Generate analyze task plan for a single business module. Reads features-*.json, filters matched module's pending features, and outputs a task plan JSON. Used by Worker Agent, invoked by PM Agent for on-demand module task planning.
4
4
  tools: Read, Write, Skill, Bash
5
5
  ---
6
6
 
7
- # Module Initializer (Task Plan Generator)
8
-
9
- Generate analyze task plan for a single business module. Reads features-*.json, filters matched module's pending features, and outputs a task plan JSON (list of features to analyze with analyzer parameters). Used by Worker Agent, invoked by PM Agent for on-demand module task planning.
10
-
11
- > **Positioning**: Task plan generator for PM phase. Generates task list for PM Agent to orchestrate. Does NOT execute analyze or summarize directly — PM Agent handles Worker dispatch based on task plan output.
12
-
13
- ## Language Adaptation
14
-
15
- **CRITICAL**: Generate all content in the language specified by the `language` parameter.
16
-
17
- - `language: "zh"` → Generate all content in Chinese
18
- - `language: "en"` → Generate all content in English
19
- - Other languages → Use the specified language
20
-
21
- **All output content must be in the target language only.**
22
-
23
- ## Trigger Scenarios
24
-
7
+ # Trigger Scenarios
25
8
  - "Generate task plan for module {name}"
26
9
  - "Plan module {name} initialization"
27
10
  - "List pending features for module {name}"
28
11
 
29
- ## Input
30
-
31
- | Parameter | Type | Required | Description |
32
- |-----------|------|----------|-------------|
33
- | `source_path` | string | Yes | Project source code root path |
34
- | `module_name` | string | Yes | Module name |
35
- | `platform_id` | string | Yes | Platform ID (e.g., "web-vue", "admin-api") |
36
- | `platform_type` | string | Yes | web / mobile / backend / desktop |
37
- | `platform_subtype` | string | No | Platform subtype (e.g., "vue", "spring-boot") |
38
- | `tech_stack` | array | No | Platform tech stack (e.g., ["java", "spring-boot"]) |
39
- | `features_file` | string | Yes | Path to the platform's features-{platform}.json file |
40
- | `output_path` | string | Yes | Knowledge base output root path (e.g., speccrew-workspace/knowledges) |
41
- | `completed_dir` | string | Yes | Marker file output directory for api-analyze .done.json markers. Value from PM Agent: `{sync_state_bizs_dir}/completed` |
42
- | `sourceFile` | string | Yes | Features JSON filename (e.g., "features-backend-fastapi.json"), used for api-analyze marking |
43
- | `language` | string | Yes | Output language (zh / en) |
44
- | `workspace_path` | string | Yes | Workspace root path for constructing absolute paths |
45
-
46
- ## Output JSON
47
-
48
- ```json
49
- {
50
- "module_name": "system",
51
- "platform_id": "web-vue",
52
- "analyzer_skill": "speccrew-knowledge-bizs-ui-analyze",
53
- "tasks": [
54
- {
55
- "id": "ki-web-vue-system-index",
56
- "fileName": "index",
57
- "sourcePath": "src/views/system/user/index.vue",
58
- "documentPath": "knowledges/bizs/web-vue/system/features",
59
- "module": "system",
60
- "platform_type": "web",
61
- "platform_subtype": "vue",
62
- "tech_stack": ["vue", "typescript"],
63
- "language": "zh",
64
- "status": "pending"
65
- }
66
- ],
67
- "total_pending": 90,
68
- "summarize_params": {
69
- "skill": "speccrew-knowledge-module-summarize",
70
- "module_name": "system",
71
- "module_path": "knowledges/bizs/web-vue/system",
72
- "language": "zh"
73
- }
74
- }
75
- ```
76
-
77
- **Field Definitions**:
78
-
79
- | Field | Description |
80
- |-------|-------------|
81
- | `module_name` | Module being processed |
82
- | `platform_id` | Platform identifier |
83
- | `analyzer_skill` | Selected analyzer skill name |
84
- | `tasks` | Array of pending features to analyze |
85
- | `total_pending` | Count of pending features |
86
- | `summarize_params` | Parameters for module-summarize skill (to be executed after all analyze tasks complete) |
87
-
88
- **Task ID Naming Convention**:
89
-
90
- The `id` field follows the format: `ki-{platform_id}-{module}-{fileName}`
91
- - `ki` = knowledge initialization
92
- - `platform_id` = Platform identifier (e.g., "web-vue", "admin-api")
93
- - `module` = Business module name
94
- - `fileName` = Feature file name
95
-
96
- Example: `"ki-web-vue-system-index"`
97
-
98
- > **Note**: This ID is consistent with task IDs in DISPATCH-PROGRESS.json and is used for progress tracking.
99
-
100
12
  ## AgentFlow Definition
101
-
102
13
  <!-- @agentflow: SKILL.xml -->
103
-
104
- > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `speccrew-workspace/docs/rules/agentflow-spec.md`
105
-
106
- ## Constraints
107
-
108
- 1. **Output path format**: Must match bizs-dispatch format: `{output_path}/bizs/{platform_id}/{module_name}/`
109
-
110
- 2. **Use same analyzers as dispatch**:
111
- - Backend → `speccrew-knowledge-bizs-api-analyze`
112
- - Web/Mobile/Desktop → `speccrew-knowledge-bizs-ui-analyze`
113
-
114
- 3. **Worker context**: This Skill runs in Worker Agent context, invoked by PM Agent
115
-
116
- 4. **NO execution**: This Skill generates task plan ONLY. It does NOT:
117
- - Execute analyzer skills
118
- - Execute summarize skills
119
- - Update features.json analyzed field
120
- - All execution is handled by PM Agent based on task plan output
121
-
122
- 5. **Mutual exclusion with full dispatch**: Do not run simultaneously with full dispatch process
123
-
124
- ## Error Handling
125
-
126
- | Scenario | Action |
127
- |----------|--------|
128
- | Features file not found | Return error with message |
129
- | No features for module | Return empty tasks array with summarize_params |
130
- | No pending features | Return empty tasks array with summarize_params |
131
-
132
- ## Reference: Analyzer Input Parameters
133
-
134
- ### API Analyzer (speccrew-knowledge-bizs-api-analyze)
135
-
136
- | Variable | Type | Description | Example |
137
- |----------|------|-------------|---------|
138
- | `fileName` | string | Controller file name | `"UserController"` |
139
- | `sourcePath` | string | Relative path to source file | `"src/.../UserController.java"` |
140
- | `documentPath` | string | Target path for generated document | `"knowledges/bizs/.../features"` |
141
- | `module` | string | Business module name | `"system"` |
142
- | `analyzed` | boolean | Analysis status flag | `false` |
143
- | `platform_type` | string | Platform type | `"backend"` |
144
- | `platform_subtype` | string | Platform subtype | `"spring-boot"` |
145
- | `tech_stack` | array | Platform tech stack | `["java", "spring-boot"]` |
146
- | `language` | string | Target language | `"zh"` |
147
- | `completed_dir` | string | Marker output directory (absolute path) | `".../knowledges/base/sync-state/completed"` |
148
- | `sourceFile` | string | Source features JSON filename | `"features-admin-api.json"` |
149
-
150
- ### UI Analyzer (speccrew-knowledge-bizs-ui-analyze)
151
-
152
- | Variable | Type | Description | Example |
153
- |----------|------|-------------|---------|
154
- | `fileName` | string | Feature file name | `"index"` |
155
- | `sourcePath` | string | Relative path to source file | `"src/views/system/user/index.vue"` |
156
- | `documentPath` | string | Target path for generated document | `"knowledges/bizs/.../features"` |
157
- | `module` | string | Business module name | `"system"` |
158
- | `analyzed` | boolean | Analysis status flag | `false` |
159
- | `platform_type` | string | Platform type | `"web"` |
160
- | `platform_subtype` | string | Platform subtype | `"vue"` |
161
- | `tech_stack` | array | Platform tech stack | `["vue", "typescript"]` |
162
- | `language` | string | Target language | `"zh"` |
163
-
164
- ## Task Completion Report
165
-
166
- When the task is complete, report:
167
-
168
- ```json
169
- {
170
- "status": "success",
171
- "skill": "speccrew-pm-module-initializer",
172
- "output": {
173
- "module_name": "...",
174
- "platform_id": "...",
175
- "analyzer_skill": "...",
176
- "tasks": [...],
177
- "total_pending": <count>,
178
- "summarize_params": {...}
179
- }
180
- }
181
- ```
182
-
183
- ## Checklist
184
-
185
- - [ ] Step 1: Read features file and filtered by module
186
- - [ ] Step 2: Selected analyzer type based on platform_type
187
- - [ ] Step 3: Built task list with analyzer parameters
188
- - [ ] Step 4: Built summarize parameters
189
- - [ ] Step 5: Output task plan JSON
14
+ > **REQUIRED**: Before executing this workflow, read the XML workflow specification: speccrew-workspace/docs/rules/agentflow-spec.md
15
+ > Then read and execute the XML workflow in SKILL.xml block-by-block as the authoritative execution plan.
@@ -4,111 +4,12 @@ description: Match user requirement text against business knowledge base feature
4
4
  tools: Read
5
5
  ---
6
6
 
7
- # Module Matcher
8
-
9
- Match user requirement text against business knowledge base features to identify related modules. Performs semantic matching based on keywords, module names, and feature definitions.
10
-
11
- ## Language Adaptation
12
-
13
- **CRITICAL**: Generate all content in the language specified by the `language` parameter.
14
-
15
- - `language: "zh"` → Generate all content in 中文
16
- - `language: "en"` → Generate all content in English
17
- - Other languages → Use the specified language
18
-
19
- **All output content must be in the target language only.**
20
-
21
- ## Trigger Scenarios
22
-
7
+ # Trigger Scenarios
23
8
  - "Find modules for requirement X"
24
9
  - "Which modules handle user management?"
25
10
  - "Match requirement to knowledge base"
26
- - "Identify relevant modules"
27
-
28
- ## Input
29
-
30
- | Variable | Type | Description | Required |
31
- |----------|------|-------------|----------|
32
- | `requirement_text` | string | User requirement text to match | **Yes** |
33
- | `features_files` | string[] | Array of paths to features-*.json files | **Yes** |
34
- | `language` | string | Target language for output | **Yes** |
35
-
36
- ## Output JSON
37
-
38
- ```json
39
- {
40
- "matched_modules": [
41
- {
42
- "platform_id": "web-vue3",
43
- "module_name": "system",
44
- "platform_type": "web",
45
- "confidence": "high | medium | low",
46
- "matching_features": ["user-management", "role-management"],
47
- "feature_count": 15,
48
- "analyzed_count": 8,
49
- "source_path": "src/views/system"
50
- }
51
- ],
52
- "unmatched_keywords": ["workflow", "approval"],
53
- "recommendation": "Suggested modules based on requirement analysis",
54
- "total_platforms_scanned": 3,
55
- "total_modules_scanned": 12,
56
- "message": "Matching completed"
57
- }
58
- ```
59
-
60
- **Confidence Levels**:
61
-
62
- | Level | Condition |
63
- |-------|-----------|
64
- | `high` | Direct keyword match with module name or feature fileName |
65
- | `medium` | Partial match or synonym match |
66
- | `low` | Related concept match only |
67
11
 
68
12
  ## AgentFlow Definition
69
-
70
13
  <!-- @agentflow: SKILL.xml -->
71
-
72
- > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `speccrew-workspace/docs/rules/agentflow-spec.md`
73
-
74
- ## Constraints
75
-
76
- 1. **READ-ONLY**: This skill does not modify any files
77
- 2. **Handle Chinese+English**: Support bilingual text matching
78
- 3. **Skip unreadable files**: Continue processing even if some files fail
79
- 4. **No external API**: Matching is done locally without LLM calls
80
-
81
- ## Error Handling
82
-
83
- | Scenario | Action |
84
- |----------|--------|
85
- | File not found | Skip file, log warning |
86
- | Invalid JSON | Skip file, log error |
87
- | Empty features array | Continue with empty module list |
88
- | No keywords extracted | Return empty matches with warning |
89
-
90
- ## Task Completion Report
91
-
92
- When the task is complete, report:
93
-
94
- ```json
95
- {
96
- "status": "success | partial | failed",
97
- "skill": "speccrew-pm-module-matcher",
98
- "matching_result": {
99
- "matched_count": 3,
100
- "high_confidence_count": 1,
101
- "medium_confidence_count": 1,
102
- "low_confidence_count": 1
103
- },
104
- "message": "Module matching completed"
105
- }
106
- ```
107
-
108
- ## Checklist
109
-
110
- - [ ] Step 1: Parsed requirement text and extracted keywords
111
- - [ ] Step 2: Read all features files and built index
112
- - [ ] Step 3: Performed semantic matching
113
- - [ ] Step 4: Sorted results and generated recommendation
114
- - [ ] Returned complete JSON output
14
+ > **REQUIRED**: Before executing this workflow, read the XML workflow specification: speccrew-workspace/docs/rules/agentflow-spec.md
15
+ > Then read and execute the XML workflow in SKILL.xml block-by-block as the authoritative execution plan.
@@ -1,88 +1,15 @@
1
1
  ---
2
2
  name: speccrew-pm-phase0-init
3
- description: SpecCrew PM Phase 0 Initialization Skill. Handles iteration directory creation, WORKFLOW-PROGRESS.json management, checkpoint recovery, IDE detection, and path initialization. First step before any PM workflow execution.
3
+ description: SpecCrew PM Phase 0 Initialization Skill. Handles iteration directory creation, WORKFLOW-PROGRESS.json management, checkpoint recovery, IDE detection, and path initialization.
4
4
  tools: Read, Write, Glob, Grep
5
5
  ---
6
6
 
7
- # Skill Overview
8
-
9
- Phase 0 initialization for PM workflow. Ensures proper workspace setup, iteration directory creation, progress tracking initialization, and resume state detection.
10
-
11
- ## Trigger Scenarios
12
-
7
+ # Trigger Scenarios
13
8
  - PM Agent starts a new workflow session
14
9
  - PM Agent needs to detect or create iteration directory
15
10
  - PM Agent needs to check resume state from previous session
16
- - PM Agent needs to initialize path context variables
17
-
18
- ## Input Parameters
19
-
20
- | Parameter | Type | Required | Description |
21
- |-----------|------|----------|-------------|
22
- | `user_requirement` | string | Yes | User requirement description or document path |
23
- | `workspace_root` | string | Yes | speccrew-workspace root directory path |
24
- | `source_path` | string | No | Project source root from .speccrewrc |
25
- | `language` | string | No | User language (auto-detected) |
26
-
27
- ## Methodology Foundation
28
-
29
- Applies workspace initialization principles:
30
- - Iteration directory naming convention: `{number}-{type}-{name}`
31
- - Progress tracking via WORKFLOW-PROGRESS.json
32
- - Checkpoint recovery for session continuity
33
-
34
- ## Templates Used
35
-
36
- | Template | Path | Purpose |
37
- |----------|------|---------|
38
- | WORKFLOW-PROGRESS | `templates/WORKFLOW-PROGRESS-TEMPLATE.json` | Standard workflow progress tracking with 7 predefined stages |
39
-
40
- ## Output Deliverables
41
-
42
- | Deliverable | Path | Description |
43
- |-------------|------|-------------|
44
- | Iteration Directory | `{iterations_dir}/{iteration_name}/` | Created iteration structure |
45
- | WORKFLOW-PROGRESS.json | `{iteration_path}/WORKFLOW-PROGRESS.json` | Workflow progress tracker |
46
- | Path Variables | Context | All computed path variables |
47
-
48
- ---
49
-
50
- # AgentFlow Definition
51
11
 
12
+ ## AgentFlow Definition
52
13
  <!-- @agentflow: SKILL.xml -->
53
-
54
- > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `speccrew-workspace/docs/rules/agentflow-spec.md`
55
-
56
- ---
57
-
58
- # Output Checklist
59
-
60
- - [ ] IDE environment detected
61
- - [ ] Path variables computed (workspace_path, iteration_path, etc.)
62
- - [ ] Iteration directory created or located
63
- - [ ] WORKFLOW-PROGRESS.json initialized or loaded
64
- - [ ] Checkpoint recovery logic executed
65
- - [ ] Resume target determined
66
-
67
- ---
68
-
69
- # Constraints
70
-
71
- **Must do:**
72
- - Follow iteration naming convention `{number}-{type}-{name}`
73
- - Use `update-progress.js` script for WORKFLOW-PROGRESS.json operations
74
- - Compute all path variables as absolute paths
75
- - Check for active iteration before creating new one
76
- - Copy requirement document to iteration's 00.docs directory
77
- - Create EXACTLY two subdirectories: `00.docs/` (original requirement documents) and `01.product-requirement/` (PRD and clarification outputs)
78
- - Initialize `WORKFLOW-PROGRESS.json` from `WORKFLOW-PROGRESS-TEMPLATE.json` template — stage names MUST match template exactly (01_prd, 02_feature_design, etc.)
79
-
80
- **Must not do:**
81
- - Manually create WORKFLOW-PROGRESS.json via Write/Edit tools
82
- - Skip checkpoint recovery check
83
- - Use relative paths in Worker dispatches
84
- - Create iteration directory without proper naming convention
85
- - Pre-create directories for later phases (`02.feature-design/`, `03.system-design/`, `04.development/`, `05.deployment/`, `06.system-test/`, `07.delivery/`) — each phase creates its own directory when needed
86
- - Invent directory names not defined in `workspace-structure.md`
87
- - Manually write WORKFLOW-PROGRESS.json content — MUST use template + update-progress.js script
88
- - Invent custom stage names (e.g., phase0_initialization, phase1_requirement_analysis) — use template-defined names only
14
+ > **REQUIRED**: Before executing this workflow, read the XML workflow specification: speccrew-workspace/docs/rules/agentflow-spec.md
15
+ > Then read and execute the XML workflow in SKILL.xml block-by-block as the authoritative execution plan.
@@ -1,95 +1,15 @@
1
1
  ---
2
2
  name: speccrew-pm-phase1-knowledge-check
3
- description: SpecCrew PM Phase 1 Knowledge Base Availability Check Skill. Detects knowledge base status and initializes business knowledge as needed. Supports three-path routing (Full/Lite/None) with Path B deep initialization sequence.
3
+ description: SpecCrew PM Phase 1 Knowledge Base Availability Check Skill. Detects knowledge base status and initializes business knowledge as needed. Supports three-path routing with Path B deep initialization sequence.
4
4
  tools: Read, Write, Glob, Grep, Bash
5
5
  ---
6
6
 
7
- # Skill Overview
8
-
9
- Knowledge base availability check for PM workflow. Detects existing knowledge status, routes to appropriate path, and initializes business knowledge when needed.
10
-
11
- ## Trigger Scenarios
12
-
7
+ # Trigger Scenarios
13
8
  - PM Agent starts new requirement processing
14
9
  - Knowledge base status unknown
15
- - Feature inventory generation needed
16
10
  - Module matching and deep initialization required
17
11
 
18
- ## Input Parameters
19
-
20
- | Parameter | Type | Required | Description |
21
- |-----------|------|----------|-------------|
22
- | `workspace_path` | string | Yes | Absolute path to speccrew-workspace root |
23
- | `sync_state_bizs_dir` | string | Yes | Absolute path to knowledges/base/sync-state/knowledge-bizs |
24
- | `configs_dir` | string | Yes | Absolute path to docs/configs directory |
25
- | `ide_skills_dir` | string | No | Absolute path to IDE skills directory |
26
- | `source_path` | string | No | Project source root from .speccrewrc |
27
- | `language` | string | No | User language (auto-detected if not provided) |
28
- | `user_requirement` | string | No | User requirement text for module matching |
29
- | `update_progress_script` | string | Yes | Absolute path to update-progress.js script |
30
-
31
- ## Methodology Foundation
32
-
33
- Applies knowledge detection and initialization flow:
34
- - Stage 0: Feature inventory (lightweight metadata scan)
35
- - Stage 1: Deep module initialization (requirement-scoped analysis)
36
-
37
- ## Output Files
38
-
39
- | File | Path | Purpose |
40
- |------|------|---------|
41
- | Features Inventory | `{sync_state_bizs_dir}/features-{platform}.json` | Platform module and feature metadata |
42
- | Entry Dirs | `{sync_state_bizs_dir}/entry-dirs-{platform}.json` | Source directory mapping |
43
- | Module Overview | `{workspace_path}/knowledges/bizs/{platform}/{module}/module-overview.md` | Module documentation |
44
- | System Overview | `{workspace_path}/knowledges/bizs/system-overview.md` | Aggregated system summary |
45
- | Graph Data | `{sync_state_bizs_dir}/completed/*.graph.json` | API/UI relationship graph data |
46
-
47
- ---
48
-
49
- # AgentFlow Definition
50
-
12
+ ## AgentFlow Definition
51
13
  <!-- @agentflow: SKILL.xml -->
52
-
53
- > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `speccrew-workspace/docs/rules/agentflow-spec.md`
54
-
55
- ---
56
-
57
- # Output Checklist
58
-
59
- - [ ] Knowledge detector dispatched and status obtained
60
- - [ ] Correct path selected based on status (A/B/C)
61
- - [ ] **Path A**: System overview summary loaded
62
- - [ ] **Path B**: Module matcher executed
63
- - [ ] **Path B Step 1.5**: DISPATCH-PROGRESS.json initialized
64
- - [ ] **Path B Step 2**: Analyze task plan generated for matched modules
65
- - [ ] **Path B Step 3**: All feature analysis workers dispatched (parallel)
66
- - [ ] **Path B Step 3.5**: Graph data generated for all completed analyses
67
- - [ ] **Path B Step 4**: Module summaries generated
68
- - [ ] **Path B Step 5**: Features status updated (analyzed=true)
69
- - [ ] **Path B Step 6**: System overview generated
70
- - [ ] **Path B Step 7**: Intermediate files cleaned up
71
- - [ ] **Path C**: Feature inventory generated via Worker
72
- - [ ] **Path C Re-check**: Detector re-run and status verified
73
- - [ ] Knowledge context stored for downstream phases
74
-
75
- ---
76
-
77
- # Constraints
78
-
79
- **Must do:**
80
- - MUST dispatch Worker with `speccrew-pm-knowledge-detector` skill - DO NOT manually search directories
81
- - MUST dispatch Worker for `speccrew-knowledge-bizs-init-features` when status is "none"
82
- - MUST dispatch Worker for `speccrew-pm-module-matcher` in Path B
83
- - MUST execute all Path B Steps 1-7 in sequence - DO NOT skip to Phase 2
84
- - MUST use `run_in_terminal` for all script executions via Workers
85
- - MUST use parallel dispatch (max 5 concurrency) for feature analysis
86
- - MUST generate graph data (Step 3.5) before module summaries (Step 4)
87
- - MUST clean up intermediate files after successful completion
88
-
89
- **Must not do:**
90
- - Manually create features-*.json or entry-dirs-*.json files
91
- - Execute knowledge-base scripts directly via Bash (PM Agent must use Workers)
92
- - Write files to `knowledges/techs/*/sync-state/` - output goes to `knowledges/base/sync-state/knowledge-bizs/` ONLY
93
- - Skip Steps 2-5 when matcher returns matched modules
94
- - Ask user "do you want to continue?" mid-way through Path B sequence
95
- - Expose internal concepts (Stage 0, Stage 1) to user
14
+ > **REQUIRED**: Before executing this workflow, read the XML workflow specification: speccrew-workspace/docs/rules/agentflow-spec.md
15
+ > Then read and execute the XML workflow in SKILL.xml block-by-block as the authoritative execution plan.