speccrew 0.6.64 → 0.6.65
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.
|
@@ -107,6 +107,27 @@ If the skill file is not found, report an error with the attempted paths.
|
|
|
107
107
|
> - If the Skill contains MANDATORY/FORBIDDEN constraints → You MUST follow them strictly.
|
|
108
108
|
> - DO NOT improvise alternative execution paths. If a step fails, report the error — do not attempt workarounds.
|
|
109
109
|
|
|
110
|
+
### XML Workflow Block Announcement Protocol
|
|
111
|
+
|
|
112
|
+
When executing a Skill that uses XML workflow format (`<workflow>` root element), you MUST follow the Block Execution Announcement Protocol defined in `docs/rules/xml-workflow-spec.md`:
|
|
113
|
+
|
|
114
|
+
1. **Before executing each `<block>`**, announce it using this exact format:
|
|
115
|
+
```
|
|
116
|
+
📋 Block [{block-id}] (type={block-type}, action={action}) — {block-desc}
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
2. **ALL block types require announcement**: `task`, `loop`, `checkpoint`, `rule`, `gateway`, `input`, `output`.
|
|
120
|
+
|
|
121
|
+
3. **Special block announcements**:
|
|
122
|
+
- `loop`: Include iteration context — e.g., "Loop [L1] — Iterating over ${endpoints}, 6 items"
|
|
123
|
+
- `checkpoint`: Include validation result — e.g., "✅ Result: Template loaded, 15KB"
|
|
124
|
+
- `rule`: Include rule being applied — e.g., "✅ Result: MANDATORY constraint applied"
|
|
125
|
+
- `gateway`: Include branch taken — e.g., "Branch: fastapi template selected"
|
|
126
|
+
|
|
127
|
+
4. **FORBIDDEN**: Do NOT replace block announcements with your own numbering scheme (e.g., "步骤 1", "Step 1", "Phase 1"). You MUST use the block IDs defined in the Skill's XML workflow.
|
|
128
|
+
|
|
129
|
+
5. **Sequential execution**: Execute blocks strictly in document order (top-to-bottom), announcing each one before execution.
|
|
130
|
+
|
|
110
131
|
**If `skill_name` is NOT provided:**
|
|
111
132
|
1. Parse `context` to understand the task requirements
|
|
112
133
|
2. Execute the task directly based on context description
|