speccrew 0.7.3 → 0.7.4
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.
|
@@ -50,6 +50,12 @@ You understand the complete AI engineering closed loop: **speccrew-pm → speccr
|
|
|
50
50
|
|
|
51
51
|
# Skill Inventory
|
|
52
52
|
|
|
53
|
+
## Routing
|
|
54
|
+
|
|
55
|
+
| Skill | Trigger Scenario | Function |
|
|
56
|
+
|-------|------------------|----------|
|
|
57
|
+
| `speccrew-team-leader-routing` | All user inputs | Intent recognition and routing to corresponding Skill/Agent |
|
|
58
|
+
|
|
53
59
|
## Infrastructure (Project-level)
|
|
54
60
|
|
|
55
61
|
| Skill | Trigger Scenario | Function |
|
|
@@ -89,7 +95,7 @@ You understand the complete AI engineering closed loop: **speccrew-pm → speccr
|
|
|
89
95
|
|
|
90
96
|
## AgentFlow Definition
|
|
91
97
|
|
|
92
|
-
<!-- @
|
|
98
|
+
<!-- @skill: speccrew-team-leader-routing -->
|
|
93
99
|
|
|
94
100
|
---
|
|
95
101
|
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: speccrew-team-leader-routing
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
description: Team Leader 的意图识别与路由调度技能,负责识别用户意图并路由到对应 Skill/Agent。处理项目初始化、知识库同步、工作流诊断等基础设施请求。
|
|
5
|
+
tools: Read, Write, Bash, Skill, Task
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
> **⚠️ MANDATORY EXECUTION PROTOCOL — READ BEFORE EXECUTING ANY BLOCK**
|
|
9
|
+
>
|
|
10
|
+
> **Step 1**: Load XML workflow specification: `speccrew-workspace/docs/rules/agentflow-spec.md` — this defines all block types and action-to-tool mappings
|
|
11
|
+
>
|
|
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
|
+
>
|
|
14
|
+
> ```
|
|
15
|
+
> 📋 Block [ID] (action=[action]) — [desc]
|
|
16
|
+
> 🔧 Tool: [which IDE tool to call]
|
|
17
|
+
> ✅ Result: [output or status]
|
|
18
|
+
> ```
|
|
19
|
+
>
|
|
20
|
+
> Action-to-tool mapping:
|
|
21
|
+
> - `action="run-skill"` → Invoke via **Skill tool** (pass the `<field name="skill">` value EXACTLY)
|
|
22
|
+
> - `action="run-script"` → Execute via **Terminal tool** (pass the `<field name="command">` value EXACTLY)
|
|
23
|
+
> - `action="dispatch-to-worker"` → Create **Task** via **Task tool** for `speccrew-task-worker`
|
|
24
|
+
> - `action="read-file"` → Read via **Read tool**
|
|
25
|
+
> - `action="log"` → Output message directly
|
|
26
|
+
> - `action="confirm"` → Present to user and wait for response
|
|
27
|
+
>
|
|
28
|
+
> **Step 3**: Execute ALL blocks sequentially without pausing (only stop at explicit `<event action="confirm">` blocks)
|
|
29
|
+
|
|
30
|
+
# Team Leader Routing
|
|
31
|
+
|
|
32
|
+
Team Leader 的核心路由调度技能,负责:
|
|
33
|
+
|
|
34
|
+
1. **Pipeline Progress Awareness** - 读取 WORKFLOW-PROGRESS.json,感知当前流水线状态
|
|
35
|
+
2. **Auto-Orchestration** - 处理自动推进与新用户引导
|
|
36
|
+
3. **Intent Recognition** - 识别用户意图并路由到正确的 Skill/Agent
|
|
37
|
+
4. **Skill Invocation** - 加载并执行对应的 Skill
|
|
38
|
+
|
|
39
|
+
## Invocation Method
|
|
40
|
+
|
|
41
|
+
**CRITICAL**: This skill is loaded directly by Team Leader Agent — do NOT invoke via Worker Agent.
|
|
42
|
+
|
|
43
|
+
```xml
|
|
44
|
+
<block type="task" action="run-skill" desc="Team Leader routing workflow">
|
|
45
|
+
<field name="skill">speccrew-team-leader-routing</field>
|
|
46
|
+
</block>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Input Parameters
|
|
50
|
+
|
|
51
|
+
| Parameter | Type | Required | Description |
|
|
52
|
+
|-----------|------|----------|-------------|
|
|
53
|
+
| `user_message` | string | Yes | Original user input message |
|
|
54
|
+
| `workspace_root` | string | Yes | speccrew-workspace root directory path |
|
|
55
|
+
| `iteration_dir` | string | No | Current active iteration directory |
|
|
56
|
+
|
|
57
|
+
## Output
|
|
58
|
+
|
|
59
|
+
- `status` - Execution status (success / partial / failed)
|
|
60
|
+
- `skill_invoked` - Name of invoked Skill (if any)
|
|
61
|
+
- `output_files` - List of generated/modified files
|
|
62
|
+
- `summary` - Execution summary
|
|
63
|
+
- `next_steps` - Suggested next actions
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## AgentFlow Definition
|
|
68
|
+
|
|
69
|
+
<!-- @agentflow: workflow.agentflow.xml -->
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## CONTINUOUS EXECUTION RULES
|
|
74
|
+
|
|
75
|
+
This skill MUST execute tasks continuously without unnecessary interruptions.
|
|
76
|
+
|
|
77
|
+
### FORBIDDEN Interruptions
|
|
78
|
+
|
|
79
|
+
1. DO NOT ask user "Should I continue?" after completing a subtask
|
|
80
|
+
2. DO NOT suggest "Let me split this into batches" or "Let's do this in parts"
|
|
81
|
+
3. DO NOT pause to list what you plan to do next — just do it
|
|
82
|
+
4. DO NOT ask for confirmation before generating output files
|
|
83
|
+
5. DO NOT warn about "large number of files" — proceed with generation
|
|
84
|
+
6. DO NOT offer "Should I proceed with the remaining items?"
|
|
85
|
+
|
|
86
|
+
### When to Pause (ONLY these cases)
|
|
87
|
+
|
|
88
|
+
1. CHECKPOINT gates defined in workflow (user confirmation required by design)
|
|
89
|
+
2. Ambiguous requirements that genuinely need clarification
|
|
90
|
+
3. Unrecoverable errors that prevent further progress
|
|
91
|
+
4. Security-sensitive operations (e.g., deleting existing files)
|