speccrew 0.6.44 → 0.6.45

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.
@@ -409,6 +409,17 @@ 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
+
412
423
  ## CONTINUOUS EXECUTION RULES
413
424
 
414
425
  This agent MUST execute tasks continuously without unnecessary interruptions.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speccrew",
3
- "version": "0.6.44",
3
+ "version": "0.6.45",
4
4
  "description": "Spec-Driven Development toolkit for AI-powered IDEs",
5
5
  "author": "charlesmu99",
6
6
  "repository": {
@@ -329,6 +329,27 @@ Use `${variable_name}` syntax throughout block attributes and content.
329
329
  </block>
330
330
  ```
331
331
 
332
+ ## Action to IDE Tool Mapping
333
+
334
+ 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:
335
+
336
+ | Action | IDE Tool to Use | How to Invoke |
337
+ |--------|----------------|---------------|
338
+ | `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. |
339
+ | `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. |
340
+ | `run-script` | **Bash / Terminal tool** | Execute the command from `<field name="command">` using the terminal tool. Use PowerShell syntax on Windows, Bash on Unix. |
341
+ | `read-file` | **Read tool** | Read the file at the path specified in `<field name="path">`. |
342
+ | `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. |
343
+ | `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. |
344
+ | `generate` | **Direct execution** | Generate the content described in the block. Use templates when specified, write output to the target path. |
345
+
346
+ ### Critical Rules
347
+
348
+ 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/).
349
+ 2. **`dispatch-to-worker` MUST use the Task tool** — NEVER execute worker tasks yourself. Create a Task and let the worker agent handle it.
350
+ 3. **`<loop parallel="true">` with `dispatch-to-worker`** — Create ALL worker tasks in ONE batch call, not sequentially. This enables true parallel execution.
351
+ 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.
352
+
332
353
  ## Execution Rules
333
354
 
334
355
  1. **NEVER skip a block** — execute every block in document order