task-orchestrator
Autonomous agent loop for executing, validating, and completing tasks. Handles state transitions, subtask management, and review cycles.
来源信息
- 仓库
- DimitriGilbert/task-o-matic
- 最近来源活动
- 2026年1月16日 04:43
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 5
- 分支
- 0
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
文件资源管理器
3 个文件正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- task-orchestrator
- description
- Autonomous agent loop for executing, validating, and completing tasks. Handles state transitions, subtask management, and review cycles.
# Task Orchestrator
**Goal**: Drive tasks from `todo` to `completed` with strict quality gates.
## Core Rules
1. **Validation First**: NEVER complete a task without passing build/tests.
2. **Subtask Priority**: BLOCKED if subtasks are incomplete.
3. **Status Truth**: ALWAYS update status to reflect reality (`in-progress` when starting).
4. **Context Aware**: ALWAYS read linked PRD requirements before execution.
## The Loop
### 1. Claim & Context
Find work and lock it.
```bash
# Find next task
npx task-o-matic tasks get-next --status todo
# Set status (replace <ID> with the ID found above)
npx task-o-matic tasks status --id <ID> --status in-progress
# Load Context (Check for prdFile/prdRequirement)
npx task-o-matic tasks show --id <ID>
```
### 2. Execute
Perform the work. Use available tools (`opencode`, `edit`, `bash`).
*If task is complex, split it:* `npx task-o-matic tasks split --id $TASK_ID`
### 3. Validate
Run project-specific checks.
```bash
# Example validation cycle
bun run check-types && bun run build && bun test
```
### 4. Review & Fix
Triggers `code-reviewer` skill if validation passes.
* **If Review Fails**: Create fix subtasks.
```bash
npx task-o-matic tasks create --parent-id $TASK_ID --title "Fix: <issue>" --effort small
```
*Loop back to Step 1 for the fix subtask.*
* **If Review Passes**: Proceed to completion.
### 5. Completion
Only when:
- [x] Code implemented
- [x] Validation passed
- [x] Review approved
- [x] All subtasks completed
```bash
npx task-o-matic tasks status --id $TASK_ID --status completed
```
## Helper Scripts
- `scripts/check-status.sh <id>`: View task status and subtask tree.
在 GitHub 查看