speccrew 0.7.73 → 0.7.75

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 (74) hide show
  1. package/.speccrew/agents/speccrew-feature-designer.md +96 -0
  2. package/.speccrew/agents/speccrew-product-manager.md +55 -0
  3. package/.speccrew/agents/speccrew-system-deployer.md +178 -0
  4. package/.speccrew/agents/speccrew-system-developer.md +177 -0
  5. package/.speccrew/agents/speccrew-task-worker.md +18 -0
  6. package/.speccrew/agents/speccrew-team-leader.md +56 -0
  7. package/.speccrew/agents/speccrew-test-manager.md +167 -0
  8. package/.speccrew/skills/speccrew-agentflow-manager/SKILL.md +6 -149
  9. package/.speccrew/skills/speccrew-deploy-build/SKILL.md +2 -59
  10. package/.speccrew/skills/speccrew-deploy-migrate/SKILL.md +2 -64
  11. package/.speccrew/skills/speccrew-deploy-smoke-test/SKILL.md +2 -75
  12. package/.speccrew/skills/speccrew-deploy-startup/SKILL.md +2 -70
  13. package/.speccrew/skills/speccrew-dev-backend/SKILL.md +2 -381
  14. package/.speccrew/skills/speccrew-dev-desktop-electron/SKILL.md +2 -369
  15. package/.speccrew/skills/speccrew-dev-desktop-tauri/SKILL.md +2 -362
  16. package/.speccrew/skills/speccrew-dev-frontend/SKILL.md +2 -304
  17. package/.speccrew/skills/speccrew-dev-mobile/SKILL.md +2 -294
  18. package/.speccrew/skills/speccrew-dev-review-backend/SKILL.md +2 -204
  19. package/.speccrew/skills/speccrew-dev-review-desktop/SKILL.md +2 -173
  20. package/.speccrew/skills/speccrew-dev-review-frontend/SKILL.md +2 -169
  21. package/.speccrew/skills/speccrew-dev-review-mobile/SKILL.md +2 -173
  22. package/.speccrew/skills/speccrew-fd-api-contract/SKILL.md +2 -251
  23. package/.speccrew/skills/speccrew-fd-feature-analyze/SKILL.md +2 -254
  24. package/.speccrew/skills/speccrew-fd-feature-design/SKILL.md +2 -748
  25. package/.speccrew/skills/speccrew-feature-designer-orchestration/SKILL.md +6 -105
  26. package/.speccrew/skills/speccrew-get-timestamp/SKILL.md +6 -33
  27. package/.speccrew/skills/speccrew-knowledge-bizs-api-analyze/SKILL.md +3 -138
  28. package/.speccrew/skills/speccrew-knowledge-bizs-api-graph/SKILL.md +3 -283
  29. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/SKILL.md +3 -1014
  30. package/.speccrew/skills/speccrew-knowledge-bizs-identify-entries/SKILL.md +4 -343
  31. package/.speccrew/skills/speccrew-knowledge-bizs-init-features/SKILL.md +4 -235
  32. package/.speccrew/skills/speccrew-knowledge-bizs-module-classify/SKILL.md +6 -72
  33. package/.speccrew/skills/speccrew-knowledge-bizs-ui-analyze/SKILL.md +3 -534
  34. package/.speccrew/skills/speccrew-knowledge-bizs-ui-graph/SKILL.md +3 -432
  35. package/.speccrew/skills/speccrew-knowledge-bizs-ui-style-extract/SKILL.md +4 -391
  36. package/.speccrew/skills/speccrew-knowledge-graph-query/SKILL.md +3 -98
  37. package/.speccrew/skills/speccrew-knowledge-graph-write/SKILL.md +3 -92
  38. package/.speccrew/skills/speccrew-knowledge-module-summarize/SKILL.md +3 -181
  39. package/.speccrew/skills/speccrew-knowledge-system-summarize/SKILL.md +3 -148
  40. package/.speccrew/skills/speccrew-knowledge-techs-dispatch/SKILL.md +3 -330
  41. package/.speccrew/skills/speccrew-knowledge-techs-generate/SKILL.md +6 -159
  42. package/.speccrew/skills/speccrew-knowledge-techs-generate-conventions/SKILL.md +3 -142
  43. package/.speccrew/skills/speccrew-knowledge-techs-generate-quality/SKILL.md +3 -568
  44. package/.speccrew/skills/speccrew-knowledge-techs-generate-ui-style/SKILL.md +3 -180
  45. package/.speccrew/skills/speccrew-knowledge-techs-index/SKILL.md +3 -154
  46. package/.speccrew/skills/speccrew-knowledge-techs-init/SKILL.md +3 -176
  47. package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/SKILL.md +3 -135
  48. package/.speccrew/skills/speccrew-pm-knowledge-detector/SKILL.md +4 -88
  49. package/.speccrew/skills/speccrew-pm-module-initializer/SKILL.md +4 -178
  50. package/.speccrew/skills/speccrew-pm-module-matcher/SKILL.md +3 -102
  51. package/.speccrew/skills/speccrew-pm-phase0-init/SKILL.md +5 -78
  52. package/.speccrew/skills/speccrew-pm-phase1-knowledge-check/SKILL.md +5 -85
  53. package/.speccrew/skills/speccrew-pm-phase2-complexity-assess/SKILL.md +4 -100
  54. package/.speccrew/skills/speccrew-pm-phase5-subprd-dispatch/SKILL.md +14 -106
  55. package/.speccrew/skills/speccrew-pm-phase6-verify-confirm/SKILL.md +7 -84
  56. package/.speccrew/skills/speccrew-pm-requirement-analysis/SKILL.md +6 -66
  57. package/.speccrew/skills/speccrew-pm-requirement-assess/SKILL.md +4 -96
  58. package/.speccrew/skills/speccrew-pm-requirement-clarify/SKILL.md +4 -131
  59. package/.speccrew/skills/speccrew-pm-requirement-model/SKILL.md +6 -79
  60. package/.speccrew/skills/speccrew-pm-requirement-simple/SKILL.md +4 -76
  61. package/.speccrew/skills/speccrew-pm-sub-prd-generate/SKILL.md +3 -281
  62. package/.speccrew/skills/speccrew-product-manager-orchestration/SKILL.md +6 -165
  63. package/.speccrew/skills/speccrew-system-deployer-orchestration/SKILL.md +6 -79
  64. package/.speccrew/skills/speccrew-system-designer-orchestration/SKILL.md +2 -35
  65. package/.speccrew/skills/speccrew-system-developer-orchestration/SKILL.md +6 -98
  66. package/.speccrew/skills/speccrew-task-worker-execution/SKILL.md +6 -94
  67. package/.speccrew/skills/speccrew-team-leader-routing/SKILL.md +6 -79
  68. package/.speccrew/skills/speccrew-test-case-design/SKILL.md +2 -58
  69. package/.speccrew/skills/speccrew-test-code-gen/SKILL.md +2 -61
  70. package/.speccrew/skills/speccrew-test-manager-orchestration/SKILL.md +6 -94
  71. package/.speccrew/skills/speccrew-test-reporter/SKILL.md +2 -102
  72. package/.speccrew/skills/speccrew-test-runner/SKILL.md +3 -121
  73. package/package.json +1 -1
  74. package/workspace-template/docs/rules/agentflow-spec.md +56 -8
@@ -49,6 +49,173 @@ Phase 6: Delivery Summary
49
49
  └── Summary → User confirmation → Finalize
50
50
  ```
51
51
 
52
+ ## EXECUTION PROTOCOL
53
+
54
+ **Agent MUST follow this protocol when starting any skill execution:**
55
+
56
+ 1. **Load XML First**: Before ANY other action, locate and read the skill's SKILL.xml:
57
+ - Skill directory: find the skill folder under the IDE skills directory (e.g., `.qoder/skills/{skill-name}/` or `.speccrew/skills/{skill-name}/`)
58
+ - Read `SKILL.xml` from that directory immediately
59
+ - Do NOT explore workspace structure, check files, or run commands before loading XML
60
+ - If SKILL.xml read fails, report error and ABORT — do NOT attempt to proceed without it
61
+ 2. **Announce Workflow**: Log the workflow phases/steps overview from XML structure
62
+ 3. **Execute Blocks Sequentially**: Follow SKILL.xml block order strictly — do NOT improvise or skip blocks
63
+ 4. **Announce Every Block**: Before executing EVERY block, announce using `[Block ID]` format (see Block Execution Announcement Protocol below)
64
+ 5. **Only Pause at HARD STOP**: Only wait for user confirmation at explicitly defined checkpoints (P3.5 Checkpoint A: Test Case Coverage, P4.6 Checkpoint B: Code Review, P6.5 Joint Confirmation)
65
+
66
+ ### ACTION EXECUTION RULES
67
+
68
+ When executing XML workflow blocks, map actions to IDE tools as follows:
69
+ - `action="run-skill"` → Use **Skill tool** (pass skill name only, do NOT browse for files)
70
+ - `action="dispatch-to-worker"` → Use **Agent tool** (create new `speccrew-task-worker` agent session — NOT Skill tool, NOT direct execution)
71
+ - `action="run-script"` → Use **Bash/Terminal tool**
72
+ - `action="read-file"` → Use **Read tool**
73
+ - `action="write-file"` → Use **Write/Edit tool**
74
+ - `action="log"` → **Output** directly to conversation
75
+ - `action="confirm"` → **Output + Wait** for user response
76
+
77
+ **FORBIDDEN**: Do NOT manually search directories for SKILL.md files. Do NOT execute worker tasks yourself — always delegate via Agent tool.
78
+
79
+ **VIOLATION**: Skipping XML loading, improvising steps, or proceeding without step announcements = workflow ABORT.
80
+
81
+ ## MANDATORY: Block Execution Announcement Protocol
82
+
83
+ Before executing EVERY block in the orchestration workflow, you MUST announce it in this format:
84
+
85
+ ```
86
+ 🏷️ Block [{ID}] (type={type}, action={action}) — {desc}
87
+ ```
88
+
89
+ **This is NOT optional.** If you dispatch Workers without announcing each Phase block first, you are violating the execution protocol.
90
+
91
+ **Correct example:**
92
+ ```
93
+ 🏷️ Block [P3] (type=task, action=dispatch-to-worker) — Phase 3: Test Case Design
94
+ 🔧 Tool: Agent tool → create speccrew-task-worker
95
+ ✅ Result: test-cases.md generated
96
+
97
+ 🏷️ Block [P4] (type=task, action=dispatch-to-worker) — Phase 4: Test Code Generation
98
+ 🔧 Tool: Agent tool → create speccrew-task-worker
99
+ ✅ Result: test code + test-code-plan.md generated
100
+
101
+ 🏷️ Block [P5-B1] (type=task, action=dispatch-to-worker) — Phase 5 Stage 1: Test Runner Dispatch
102
+ 🔧 Tool: Agent tool → create speccrew-task-worker (batch)
103
+ ✅ Result: 4 workers dispatched
104
+
105
+ 🏷️ Block [P5-B2] (type=task, action=dispatch-to-worker) — Phase 5 Stage 2: Test Reporter Dispatch
106
+ 🔧 Tool: Agent tool → create speccrew-task-worker
107
+ ✅ Result: test-report.md + bug reports generated
108
+ ```
109
+
110
+ **Incorrect example (❌ FORBIDDEN):**
111
+ ```
112
+ Now let me dispatch Phase 3...
113
+ Phase 3 done. Moving to Phase 4...
114
+ ```
115
+
116
+ **Rules:**
117
+ - Announce BEFORE execution begins, not after
118
+ - Use exact block IDs from workflow XML (P0, P0.5, P1, P2, P3, P3.5, P4, P4.4, P4.6, P5, P5-B1, P5-B2, P6, etc.)
119
+ - For gateway blocks, announce which branch is taken
120
+ - For rule blocks, confirm the rule is acknowledged
121
+
122
+ # 🛑 CRITICAL: dispatch-to-worker Protocol
123
+
124
+ ### Definition
125
+ When `action="dispatch-to-worker"` appears in the orchestration workflow:
126
+
127
+ **You (Test Manager Agent) MUST:**
128
+ 1. Use **Agent tool** to create a new sub-Agent
129
+ 2. Specify sub-Agent role as **speccrew-task-worker**
130
+ 3. Pass Skill name and all context parameters in the dispatch prompt
131
+ 4. **Wait for Worker completion** before proceeding to the next block
132
+
133
+ **You (Test Manager Agent) MUST NOT:**
134
+ - ❌ Use Skill tool to directly invoke Phase Skill (e.g., speccrew-test-case-design)
135
+ - ❌ Run scripts yourself (including update-progress.js)
136
+ - ❌ Read/write test artifacts yourself (e.g., test-cases.md, test code, test-report.md, bug reports)
137
+ - ❌ Interpret "dispatch" as "execute yourself"
138
+
139
+ ### Correct vs Incorrect Examples
140
+
141
+ **❌ INCORRECT — Agent executes itself:**
142
+ ```
143
+ TM reads Feature Specs → TM generates test-cases.md → TM runs update-progress.js
144
+ ```
145
+
146
+ **✅ CORRECT — Agent dispatches to Worker:**
147
+ ```
148
+ TM uses Agent tool to create speccrew-task-worker sub-Agent
149
+ → Passes: skill=speccrew-test-case-design, context={...}
150
+ → Worker loads Skill and executes all steps
151
+ → Worker returns results to TM
152
+ TM continues to next orchestration block
153
+ ```
154
+
155
+ ### Scope: ALL Dispatch Phases
156
+
157
+ | Phase | Skill | dispatch? |
158
+ |-------|-------|----------|
159
+ | Phase 3 | speccrew-test-case-design | ✅ dispatch-to-worker (when 2+ platforms) |
160
+ | Phase 4 | speccrew-test-code-gen | ✅ dispatch-to-worker (when 2+ platforms) |
161
+ | Phase 5 Stage 1 | speccrew-test-runner | ✅ dispatch-to-worker (when 2+ platforms) |
162
+ | Phase 5 Stage 2 | speccrew-test-reporter | ✅ dispatch-to-worker (when 2+ platforms) |
163
+
164
+ ### MANDATORY: Worker Dispatch Prompt Format (Harness Principle 22)
165
+
166
+ When dispatching Workers via Agent tool, the prompt MUST follow this EXACT format:
167
+
168
+ ```
169
+ Execute skill: {skill_path}
170
+
171
+ Context:
172
+ feature_spec_path: {value}
173
+ platform_id: {value}
174
+ ... (data parameters only)
175
+
176
+ IMPORTANT: Follow the skill's SKILL.xml as the authoritative execution plan. Do NOT execute based on this prompt.
177
+ ```
178
+
179
+ **FORBIDDEN in dispatch prompt:**
180
+ - ❌ "执行要求" or "Execution Requirements" section
181
+ - ❌ Step-by-step instructions (e.g., "读取Feature Spec", "生成测试用例")
182
+ - ❌ Output file paths as instructions (e.g., "生成...文件")
183
+ - ❌ "请执行...并返回完成状态" or any execution directive
184
+ - ❌ Any text that tells Worker WHAT to do (the XML workflow defines this)
185
+
186
+ **ALLOWED in dispatch prompt:**
187
+ - ✅ Skill path reference
188
+ - ✅ Data parameters (paths, IDs, names, flags)
189
+ - ✅ Reminder to follow XML workflow
190
+
191
+ **Rationale:** Worker Agents MUST read and execute SKILL.xml block-by-block. Dispatch prompts containing execution instructions cause Workers to bypass the XML workflow, leading to inconsistent behavior.
192
+
193
+ ### ⚠️ Parallel Worker Dispatch Protocol (MANDATORY)
194
+
195
+ When dispatching multiple workers in Phase 3/4/5 batch mode:
196
+
197
+ 1. **COLLECT FIRST**: Iterate through ALL platform combinations BEFORE creating any Worker
198
+ 2. **BATCH CREATE**: Create ALL Worker tasks in a **SINGLE message** using **MULTIPLE Agent tool calls in parallel**
199
+ 3. **NO SEQUENTIAL WAIT**: Do NOT wait for any Worker to complete before creating the next one
200
+ 4. **ONE WORKER PER ITEM**: Each platform = exactly ONE separate Worker with its own context
201
+
202
+ **CORRECT execution pattern:**
203
+ ```
204
+ Dispatch items: [web-vue, mobile-react, backend-node]
205
+
206
+ Turn 1: Agent(web-vue) + Agent(mobile-react) + Agent(backend-node) ← ALL in ONE turn
207
+
208
+ Turn 2-N: Monitor and collect results as Workers complete
209
+ ```
210
+
211
+ **INCORRECT execution pattern (FORBIDDEN):**
212
+ ```
213
+ Turn 1: Create Worker(web-vue) → wait for completion
214
+ Turn 2: Create Worker(mobile-react) → wait for completion
215
+ Turn 3: Create Worker(backend-node) → wait for completion
216
+ ...
217
+ ```
218
+
52
219
  ---
53
220
 
54
221
  ## ORCHESTRATOR Rules
@@ -1,161 +1,18 @@
1
1
  ---
2
2
  name: speccrew-agentflow-manager
3
- version: 1.0.0
4
3
  description: AgentFlow definition management - create, validate, and refine AgentFlow XML files
5
4
  tools: Read, Write, Task, Bash
6
5
  ---
7
6
 
8
- > **⚠️ MANDATORY EXECUTION PROTOCOL — READ BEFORE EXECUTING ANY BLOCK**
9
- >
10
- > **Step 1**: Load XML workflow specification: `${workspace_path}/docs/rules/agentflow-spec.md` — this defines all block types and action-to-tool mappings
11
- >
12
- > **Step 2**: Execute this SKILL.md's XML workflow **block by block in document order**. For EVERY block, you MUST follow this 3-step cycle:
13
- >
14
- > ```
15
- > 🏷️ Block [ID] (action=[action]) — [desc]
16
- > 🔧 Tool: [which IDE tool to call]
17
- > ✅ Result: [output or status]
18
- > ```
19
- >
20
- > Action-to-tool mapping:
21
- > - `action="run-script"` → Execute via **Terminal tool** (pass the `<field name="command">` value EXACTLY)
22
- > - `action="run-skill"` → Invoke via **Skill tool** (pass the `<field name="skill">` value EXACTLY)
23
- > - `action="read-file"` → Read via **Read tool**
24
- > - `action="create-file"` → Create via **Write tool** (create_file)
25
- > - `action="edit-file"` → Edit via **Edit tool** (search_replace)
26
- > - `action="analyze"` → Perform analysis directly
27
- > - `action="generate"` → Generate content directly
28
- > - `action="report"` → Format and output report
29
- >
30
- > **Step 3**: Execute ALL blocks sequentially without pausing (only stop at explicit `<event action="confirm">` blocks)
31
- >
32
- > **FORBIDDEN**:
33
- > - Do NOT skip the block announcement format above — every block must be announced before execution
34
- > - Do NOT run terminal commands as substitute for Skill tool calls
35
- > - Do NOT skip blocks or improvise your own commands
7
+ # Trigger Scenarios
36
8
 
37
- # AgentFlow Manager
38
-
39
- Manage AgentFlow XML workflow definitions with three operation modes: **create**, **validate**, and **refine**.
40
-
41
- ## Operation Modes
42
-
43
- | Mode | Description | Required Parameters |
44
- |------|-------------|---------------------|
45
- | `create` | Create new AgentFlow from natural language SOP | `description`, `parameters`, `skill_dir` |
46
- | `validate` | Validate existing .agentflow.xml file | `target_file` |
47
- | `refine` | Auto-fix validation errors in existing file | `target_file` |
48
-
49
- ## Invocation Method
50
-
51
- **CRITICAL**: This skill is a **utility skill** — it MUST be loaded directly via Skill tool.
52
-
53
- ```xml
54
- <block type="task" action="run-skill" desc="Invoke AgentFlow manager">
55
- <field name="skill">speccrew-agentflow-manager</field>
56
- <field name="mode">create</field>
57
- <field name="description">Analyze source code and generate documentation</field>
58
- <field name="parameters">["source_path", "output_dir"]</field>
59
- <field name="skill_dir">/path/to/new-skill</field>
60
- <field name="workspace_path">/path/to/workspace</field>
61
- </block>
62
- ```
63
-
64
- ## Input Parameters
65
-
66
- | Parameter | Type | Required | Description |
67
- |-----------|------|----------|-------------|
68
- | `mode` | string | Yes | Operation mode: `create`, `validate`, or `refine` |
69
- | `description` | string | (create) | Natural language SOP description |
70
- | `parameters` | array | (create) | Input parameter names (JSON array) |
71
- | `target_file` | string | (validate/refine) | Path to .agentflow.xml file to validate/refine |
72
- | `skill_dir` | string | (create) | Target skill directory path for new AgentFlow |
73
- | `workspace_path` | string | Yes | Current workspace path |
74
-
75
- ## Output
76
-
77
- - **create mode**: Generated `SKILL.xml` and `SKILL.md` skeleton
78
- - **validate mode**: Validation report with errors and warnings
79
- - **refine mode**: Fixed file path and fix summary
80
-
81
- ---
9
+ - User requests creation of a new AgentFlow XML from natural language SOP
10
+ - Existing AgentFlow XML file needs validation or refinement
11
+ - AgentFlow specification compliance check required
82
12
 
83
13
  ## AgentFlow Definition
84
14
 
85
15
  <!-- @agentflow: SKILL.xml -->
86
16
 
87
- ---
88
-
89
- ## Appendix: Reference
90
-
91
- ### Block Type Quick Reference
92
-
93
- | Block Type | Purpose | Required Attributes |
94
- |------------|---------|---------------------|
95
- | `input` | Define workflow inputs | Must be first block |
96
- | `output` | Define workflow outputs | Must be last block |
97
- | `task` | Execute an action | `action` attribute required |
98
- | `gateway` | Conditional branching | `mode` attribute required |
99
- | `loop` | Iterate over collection | `over`, `as` attributes required |
100
- | `checkpoint` | Persist progress | `name` attribute required |
101
- | `rule` | Declare constraints | `level` attribute required |
102
- | `event` | Logging/confirmation | `action` attribute required |
103
- | `error-handler` | Error handling | `try`, `catch` sub-elements |
104
-
105
- ### Action Types
106
-
107
- | Action | IDE Tool | Usage |
108
- |--------|----------|-------|
109
- | `run-skill` | Skill tool | Invoke another skill |
110
- | `run-script` | Terminal tool | Execute command/script |
111
- | `read-file` | Read tool | Read file content |
112
- | `create-file` | Write tool | Create new file |
113
- | `edit-file` | Edit tool | Modify existing file |
114
- | `analyze` | Direct execution | Perform analysis |
115
- | `generate` | Direct execution | Generate content |
116
- | `report` | Direct execution | Format and output report |
117
- | `dispatch-to-worker` | Task tool | Create task for worker |
118
-
119
- ### Variable Reference Syntax
120
-
121
- ```xml
122
- <!-- Simple variable -->
123
- <field name="path" value="${skill_dir}/SKILL.xml"/>
124
-
125
- <!-- Object property -->
126
- <field name="count" value="${validation_result.errors.length}"/>
127
-
128
- <!-- Array index -->
129
- <field name="first" value="${parameters[0]}"/>
130
-
131
- <!-- In condition -->
132
- <case condition="${mode} == 'create'" next="B1"/>
133
- ```
134
-
135
- ### Checkpoint Verification
136
-
137
- ```xml
138
- <block type="checkpoint" id="CP1" name="workflow_created" desc="Verify file was created">
139
- <field name="file" value="${skill_dir}/SKILL.xml"/>
140
- <field name="verify" value="file_exists(${skill_dir}/SKILL.xml)"/>
141
- </block>
142
- ```
143
-
144
- ---
145
-
146
- ## Checklist
147
-
148
- - [ ] XML declaration present: `<?xml version="1.0" encoding="UTF-8"?>`
149
- - [ ] `<workflow>` root element with id, status, version attributes
150
- - [ ] `<block type="input">` as first block with all required parameters
151
- - [ ] `<block type="output">` as last block with result definitions
152
- - [ ] All block IDs are unique (B1, B2, G1, etc.)
153
- - [ ] All `next` references point to valid block IDs
154
- - [ ] All variable references use `${}` syntax
155
- - [ ] All required fields have `required="true"` attribute
156
- - [ ] Gateway conditions are valid and cover all cases
157
- - [ ] Checkpoint verification conditions are valid
158
-
159
- > **MANDATORY**: All generated AgentFlow XML must strictly comply with the specification in `${workspace_path}/docs/rules/agentflow-spec.md`.
160
-
161
- <!-- @agentflow: SKILL.xml -->
17
+ > **REQUIRED**: Before executing this workflow, read the XML workflow specification: speccrew-workspace/docs/rules/agentflow-spec.md
18
+ > Then read and execute the XML workflow in SKILL.xml block-by-block as the authoritative execution plan.
@@ -10,66 +10,9 @@ tools: Read, Bash, Glob
10
10
  - Deploy Agent needs to verify the application compiles successfully
11
11
  - CI/CD pipeline requires a build step verification
12
12
 
13
- # Input Parameters
14
-
15
- | Parameter | Required | Type | Description |
16
- |-----------|----------|------|-------------|
17
- | `platform_id` | Yes | string | Platform identifier (e.g., backend-spring, frontend-react) |
18
- | `build_cmd` | Yes | string | Build command from conventions-data/build (e.g., `mvn package -DskipTests`) |
19
- | `project_root` | Yes | string | Absolute path to the project root directory |
20
- | `iteration_path` | Yes | string | Current iteration directory path |
21
-
22
13
  ## AgentFlow Definition
23
14
 
24
15
  <!-- @agentflow: SKILL.xml -->
25
16
 
26
- > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `speccrew-workspace/docs/rules/agentflow-spec.md`
27
-
28
- # Task Completion Report
29
-
30
- ## Success Report
31
-
32
- ```
33
- ## Task Completion Report
34
- - **Status**: SUCCESS
35
- - **Platform**: {platform_id}
36
- - **Project Root**: {project_root}
37
- - **Build Duration**: {duration_seconds}s
38
- - **Build Command**: {build_cmd}
39
- - **Artifact Paths**:
40
- - {artifact_path_1}
41
- - {artifact_path_2}
42
- - ...
43
- - **Build Log** (last 20 lines):
44
- ```
45
- {last_20_lines_of_build_output}
46
- ```
47
- - **Summary**: Build completed successfully with {artifact_count} artifacts generated
48
- ```
49
-
50
- ## Failure Report
51
-
52
- ```
53
- ## Task Completion Report
54
- - **Status**: FAILED
55
- - **Platform**: {platform_id}
56
- - **Project Root**: {project_root}
57
- - **Build Command**: {build_cmd}
58
- - **Error Category**: {DEPENDENCY_MISSING | BUILD_FAILURE | VALIDATION_ERROR}
59
- - **Error**: {detailed error description}
60
- - **Build Log** (last 30 lines):
61
- ```
62
- {last_30_lines_of_build_output}
63
- ```
64
- - **Recovery Hint**: {suggestion for resolving the issue}
65
- ```
66
-
67
- # Key Rules
68
-
69
- | Rule | Description |
70
- |------|-------------|
71
- | **No Hard-coded Commands** | All build commands come from input parameters |
72
- | **Tool Detection** | Automatically detect and verify build tool availability |
73
- | **Artifact Verification** | Always verify expected artifacts exist after build |
74
- | **Duration Tracking** | Record and report build duration |
75
- | **Log Capture** | Capture and report relevant build output |
17
+ > **REQUIRED**: Before executing this workflow, read the XML workflow specification: speccrew-workspace/docs/rules/agentflow-spec.md
18
+ > Then read and execute the XML workflow in SKILL.xml block-by-block as the authoritative execution plan.
@@ -10,71 +10,9 @@ tools: Read, Bash, Glob
10
10
  - Deploy Agent needs to apply pending schema changes
11
11
  - CI/CD pipeline requires database migration verification
12
12
 
13
- # Input Parameters
14
-
15
- | Parameter | Required | Type | Description |
16
- |-----------|----------|------|-------------|
17
- | `platform_id` | Yes | string | Platform identifier |
18
- | `migration_cmd` | Yes | string | Migration execution command from conventions-data (e.g., `mvn flyway:migrate`) |
19
- | `validation_cmd` | No | string | Migration validation command (e.g., `mvn flyway:validate`) |
20
- | `migration_scripts` | Yes | string | JSON array of migration scripts: `[{"name":"V001__create_user.sql","path":"...","type":"CREATE TABLE"}]` |
21
- | `project_root` | Yes | string | Absolute path to the project root directory |
22
- | `iteration_path` | Yes | string | Current iteration directory path |
23
-
24
13
  ## AgentFlow Definition
25
14
 
26
15
  <!-- @agentflow: SKILL.xml -->
27
16
 
28
- > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `speccrew-workspace/docs/rules/agentflow-spec.md`
29
-
30
- # Task Completion Report
31
-
32
- ## Success Report
33
-
34
- ```
35
- ## Task Completion Report
36
- - **Status**: SUCCESS
37
- - **Platform**: {platform_id}
38
- - **Project Root**: {project_root}
39
- - **Migration Command**: {migration_cmd}
40
- - **Scripts Executed**: {count}
41
- - {script_1_name}: {type} ({tables_affected})
42
- - {script_2_name}: {type} ({tables_affected})
43
- - ...
44
- - **Tables Affected**:
45
- - Created: {table_list}
46
- - Modified: {table_list}
47
- - Dropped: {table_list}
48
- - **Validation Status**: {PASSED | SKIPPED}
49
- - **Execution Duration**: {duration_seconds}s
50
- - **Summary**: Database migration completed successfully
51
- ```
52
-
53
- ## Failure Report
54
-
55
- ```
56
- ## Task Completion Report
57
- - **Status**: FAILED
58
- - **Platform**: {platform_id}
59
- - **Project Root**: {project_root}
60
- - **Migration Command**: {migration_cmd}
61
- - **Error Category**: {DEPENDENCY_MISSING | BUILD_FAILURE | VALIDATION_ERROR}
62
- - **Error**: {detailed error description}
63
- - **Scripts Attempted**: {count}
64
- - **Failed Script**: {script_name} (if applicable)
65
- - **Migration Output** (last 30 lines):
66
- ```
67
- {last_30_lines_of_migration_output}
68
- ```
69
- - **Recovery Hint**: {suggestion for resolving the issue}
70
- ```
71
-
72
- # Key Rules
73
-
74
- | Rule | Description |
75
- |------|-------------|
76
- | **Script Verification** | Always verify migration script files exist before execution |
77
- | **Optional Validation** | Validation step is optional based on validation_cmd presence |
78
- | **JSON Parsing** | Parse migration_scripts JSON to extract script metadata |
79
- | **Table Tracking** | Report tables affected by each migration script |
80
- | **Duration Tracking** | Record and report migration execution duration |
17
+ > **REQUIRED**: Before executing this workflow, read the XML workflow specification: speccrew-workspace/docs/rules/agentflow-spec.md
18
+ > Then read and execute the XML workflow in SKILL.xml block-by-block as the authoritative execution plan.
@@ -10,82 +10,9 @@ tools: Read, Bash, Glob
10
10
  - Deploy Agent needs to validate deployment success
11
11
  - Post-deployment verification required
12
12
 
13
- # Input Parameters
14
-
15
- | Parameter | Required | Type | Description |
16
- |-----------|----------|------|-------------|
17
- | `platform_id` | Yes | string | Platform identifier |
18
- | `base_url` | No | string | Application base URL (e.g., `http://localhost:8080`). Required for `http` mode. |
19
- | `api_contract_paths` | No | string | Comma-separated paths to API Contract documents. Required for `http` mode. |
20
- | `iteration_path` | Yes | string | Current iteration directory path |
21
- | `test_mode` | No | string | Test method: `http` (default, for server apps), `process` (for client apps - verify process runs and exits cleanly), `log` (verify expected log output). Default: `http` |
22
- | `expected_exit_code` | No | string | Expected process exit code for `process` mode (default: `0`) |
23
- | `log_file` | No | string | Log file path for `log` mode verification |
24
- | `expected_log_patterns` | No | string | Comma-separated regex patterns expected in log for `log` mode (e.g., `"DB initialized,UI loaded"`) |
25
- | `process_name` | No | string | Process name or pattern to check (for `process` mode, e.g., `myapp.exe` or `MyApp`) |
26
-
27
13
  ## AgentFlow Definition
28
14
 
29
15
  <!-- @agentflow: SKILL.xml -->
30
16
 
31
- > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `speccrew-workspace/docs/rules/agentflow-spec.md`
32
-
33
- # Task Completion Report
34
-
35
- ## Success Report
36
-
37
- ```
38
- ## Task Completion Report
39
- - **Status**: SUCCESS
40
- - **Platform**: {platform_id}
41
- - **Base URL**: {base_url}
42
- - **Endpoints Tested**: {total_count}
43
- - **Pass Rate**: {pass_rate}%
44
- - **Passed**: {passed_count}
45
- - **Failed**: {failed_count}
46
- - **Test Results**:
47
-
48
- | Endpoint | Method | Expected | Actual | Status |
49
- |----------|--------|----------|--------|--------|
50
- | {endpoint_1} | {method} | {expected} | {actual} | PASS |
51
- | {endpoint_2} | {method} | {expected} | {actual} | PASS |
52
- | {endpoint_3} | {method} | {expected} | {actual} | FAIL |
53
-
54
- - **Summary**: Smoke test passed with {pass_rate}% success rate
55
- ```
56
-
57
- ## Failure Report
58
-
59
- ```
60
- ## Task Completion Report
61
- - **Status**: FAILED
62
- - **Platform**: {platform_id}
63
- - **Base URL**: {base_url}
64
- - **Endpoints Tested**: {total_count}
65
- - **Pass Rate**: {pass_rate}%
66
- - **Failed Endpoints**:
67
- - {endpoint_1}: expected {expected}, got {actual}
68
- - {endpoint_2}: expected {expected}, got {actual}
69
- - **Error Category**: {VALIDATION_ERROR | RUNTIME_ERROR}
70
- - **Error**: {detailed error description}
71
- - **Recovery Hint**: Verify application is running and API contracts are up to date
72
- ```
73
-
74
- # Important Notes
75
-
76
- - **Smoke test is NOT integration testing** — it only verifies service availability and endpoint reachability
77
- - **Pass rate threshold** — If pass rate < 80% → FAILED
78
- - **Critical GET endpoints** — If any critical GET endpoint returns 404 → FAILED
79
- - **No business logic testing** — Smoke test does not validate request/response bodies or business rules
80
- - **Lightweight verification** — Designed for quick post-deployment validation
81
-
82
- # Key Rules
83
-
84
- | Rule | Description |
85
- |------|-------------|
86
- | **HTTP Status Only** | Only verify HTTP status codes, not response bodies |
87
- | **GET Endpoints** | Must return 200 or redirect (301/302) |
88
- | **Write Endpoints** | Any status except 404 is acceptable |
89
- | **80% Pass Rate** | Overall pass rate must be >= 80% |
90
- | **Critical GET 404** | Any critical GET endpoint returning 404 causes failure |
91
- | **Contract-Based** | Extract endpoints from API Contract documents |
17
+ > **REQUIRED**: Before executing this workflow, read the XML workflow specification: speccrew-workspace/docs/rules/agentflow-spec.md
18
+ > Then read and execute the XML workflow in SKILL.xml block-by-block as the authoritative execution plan.
@@ -10,77 +10,9 @@ tools: Read, Bash
10
10
  - Deploy Agent needs to verify application startup
11
11
  - Smoke test requires a running application instance
12
12
 
13
- # Input Parameters
14
-
15
- | Parameter | Required | Type | Description |
16
- |-----------|----------|------|-------------|
17
- | `platform_id` | Yes | string | Platform identifier |
18
- | `start_cmd` | Yes | string | Application start command from conventions-data (e.g., `java -jar target/app.jar`) |
19
- | `health_url` | No | string | Health check URL (e.g., `http://localhost:8080/actuator/health`). Required for `http` mode. |
20
- | `health_timeout` | No | string | Health check timeout, default 60s |
21
- | `project_root` | Yes | string | Absolute path to the project root directory |
22
- | `iteration_path` | Yes | string | Current iteration directory path |
23
- | `verification_mode` | No | string | Verification method: `http` (default, for server apps), `process` (for client/desktop apps), `log` (for apps with log output). Default: `http` |
24
- | `process_name` | No | string | Process name or pattern to check (for `process` mode, e.g., `myapp.exe` or `MyApp`) |
25
- | `log_file` | No | string | Path to application log file (for `log` mode) |
26
- | `success_pattern` | No | string | Regex pattern in log that indicates successful startup (for `log` mode, e.g., `"Application started"` or `"Ready"`) |
27
-
28
13
  ## AgentFlow Definition
29
14
 
30
15
  <!-- @agentflow: SKILL.xml -->
31
16
 
32
- > **REQUIRED**: Before executing this workflow, read the XML workflow specification: `speccrew-workspace/docs/rules/agentflow-spec.md`
33
-
34
- # Task Completion Report
35
-
36
- ## Success Report
37
-
38
- ```
39
- ## Task Completion Report
40
- - **Status**: SUCCESS
41
- - **Platform**: {platform_id}
42
- - **Project Root**: {project_root}
43
- - **Service URL**: {service_url}
44
- - **Health URL**: {health_url}
45
- - **Health Status**: UP
46
- - **Startup Duration**: {duration_seconds}s
47
- - **Process ID (PID)**: {pid}
48
- - **Start Command**: {start_cmd}
49
- - **Summary**: Application started successfully and passed health check
50
- ```
51
-
52
- ## Failure Report
53
-
54
- ```
55
- ## Task Completion Report
56
- - **Status**: FAILED
57
- - **Platform**: {platform_id}
58
- - **Project Root**: {project_root}
59
- - **Start Command**: {start_cmd}
60
- - **Health URL**: {health_url}
61
- - **Error Category**: {DEPENDENCY_MISSING | RUNTIME_ERROR}
62
- - **Error**: {detailed error description}
63
- - **Startup Log** (last 30 lines):
64
- ```
65
- {last_30_lines_of_application_log}
66
- ```
67
- - **Recovery Hint**: {suggestion for resolving the issue}
68
- ```
69
-
70
- # Important Notes
71
-
72
- - **Application runs in BACKGROUND** — it must remain running for subsequent smoke test
73
- - **PID must be reported** — the Deploy Agent uses this for cleanup later
74
- - **Health check uses curl** — cross-platform availability may vary; ensure curl is available
75
- - **Default timeout is 60s** — adjust health_timeout parameter for slower-starting applications
76
- - **Process monitoring** — verify the application process is still running after health check
77
-
78
- # Key Rules
79
-
80
- | Rule | Description |
81
- |------|-------------|
82
- | **Background Execution** | Application must start in background and continue running |
83
- | **PID Recording** | Always record and report the process PID |
84
- | **Health Polling** | Poll health endpoint every 5 seconds until success or timeout |
85
- | **Timeout Configurable** | health_timeout parameter controls maximum wait time |
86
- | **Process Verification** | Verify application process is still running after health check |
17
+ > **REQUIRED**: Before executing this workflow, read the XML workflow specification: speccrew-workspace/docs/rules/agentflow-spec.md
18
+ > Then read and execute the XML workflow in SKILL.xml block-by-block as the authoritative execution plan.