task-master
Decompose a goal into atomic subtasks, order by dependency, and refuse cycles.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- tags
- [ "agents/planning", "agents/decomposition", "agents/skills" ]
- owner
- Platform Engineering
- title
- Agent Skill: Task Master
- status
- active
- doc_kind
- skill
- description
- Decompose a goal into atomic subtasks, order by dependency, and refuse cycles.
- last_reviewed
- 2026-09-13
- review_frequency
- Annual
02 资源文件 2
- 脚本main.py3.7 KB
- 脚本tests/test_task_master.py2.1 KB
03 SKILL.md 正文
Task Master
Break a goal into atomic subtasks, resolve dependencies, and emit a deterministic execution order. Refuses to schedule a plan containing a dependency cycle.
Module: knowledge.agents.task_master.main · Version: 1.0.0 · Type: agents/planning/decomposition
Contract
Task Master exposes one coordinator class. Decomposes a goal into atomic subtasks and returns a wave-ordered execution plan. A wave contains only subtasks whose dependencies are already satisfied, so every wave can run fully in parallel.
Usage
from knowledge.agents.task_master.main import Subtask, TaskMaster
plan = TaskMaster().plan("Ship the feature", [
Subtask("design", "Design schema", estimate_hours=3),
Subtask("api", "Build API", depends_on=["design"], estimate_hours=5),
Subtask("ship", "Ship", depends_on=["api"], estimate_hours=1),
])
# {"waves": [["design"], ["api"], ["ship"]], "critical_path_hours": 9.0, ...}
Design notes
- A circular dependency raises
DependencyCycleError-- the plan is never emitted in a state that cannot be executed. critical_path_hoursis the longest dependency chain, which is the floor on wall-clock time regardless of available parallelism.
Tests
python -m pytest knowledge/agents/task-master -q
04 同仓库更多 Skills
workflow_dispatch
暂无简介
research
Multi-source research & knowledge synthesis with cross-validation, provenance graph, confidence score
pr-triage-automove
暂无简介
patch
暂无简介
git-patch-merge
暂无简介
fetching
Low-level async HTTP/GraphQL fetch — SSRF-safe, retry, cache, provenance