speccrew 0.6.44 → 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.
- package/.speccrew/agents/speccrew-team-leader-xml.md +32 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-dispatch-xml/SKILL.md +14 -0
- package/.speccrew/skills/speccrew-knowledge-techs-dispatch-xml/SKILL.md +14 -0
- package/package.json +1 -1
- package/workspace-template/docs/rules/xml-workflow-spec.md +53 -0
|
@@ -409,6 +409,38 @@ When user reports problems ("something went wrong", "error occurred", "not worki
|
|
|
409
409
|
- Do not handle business development requests (feature requirements, code modifications, bug fixes), should prompt user to talk directly to Qoder
|
|
410
410
|
- Do not delete or modify WORKFLOW-PROGRESS.json directly (read-only for status display)
|
|
411
411
|
|
|
412
|
+
## ACTION EXECUTION RULES
|
|
413
|
+
|
|
414
|
+
When executing XML workflow blocks, map actions to IDE tools as follows:
|
|
415
|
+
- `action="run-skill"` → Use **Skill tool** (pass skill name only, do NOT browse for files)
|
|
416
|
+
- `action="dispatch-to-worker"` → Use **Task tool** (create Task for worker agent)
|
|
417
|
+
- `action="run-script"` → Use **Bash/Terminal tool**
|
|
418
|
+
- `action="read-file"` → Use **Read tool**
|
|
419
|
+
- `action="write-file"` → Use **Write/Edit tool**
|
|
420
|
+
|
|
421
|
+
**FORBIDDEN**: Do NOT manually search directories for SKILL.md files. Do NOT execute worker tasks yourself — always delegate via Task tool.
|
|
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
|
+
|
|
412
444
|
## CONTINUOUS EXECUTION RULES
|
|
413
445
|
|
|
414
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
|
@@ -329,6 +329,59 @@ 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
|
+
|
|
364
|
+
## Action to IDE Tool Mapping
|
|
365
|
+
|
|
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:
|
|
367
|
+
|
|
368
|
+
| Action | IDE Tool to Use | How to Invoke |
|
|
369
|
+
|--------|----------------|---------------|
|
|
370
|
+
| `run-skill` | **Skill tool** | Call the IDE Skill tool with the skill name from `<field name="skill">`. Do NOT manually browse directories or read SKILL.md files — the Skill tool resolves paths automatically. |
|
|
371
|
+
| `dispatch-to-worker` | **Task tool** | Create a new Task via the IDE Task tool, assigning it to the worker agent specified in `<field name="agent">`. Pass all context fields as task parameters. For `<loop parallel="true">`, create ALL tasks in a single batch. |
|
|
372
|
+
| `run-script` | **Bash / Terminal tool** | Execute the command from `<field name="command">` using the terminal tool. Use PowerShell syntax on Windows, Bash on Unix. |
|
|
373
|
+
| `read-file` | **Read tool** | Read the file at the path specified in `<field name="path">`. |
|
|
374
|
+
| `write-file` | **Write / Edit tool** | Write content to the file at `<field name="path">`. For new files use create_file; for modifications use search_replace. |
|
|
375
|
+
| `analyze` | **Direct execution** | Perform the analysis described in the block's `desc` attribute. Read relevant source files, extract information, and store results in the specified output variables. |
|
|
376
|
+
| `generate` | **Direct execution** | Generate the content described in the block. Use templates when specified, write output to the target path. |
|
|
377
|
+
|
|
378
|
+
### Critical Rules
|
|
379
|
+
|
|
380
|
+
1. **`run-skill` MUST use the Skill tool** — NEVER manually search for or read SKILL.md files. The IDE Skill tool handles path resolution across different IDE directories (.qoder/, .cursor/, .claude/).
|
|
381
|
+
2. **`dispatch-to-worker` MUST use the Task tool** — NEVER execute worker tasks yourself. Create a Task and let the worker agent handle it.
|
|
382
|
+
3. **`<loop parallel="true">` with `dispatch-to-worker`** — Create ALL worker tasks in ONE batch call, not sequentially. This enables true parallel execution.
|
|
383
|
+
4. **Variable binding** — After a tool call completes, bind the result to the variable specified in `<field name="output" var="..."/>` for use in subsequent blocks.
|
|
384
|
+
|
|
332
385
|
## Execution Rules
|
|
333
386
|
|
|
334
387
|
1. **NEVER skip a block** — execute every block in document order
|