技能 Orchestrator
- 作者仓库星标 435
- 作者仓库 nvim
Orchestrator Skill
Central routing intelligence for the task management system.
Context Loading
Load context on-demand when needed:
@.opencode/context/orchestration/orchestration-core.md- Routing, delegation, session tracking@.opencode/context/orchestration/state-management.md- Task lookup and status validation@.opencode/context/index.json- Full context discovery index
Trigger Conditions
This skill activates when:
- A slash command needs task-type-based routing
- Task context needs to be gathered before delegation
- Multi-step workflows require coordination
Core Responsibilities
1. Task Lookup
Given a task number, retrieve full context:
1. Read specs/state.json
2. Find task by project_number
3. Extract: task_type, status, project_name, description, priority
4. Read TODO.md for additional context if needed
2. Task-Type-Based Routing
Route to appropriate skill based on task type:
| Task Type | Research Skill | Implementation Skill |
|---|---|---|
| general | skill-researcher | skill-implementer |
| meta | skill-researcher | skill-implementer |
| markdown | skill-researcher | skill-implementer |
Note: Additional languages (latex, typst) are available via extensions in .opencode/extensions/.
3. Status Validation
Before routing, validate task status is not terminal:
if status in [completed, abandoned, expanded]:
ABORT "Task is in terminal state [$status]"
All operations (research, plan, implement, revise) are allowed from any non-terminal status.
4. Context Preparation
Prepare context package for delegated skill:
{
"task_number": 259,
"task_name": "task_slug",
"task_type": "general",
"status": "planned",
"description": "Full task description",
"artifacts": {
"research": ["path/to/research.md"],
"plan": "path/to/plan.md"
},
"focus_prompt": "Optional user-provided focus"
}
Execution Flow
1. Receive command context (task number, operation type)
2. Lookup task in state.json
3. Validate status for operation
4. Determine target skill by task_type
5. Prepare context package
6. Invoke target skill via Task tool
7. Receive and validate result
8. Return result to caller
Return Format
{
"status": "completed|partial|failed",
"routed_to": "skill-name",
"task_number": 259,
"result": {
"artifacts": [],
"summary": "..."
}
}
Error Handling
- Task not found: Return clear error with suggestions
- Invalid status: Return error with current status and allowed operations
- Skill invocation failure: Return partial result with error details
MUST NOT (Postflight Boundary)
After routing to a skill, this skill MUST NOT:
- Edit source files - All work is done by routed skills/agents
- Run build/test commands - Verification is done by routed skills/agents
- Update task status - Status updates are done by routed skills
- Create artifacts - Artifact creation is done by routed skills/agents
The orchestrator is a routing-only skill. It:
- Looks up task context
- Routes to appropriate skill based on task_type
- Passes through the routed skill's return
Reference: @.opencode/context/standards/postflight-tool-restrictions.md
- 流狐分类
- 工程开发
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @benbrastmckie · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Load context on-demand when needed: @.opencode/context/orchestration/orchestration-core.md - Routing, delegation, session tracking @.opencode/context/orchestration/state-management.md - Task lookup and status validation
This skill activates when: A slash command needs task-type-based routing Task context needs to be gathered before delegation
Core Responsibilities
Given a task number, retrieve full context:
Route to appropriate skill based on task type: Task Type · Research Skill · Implementation Skill general · skill-researcher · skill-implementer
Before routing, validate task status is not terminal: All operations (research, plan, implement, revise) are allowed from any non-terminal status.
# Orchestrator Skill
Central routing intelligence for the task management system.
## Context Loading
Load context on-demand when needed:
- `@.opencode/context/orchestration/orchestration-core.md` - Routing, delegation, session tracking
- `@.opencode/context/orchestration/state-management.md` - Task lookup and status validation
- `@.opencode/context/index.json` - Full context discovery index
## Trigger Conditions
This skill activates when:
- A slash command needs task-type-based routing
- Task context needs to be gathered before delegation
- Multi-step workflows require coordination
## Core Responsibilities
### 1. Task Lookup
Given a task number, retrieve full context:
```
1. Read specs/state.json
2. Find task by project_number
3. Extract: task_type, status, project_name, description, priority
4. Read TODO.md for additional context if needed
```
### 2. Task-Type-Based Routing
Route to appropriate skill based on task type:
| Task Type | Research Skill | Implementation Skill |
|-----------|---------------|---------------------|
| general | skill-researcher | skill-implementer |
| meta | skill-researcher | skill-implementer |
| markdown | skill-researcher | skill-implementer |
**Note**: Additional languages (latex, typst) are available via extensions in `.opencode/extensions/`.
### 3. Status Validation
Before routing, validate task status is not terminal:
```
if status in [completed, abandoned, expanded]:
ABORT "Task is in terminal state [$status]"
```
All operations (research, plan, implement, revise) are allowed from any non-terminal status.
### 4. Context Preparation
Prepare context package for delegated skill:
```json
{
"task_number": 259,
"task_name": "task_slug",
"task_type": "general",
"status": "planned",
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Context Loading → Trigger Conditions → Core Responsibilities → 1. Task Lookup → 2. Task-Type-Based Routing → 3. Status Validation
要点 -> Note · Edit source files · Run build/test commands · Update task status · Create artifacts · routing-only
文件/命令 -> @.opencode/context/orchestration/orchestration-core.md · @.opencode/context/orchestration/state-management.md · @.opencode/context/index.json · .opencode/extensions/
内容 SHA-256 -> 466df34f0221
原文结构
适用与边界
原文中的明确线索
@.opencode/context/orchestration/orchestration-core.md、@.opencode/context/orchestration/state-management.md、@.opencode/context/index.json、.opencode/extensions/