speccrew 0.6.45 → 0.6.46

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.
@@ -420,6 +420,27 @@ When executing XML workflow blocks, map actions to IDE tools as follows:
420
420
 
421
421
  **FORBIDDEN**: Do NOT manually search directories for SKILL.md files. Do NOT execute worker tasks yourself — always delegate via Task tool.
422
422
 
423
+ ## DISPATCH SKILL EXECUTION PROTOCOL
424
+
425
+ When you load a dispatch skill (e.g., `speccrew-knowledge-bizs-dispatch-xml` or `speccrew-knowledge-techs-dispatch-xml`) via the Skill tool:
426
+
427
+ 1. **You ARE the executor** — do NOT delegate the entire workflow to someone else
428
+ 2. **Read the XML workflow** in the loaded SKILL.md from top to bottom
429
+ 3. **Execute each block** according to its `action` attribute:
430
+ - `run-script` → Terminal tool
431
+ - `run-skill` → Skill tool (do NOT browse directories for SKILL.md)
432
+ - `dispatch-to-worker` → Task tool (create Task for speccrew-task-worker)
433
+ 4. **For `<loop parallel="true">` with `dispatch-to-worker`**: create ALL worker Tasks in ONE batch
434
+ 5. **For `<event action="confirm">`**: present to user and wait
435
+ 6. **For `<checkpoint>`**: verify condition before proceeding to next stage
436
+ 7. **Execute ALL stages in sequence** — Stage 0 → 1a → 1b → 1c → 2 → 3 → 4 (or as defined)
437
+
438
+ **CRITICAL FORBIDDEN BEHAVIORS**:
439
+ - Do NOT run terminal commands as a substitute for calling a Skill via Skill tool
440
+ - Do NOT manually create JSON files when a Skill should generate them
441
+ - Do NOT execute analysis work that should be dispatched to a Worker via Task tool
442
+ - Do NOT stop between stages to ask the user for direction
443
+
423
444
  ## CONTINUOUS EXECUTION RULES
424
445
 
425
446
  This agent MUST execute tasks continuously without unnecessary interruptions.
@@ -4,6 +4,20 @@ description: Dispatch bizs knowledge base generation tasks with 5-stage pipeline
4
4
  tools: Read, Write, Task, Bash
5
5
  ---
6
6
 
7
+ > **⚠️ MANDATORY EXECUTION PROTOCOL — READ BEFORE EXECUTING ANY BLOCK**
8
+ >
9
+ > **Step 1**: Load XML workflow specification: `docs/rules/xml-workflow-spec.md` — this defines all block types and action-to-tool mappings
10
+ >
11
+ > **Step 2**: Execute this SKILL.md's XML workflow **block by block in document order**:
12
+ > - `action="run-script"` → Execute via **Terminal tool** (PowerShell/Bash)
13
+ > - `action="run-skill"` → Invoke via **Skill tool** (do NOT manually read SKILL.md files or browse directories)
14
+ > - `action="dispatch-to-worker"` → Create **Task** via **Task tool** for `speccrew-task-worker`
15
+ > - `action="confirm"` (event) → Present to user and wait for response
16
+ >
17
+ > **Step 3**: Execute ALL stages sequentially without pausing (only stop at explicit `<event action="confirm">` blocks)
18
+ >
19
+ > **FORBIDDEN**: Do NOT run terminal commands as substitute for Skill tool calls. Do NOT do Worker's job yourself. Do NOT skip blocks or improvise.
20
+
7
21
  # Bizs Knowledge Dispatch (XML Block Version)
8
22
 
9
23
  Orchestrate **bizs knowledge base generation** with a 5-stage pipeline using **XML Block system**: Feature Inventory → Feature Analysis + Graph Write → Module Summarize → UI Style Pattern Extract → System Summary.
@@ -4,6 +4,20 @@ description: Dispatch techs knowledge base generation tasks with 3-stage pipelin
4
4
  tools: Read, Write, Task, Bash
5
5
  ---
6
6
 
7
+ > **⚠️ MANDATORY EXECUTION PROTOCOL — READ BEFORE EXECUTING ANY BLOCK**
8
+ >
9
+ > **Step 1**: Load XML workflow specification: `docs/rules/xml-workflow-spec.md` — this defines all block types and action-to-tool mappings
10
+ >
11
+ > **Step 2**: Execute this SKILL.md's XML workflow **block by block in document order**:
12
+ > - `action="run-script"` → Execute via **Terminal tool** (PowerShell/Bash)
13
+ > - `action="run-skill"` → Invoke via **Skill tool** (do NOT manually read SKILL.md files or browse directories)
14
+ > - `action="dispatch-to-worker"` → Create **Task** via **Task tool** for `speccrew-task-worker`
15
+ > - `action="confirm"` (event) → Present to user and wait for response
16
+ >
17
+ > **Step 3**: Execute ALL stages sequentially without pausing (only stop at explicit `<event action="confirm">` blocks)
18
+ >
19
+ > **FORBIDDEN**: Do NOT run terminal commands as substitute for Skill tool calls. Do NOT do Worker's job yourself. Do NOT skip blocks or improvise.
20
+
7
21
  # Techs Knowledge Dispatch (XML Block Version)
8
22
 
9
23
  Orchestrate **techs knowledge base generation** with a 3-stage pipeline using **XML Block system**: Platform Detection → Tech Doc Generation → Root Index.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speccrew",
3
- "version": "0.6.45",
3
+ "version": "0.6.46",
4
4
  "description": "Spec-Driven Development toolkit for AI-powered IDEs",
5
5
  "author": "charlesmu99",
6
6
  "repository": {
@@ -329,6 +329,38 @@ Use `${variable_name}` syntax throughout block attributes and content.
329
329
  </block>
330
330
  ```
331
331
 
332
+ ## Dispatch Skill Execution Model
333
+
334
+ Dispatch skills (naming pattern: `*-dispatch-xml`) are **orchestration playbooks** loaded directly by Team Leader via the Skill tool. They contain the complete multi-stage workflow definition.
335
+
336
+ ### Execution Protocol
337
+
338
+ When Team Leader loads a dispatch skill via `action="run-skill"`:
339
+
340
+ 1. **Load**: Team Leader invokes the Skill tool with the dispatch skill name (e.g., `speccrew-knowledge-bizs-dispatch-xml`)
341
+ 2. **Parse**: Read and understand the complete XML workflow in the loaded SKILL.md
342
+ 3. **Execute block-by-block**: Walk through each Stage's blocks in document order, mapping each `action` attribute to the correct IDE tool:
343
+
344
+ | Block Action | What Team Leader MUST Do |
345
+ |---|---|
346
+ | `action="run-script"` | Execute the command via **Terminal tool** (PowerShell/Bash) |
347
+ | `action="run-skill"` | Invoke the skill via **Skill tool** — do NOT manually read SKILL.md files |
348
+ | `action="dispatch-to-worker"` | Create Task via **Task tool**, assign to `speccrew-task-worker` |
349
+ | `action="analyze"` | Perform analysis directly (read files, extract info) |
350
+ | `action="generate"` | Generate content directly (use templates, write output) |
351
+ | `action="confirm"` (event) | Present confirmation to user, wait for response |
352
+
353
+ 4. **Respect control flow**: Honor `<gateway>` branches, `<loop parallel="true">` concurrency, and `<checkpoint>` verification
354
+ 5. **Continuous execution**: Proceed from Stage N to Stage N+1 automatically — ONLY pause at explicit `<event action="confirm">` blocks
355
+
356
+ ### FORBIDDEN During Dispatch Execution
357
+
358
+ - **NEVER** execute commands manually when a block says `action="run-skill"` — use the Skill tool
359
+ - **NEVER** do a worker's job yourself when a block says `action="dispatch-to-worker"` — use the Task tool
360
+ - **NEVER** skip stages or blocks
361
+ - **NEVER** pause between stages to ask "Should I continue?"
362
+ - **NEVER** improvise your own approach — follow the XML blocks exactly
363
+
332
364
  ## Action to IDE Tool Mapping
333
365
 
334
366
  When executing `<block type="task">` blocks, the `action` attribute determines which **IDE tool** to invoke. Do NOT interpret actions freely — use the exact tool specified below: