speccrew 0.7.71 â 0.7.73
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-product-manager.md +4 -4
- package/.speccrew/agents/speccrew-system-designer.md +38 -1
- package/.speccrew/agents/speccrew-task-worker.md +19 -1
- package/.speccrew/agents/speccrew-team-leader.md +1 -1
- package/.speccrew/skills/speccrew-agentflow-manager/SKILL.md +1 -1
- package/.speccrew/skills/speccrew-feature-designer-orchestration/SKILL.md +1 -1
- package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/SKILL.md +1 -1
- package/.speccrew/skills/speccrew-knowledge-techs-dispatch/SKILL.md +1 -1
- package/.speccrew/skills/speccrew-product-manager-orchestration/SKILL.md +1 -1
- package/.speccrew/skills/speccrew-system-deployer-orchestration/SKILL.md +1 -1
- package/.speccrew/skills/speccrew-system-developer-orchestration/SKILL.md +1 -1
- package/.speccrew/skills/speccrew-task-worker-execution/SKILL.md +1 -1
- package/.speccrew/skills/speccrew-team-leader-routing/SKILL.md +1 -1
- package/.speccrew/skills/speccrew-test-manager-orchestration/SKILL.md +1 -1
- package/package.json +1 -1
- package/workspace-template/docs/rules/agentflow-spec.md +1 -1
|
@@ -110,22 +110,22 @@ PM continues to next orchestration block
|
|
|
110
110
|
Before executing EVERY block in the orchestration workflow, you MUST announce it in this format:
|
|
111
111
|
|
|
112
112
|
```
|
|
113
|
-
|
|
113
|
+
ð·ïļ Block [{ID}] (type={type}, action={action}) â {desc}
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
**This is NOT optional.** If you dispatch Workers without announcing each Phase block first, you are violating the execution protocol.
|
|
117
117
|
|
|
118
118
|
**Correct example:**
|
|
119
119
|
```
|
|
120
|
-
|
|
120
|
+
ð·ïļ Block [P0] (type=task, action=dispatch-to-worker) â Phase 0: Initialize workflow
|
|
121
121
|
ð§ Tool: Agent tool â create speccrew-task-worker
|
|
122
122
|
â
Result: Iteration directory created
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
ð·ïļ Block [P0-RESUME] (type=gateway, mode=exclusive) â Check resume point
|
|
125
125
|
ð§ Evaluating: resume_target variable
|
|
126
126
|
â
Result: No resume needed, proceeding from P1
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
ð·ïļ Block [P1] (type=task, action=dispatch-to-worker) â Phase 1: Knowledge base check
|
|
129
129
|
ð§ Tool: Agent tool â create speccrew-task-worker
|
|
130
130
|
â
Result: Knowledge status = full
|
|
131
131
|
```
|
|
@@ -24,7 +24,7 @@ Your core task is: based on the Feature Spec (WHAT to build), design HOW to buil
|
|
|
24
24
|
- If SKILL.xml read fails, report error and ABORT â do NOT attempt to proceed without it
|
|
25
25
|
2. **Announce Workflow**: Log the workflow phases/steps overview from XML structure
|
|
26
26
|
3. **Execute Blocks Sequentially**: Follow SKILL.xml block order strictly â do NOT improvise or skip blocks
|
|
27
|
-
4. **
|
|
27
|
+
4. **Announce Every Block**: Before executing EVERY block, announce using `[Block ID]` format (see Block Execution Announcement Protocol below)
|
|
28
28
|
5. **Only Pause at HARD STOP**: Only wait for user confirmation at explicitly defined checkpoints (P3.5 Framework Eval, P4.5 Design Overview, P6.1 Joint Confirmation)
|
|
29
29
|
|
|
30
30
|
### ACTION EXECUTION RULES
|
|
@@ -42,6 +42,43 @@ When executing XML workflow blocks, map actions to IDE tools as follows:
|
|
|
42
42
|
|
|
43
43
|
**VIOLATION**: Skipping XML loading, improvising steps, or proceeding without step announcements = workflow ABORT.
|
|
44
44
|
|
|
45
|
+
## MANDATORY: Block Execution Announcement Protocol
|
|
46
|
+
|
|
47
|
+
Before executing EVERY block in the orchestration workflow, you MUST announce it in this format:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
ð·ïļ Block [{ID}] (type={type}, action={action}) â {desc}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**This is NOT optional.** If you dispatch Workers without announcing each Phase block first, you are violating the execution protocol.
|
|
54
|
+
|
|
55
|
+
**Correct example:**
|
|
56
|
+
```
|
|
57
|
+
ð·ïļ Block [P3] (type=task, action=dispatch-to-worker) â Phase 3: Framework Evaluation
|
|
58
|
+
ð§ Tool: Agent tool â create speccrew-task-worker
|
|
59
|
+
â
Result: framework-evaluation.md generated
|
|
60
|
+
|
|
61
|
+
ð·ïļ Block [P4] (type=task, action=dispatch-to-worker) â Phase 4: Generate DESIGN-OVERVIEW.md
|
|
62
|
+
ð§ Tool: Agent tool â create speccrew-task-worker
|
|
63
|
+
â
Result: DESIGN-OVERVIEW.md generated
|
|
64
|
+
|
|
65
|
+
ð·ïļ Block [P5-B3] (type=task, action=dispatch-to-worker) â Dispatch platform design worker
|
|
66
|
+
ð§ Tool: Agent tool â create speccrew-task-worker (batch)
|
|
67
|
+
â
Result: 6 workers dispatched
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
**Incorrect example (â FORBIDDEN):**
|
|
71
|
+
```
|
|
72
|
+
Now let me dispatch Phase 3...
|
|
73
|
+
Phase 3 done. Moving to Phase 4...
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Rules:**
|
|
77
|
+
- Announce BEFORE execution begins, not after
|
|
78
|
+
- Use exact block IDs from workflow XML (P0, P1, P2, P3, P3.5, P4, P4.5, P5-B1, P5-B2, P5-B3, P5-B4, P5.5, P6, etc.)
|
|
79
|
+
- For gateway blocks, announce which branch is taken
|
|
80
|
+
- For rule blocks, confirm the rule is acknowledged
|
|
81
|
+
|
|
45
82
|
# ð CRITICAL: dispatch-to-worker Protocol
|
|
46
83
|
|
|
47
84
|
### Definition
|
|
@@ -18,6 +18,24 @@ tools: Read, Grep, Glob, Write, Bash, Edit, WebFetch, WebSearch
|
|
|
18
18
|
4. **Honor Dispatch Context**: Accept all context parameters (task_id, feature_id, platform, skip_confirmation, etc.) as authoritative â do NOT question or validate them
|
|
19
19
|
5. **Report Completion**: Output structured completion report with status, task_id, output_files
|
|
20
20
|
|
|
21
|
+
### ACTION EXECUTION RULES
|
|
22
|
+
|
|
23
|
+
When executing XML workflow blocks, map actions to IDE tools as follows:
|
|
24
|
+
- `action="read-file"` â Use **Read tool**
|
|
25
|
+
- `action="edit-file"` â Use **search_replace tool** (targeted section replacement, NOT terminal commands)
|
|
26
|
+
- `action="run-script"` â Use **Terminal/Bash tool**
|
|
27
|
+
- `action="generate"` â **Copy template file** then fill sections with search_replace tool
|
|
28
|
+
- `action="analyze"` â Use **Read + Grep tools** to inspect codebase
|
|
29
|
+
- `action="verify"` â Use **Read tool** to check output completeness
|
|
30
|
+
- `action="log"` â **Output** directly to conversation
|
|
31
|
+
- `action="confirm"` â **Output + Wait** for user response
|
|
32
|
+
|
|
33
|
+
**FORBIDDEN tool substitutions:**
|
|
34
|
+
- â Using `node -e` or terminal commands for file editing (MUST use search_replace tool)
|
|
35
|
+
- â Creating .js/.sh/.ps1 helper scripts to fill templates (MUST use search_replace tool section-by-section)
|
|
36
|
+
- â Using create_file to write large documents (MUST copy template then search_replace sections)
|
|
37
|
+
- â Replacing entire file content in a single operation (MUST do targeted section replacements)
|
|
38
|
+
|
|
21
39
|
**FORBIDDEN BEHAVIORS:**
|
|
22
40
|
- â Questioning task assignments ("åščŊĨįą XXX Agent æĨæ§čĄ" / "éķæŪĩäļåđé
")
|
|
23
41
|
- â Presenting options to user ("æđæĄA / æđæĄB, čŊ·įĄŪčŪĪ")
|
|
@@ -223,7 +241,7 @@ When executing a Skill that uses XML workflow format (`<workflow>` root element)
|
|
|
223
241
|
|
|
224
242
|
1. **Before executing each `<block>`**, announce it using this exact format:
|
|
225
243
|
```
|
|
226
|
-
|
|
244
|
+
ð·ïļ Block [{block-id}] (type={block-type}, action={action}) â {block-desc}
|
|
227
245
|
```
|
|
228
246
|
|
|
229
247
|
2. **ALL block types require announcement**: `task`, `loop`, `checkpoint`, `rule`, `gateway`, `input`, `output`.
|
|
@@ -86,7 +86,7 @@ You understand the complete AI engineering closed loop: **speccrew-pm â speccr
|
|
|
86
86
|
> After reading the specification, parse the XML workflow below and **strictly execute each `<block>` in document order**. For EVERY block, you MUST announce it before execution:
|
|
87
87
|
>
|
|
88
88
|
> ```
|
|
89
|
-
>
|
|
89
|
+
> ð·ïļ Block [ID] (action=[action]) â [desc]
|
|
90
90
|
> ð§ Tool: [which IDE tool to call]
|
|
91
91
|
> â
Result: [output or status]
|
|
92
92
|
> ```
|
|
@@ -12,7 +12,7 @@ tools: Read, Write, Task, Bash
|
|
|
12
12
|
> **Step 2**: Execute this SKILL.md's XML workflow **block by block in document order**. For EVERY block, you MUST follow this 3-step cycle:
|
|
13
13
|
>
|
|
14
14
|
> ```
|
|
15
|
-
>
|
|
15
|
+
> ð·ïļ Block [ID] (action=[action]) â [desc]
|
|
16
16
|
> ð§ Tool: [which IDE tool to call]
|
|
17
17
|
> â
Result: [output or status]
|
|
18
18
|
> ```
|
|
@@ -12,7 +12,7 @@ tools: Read, Write, Glob, Grep, Bash, Agent
|
|
|
12
12
|
> **Step 2**: Execute this SKILL.md's XML workflow **block by block in document order**. For EVERY block, you MUST follow this 3-step cycle:
|
|
13
13
|
>
|
|
14
14
|
> ```
|
|
15
|
-
>
|
|
15
|
+
> ð·ïļ Block [ID] (action=[action]) â [desc]
|
|
16
16
|
> ð§ Tool: [which IDE tool to call]
|
|
17
17
|
> â
Result: [output or status]
|
|
18
18
|
> ```
|
|
@@ -11,7 +11,7 @@ tools: Read, Write, Task, Bash
|
|
|
11
11
|
> **Step 2**: Execute this SKILL.md's XML workflow **block by block in document order**. For EVERY block, you MUST follow this 3-step cycle:
|
|
12
12
|
>
|
|
13
13
|
> ```
|
|
14
|
-
>
|
|
14
|
+
> ð·ïļ Block [ID] (action=[action]) â [desc]
|
|
15
15
|
> ð§ Tool: [which IDE tool to call]
|
|
16
16
|
> â
Result: [output or status]
|
|
17
17
|
> ```
|
|
@@ -11,7 +11,7 @@ tools: Read, Write, Task, Bash
|
|
|
11
11
|
> **Step 2**: Execute this SKILL.md's XML workflow **block by block in document order**. For EVERY block, you MUST follow this 3-step cycle:
|
|
12
12
|
>
|
|
13
13
|
> ```
|
|
14
|
-
>
|
|
14
|
+
> ð·ïļ Block [ID] (action=[action]) â [desc]
|
|
15
15
|
> ð§ Tool: [which IDE tool to call]
|
|
16
16
|
> â
Result: [output or status]
|
|
17
17
|
> ```
|
|
@@ -12,7 +12,7 @@ tools: Read, Write, Glob, Grep, Bash, Agent
|
|
|
12
12
|
> **Step 2**: Execute this SKILL.md's XML workflow **block by block in document order**. For EVERY block, you MUST follow this 3-step cycle:
|
|
13
13
|
>
|
|
14
14
|
> ```
|
|
15
|
-
>
|
|
15
|
+
> ð·ïļ Block [ID] (action=[action]) â [desc]
|
|
16
16
|
> ð§ Tool: [which IDE tool to call]
|
|
17
17
|
> â
Result: [output or status]
|
|
18
18
|
> ```
|
|
@@ -12,7 +12,7 @@ tools: Read, Write, Glob, Grep, Bash
|
|
|
12
12
|
> **Step 2**: Execute this SKILL.md's XML workflow **block by block in document order**. For EVERY block, you MUST follow this 3-step cycle:
|
|
13
13
|
>
|
|
14
14
|
> ```
|
|
15
|
-
>
|
|
15
|
+
> ð·ïļ Block [ID] (action=[action]) â [desc]
|
|
16
16
|
> ð§ Tool: [which IDE tool to call]
|
|
17
17
|
> â
Result: [output or status]
|
|
18
18
|
> ```
|
|
@@ -12,7 +12,7 @@ tools: Read, Write, Glob, Grep, Bash
|
|
|
12
12
|
> **Step 2**: Execute this SKILL.md's XML workflow **block by block in document order**. For EVERY block, you MUST follow this 3-step cycle:
|
|
13
13
|
>
|
|
14
14
|
> ```
|
|
15
|
-
>
|
|
15
|
+
> ð·ïļ Block [ID] (action=[action]) â [desc]
|
|
16
16
|
> ð§ Tool: [which IDE tool to call]
|
|
17
17
|
> â
Result: [output or status]
|
|
18
18
|
> ```
|
|
@@ -12,7 +12,7 @@ tools: Read, Grep, Glob, Write, Bash, Edit, WebFetch, WebSearch
|
|
|
12
12
|
> **Step 2**: Execute this SKILL.md's XML workflow **block by block in document order**. For EVERY block, you MUST follow this 3-step cycle:
|
|
13
13
|
>
|
|
14
14
|
> ```
|
|
15
|
-
>
|
|
15
|
+
> ð·ïļ Block [ID] (type=[type], action=[action]) â [desc]
|
|
16
16
|
> ð§ Tool: [which IDE tool to call]
|
|
17
17
|
> â
Result: [output or status]
|
|
18
18
|
> ```
|
|
@@ -12,7 +12,7 @@ tools: Read, Write, Bash, Skill, Task
|
|
|
12
12
|
> **Step 2**: Execute this SKILL.md's XML workflow **block by block in document order**. For EVERY block, you MUST follow this 3-step cycle:
|
|
13
13
|
>
|
|
14
14
|
> ```
|
|
15
|
-
>
|
|
15
|
+
> ð·ïļ Block [ID] (action=[action]) â [desc]
|
|
16
16
|
> ð§ Tool: [which IDE tool to call]
|
|
17
17
|
> â
Result: [output or status]
|
|
18
18
|
> ```
|
|
@@ -12,7 +12,7 @@ tools: Read, Write, Glob, Grep, Bash, Agent
|
|
|
12
12
|
> **Step 2**: Execute this SKILL.md's XML workflow **block by block in document order**. For EVERY block, you MUST follow this 3-step cycle:
|
|
13
13
|
>
|
|
14
14
|
> ```
|
|
15
|
-
>
|
|
15
|
+
> ð·ïļ Block [ID] (action=[action]) â [desc]
|
|
16
16
|
> ð§ Tool: [which IDE tool to call]
|
|
17
17
|
> â
Result: [output or status]
|
|
18
18
|
> ```
|
package/package.json
CHANGED
|
@@ -512,7 +512,7 @@ When executing an AgentFlow XML workflow, the Agent MUST strictly follow the blo
|
|
|
512
512
|
Before executing each `<block>`, the agent MUST announce the block being executed. The announcement format is:
|
|
513
513
|
|
|
514
514
|
```
|
|
515
|
-
|
|
515
|
+
ð·ïļ Block [{block-id}] (type={block-type}, action={action}) â {block-desc}
|
|
516
516
|
```
|
|
517
517
|
|
|
518
518
|
**Rules:**
|