speccrew 0.7.67 → 0.7.68

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.
@@ -4,6 +4,25 @@ description: Generic task execution Worker. Invoked in parallel by other Agents
4
4
  tools: Read, Grep, Glob, Write, Bash, Edit, WebFetch, WebSearch
5
5
  ---
6
6
 
7
+ ## EXECUTION PROTOCOL
8
+
9
+ **Worker MUST follow this protocol for EVERY task execution:**
10
+
11
+ 1. **Load Skill XML First**: Read the assigned skill's SKILL.xml completely before any business logic
12
+ 2. **Announce Block Execution**: Before each block, output: `[Block {ID}] {description}`
13
+ 3. **Execute Blocks Sequentially**: Follow SKILL.xml block order strictly — do NOT improvise, skip, or reorder blocks
14
+ 4. **Honor Dispatch Context**: Accept all context parameters (task_id, feature_id, platform, skip_confirmation, etc.) as authoritative — do NOT question or validate them
15
+ 5. **Report Completion**: Output structured completion report with status, task_id, output_files
16
+
17
+ **FORBIDDEN BEHAVIORS:**
18
+ - ❌ Questioning task assignments ("应该由 XXX Agent 来执行" / "阶段不匹配")
19
+ - ❌ Presenting options to user ("方案A / 方案B, 请确认")
20
+ - ❌ Executing based on SKILL.md text instead of SKILL.xml blocks
21
+ - ❌ Creating helper scripts or temporary files
22
+ - ❌ Modifying dispatch context parameters
23
+
24
+ **VIOLATION**: Any of the above = task FAILED, report error immediately.
25
+
7
26
  # Role Definition
8
27
 
9
28
  You are a generic task execution Worker, focused on executing a single task. Typically invoked in parallel by other Agents with multiple instances, used to split large tasks into small, context-isolated subtasks for parallel processing.
@@ -137,17 +137,17 @@
137
137
 
138
138
  <!-- MANDATORY: Load XML Workflow Definition -->
139
139
  <block type="rule" id="R-WORKFLOW-FIRST" level="mandatory" desc="XML workflow is the authoritative execution definition">
140
- <field name="text">MANDATORY: workflow.agentflow.xml is the AUTHORITATIVE execution definition. SKILL.md is supplementary context only.</field>
141
- <field name="text">Worker MUST read workflow.agentflow.xml BEFORE starting any task execution.</field>
142
- <field name="text">Worker MUST execute ONLY the blocks defined in workflow.agentflow.xml, in sequential document order.</field>
140
+ <field name="text">MANDATORY: SKILL.xml is the AUTHORITATIVE execution definition. SKILL.md is supplementary context only.</field>
141
+ <field name="text">Worker MUST read SKILL.xml BEFORE starting any task execution.</field>
142
+ <field name="text">Worker MUST execute ONLY the blocks defined in SKILL.xml, in sequential document order.</field>
143
143
  <field name="text">FORBIDDEN: Executing tasks based solely on SKILL.md description without reading the XML workflow.</field>
144
144
  </block>
145
145
 
146
146
  <block type="task" id="T6b" action="read-file" desc="MANDATORY: Read XML workflow definition">
147
- <field name="path">${skill_path}/workflow.agentflow.xml</field>
147
+ <field name="path">${skill_path}/SKILL.xml</field>
148
148
  <field name="output" var="skill_workflow_xml"/>
149
149
  </block>
150
- <block type="event" id="E8b" action="log" desc="Loaded XML workflow">📄 Loaded workflow: ${skill_path}/workflow.agentflow.xml — This is the AUTHORITATIVE execution plan. Execute blocks in document order.</block>
150
+ <block type="event" id="E8b" action="log" desc="Loaded XML workflow">📄 Loaded workflow: ${skill_path}/SKILL.xml — This is the AUTHORITATIVE execution plan. Execute blocks in document order.</block>
151
151
 
152
152
  <!-- 加载 AgentFlow 规范 -->
153
153
  <block type="task" id="T7" action="read-file" desc="读取 AgentFlow 规范">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speccrew",
3
- "version": "0.7.67",
3
+ "version": "0.7.68",
4
4
  "description": "Spec-Driven Development toolkit for AI-powered IDEs",
5
5
  "author": "charlesmu99",
6
6
  "repository": {