task-dependency-patterns by yonatangross/orchestkit
npx skills add https://github.com/yonatangross/orchestkit --skill task-dependency-patternsClaude Code 2.1.16 引入了原生的任务管理系统,包含四个工具:
任务支持结构化的工作跟踪、并行协调和清晰的进度可见性。
将复杂工作分解为原子化的、可跟踪的单元:
Feature: Add user authentication
Tasks:
#1. [pending] Create User model
#2. [pending] Add auth endpoints (blockedBy: #1)
#3. [pending] Implement JWT tokens (blockedBy: #2)
#4. [pending] Add auth middleware (blockedBy: #3)
#5. [pending] Write integration tests (blockedBy: #4)
使用 addBlockedBy 创建执行顺序:
// Task #3 cannot start until #1 and #2 complete
{"taskId": "3", "addBlockedBy": ["1", "2"]}
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
pending → in_progress → completed
↓ ↓
(unblocked) (active)
pending/in_progress → deleted (CC 2.1.20)
CC 2.1.20 增加了 status: "deleted" 以永久删除任务:
// Delete a task
{"taskId": "3", "status": "deleted"}
何时删除:
何时不删除:
为进度指示器显示提供现在进行时形式:
| 主题(祈使句) | 进行时形式 |
|---|---|
| Run tests | Running tests |
| Update schema | Updating schema |
| Fix authentication | Fixing authentication |
CC 2.1.33 引入了智能体团队,用于多智能体协调,具有共享任务列表和点对点消息传递。
1. TeamCreate("my-feature") → Creates team + shared task list
2. TaskCreate(subject, description) → Add tasks to shared list
3. Agent(prompt, team_name, name) → Spawn teammates
4. TaskUpdate(owner: "teammate-name") → Assign tasks
5. SendMessage(type: "message") → Direct teammate communication
6. SendMessage(type: "shutdown_request") → Graceful shutdown
| 标准 | 任务工具(子智能体) | 智能体团队 |
|---|---|---|
| 独立任务 | 是 | 过度 |
| 跨领域变更 | 有限 | 是 |
| 智能体需要交流 | 否(星型拓扑) | 是(网状) |
| 成本敏感性 | 较低(约1倍) | 较高(约2.5倍) |
| 复杂度 < 3.0 | 是 | 否 |
| 复杂度 > 3.5 | 可能 | 推荐 |
# Spawn teammate into shared task list
Agent(
prompt="You are the backend architect...",
team_name="my-feature",
name="backend-architect",
subagent_type="backend-system-architect"
)
# Teammate claims and works tasks
TaskList → find unblocked, unowned tasks
TaskUpdate(taskId, owner: "backend-architect", status: "in_progress")
# ... do work ...
TaskUpdate(taskId, status: "completed")
TaskList → find next task
# Direct message between teammates
SendMessage(type: "message", recipient: "frontend-dev",
content: "API contract ready: GET /users/:id returns {...}",
summary: "API contract shared")
# Broadcast to all (use sparingly)
SendMessage(type: "broadcast",
content: "Breaking change: auth header format changed",
summary: "Breaking auth change")
当使用智能体团队时,如果工作流中途达到上下文限制:
TaskList 从已完成的队友那里收集部分结果TaskUpdate(status: "cancelled", note: "context limit") 记录跳过的任务ork:implement - 带有任务跟踪和进度更新的实现工作流ork:verify - 验证任务和完成清单ork:fix-issue - 基于假设的根因分析跟踪的问题解决ork:brainstorm - 带有并行智能体任务的设计探索使用 Read("${CLAUDE_SKILL_DIR}/references/<file>") 按需加载:
| 文件 | 内容 |
|---|---|
dependency-tracking.md | 依赖关系跟踪模式 |
status-workflow.md | 状态工作流详情 |
multi-agent-coordination.md | 多智能体协调 |
每周安装量
87
仓库
GitHub 星标数
134
首次出现
2026年1月24日
安全审计
安装于
opencode79
gemini-cli78
github-copilot75
codex75
cursor73
claude-code72
Claude Code 2.1.16 introduces a native Task Management System with four tools:
Tasks enable structured work tracking, parallel coordination, and clear progress visibility.
Break complex work into atomic, trackable units:
Feature: Add user authentication
Tasks:
#1. [pending] Create User model
#2. [pending] Add auth endpoints (blockedBy: #1)
#3. [pending] Implement JWT tokens (blockedBy: #2)
#4. [pending] Add auth middleware (blockedBy: #3)
#5. [pending] Write integration tests (blockedBy: #4)
Use addBlockedBy to create execution order:
// Task #3 cannot start until #1 and #2 complete
{"taskId": "3", "addBlockedBy": ["1", "2"]}
pending → in_progress → completed
↓ ↓
(unblocked) (active)
pending/in_progress → deleted (CC 2.1.20)
CC 2.1.20 adds status: "deleted" to permanently remove tasks:
// Delete a task
{"taskId": "3", "status": "deleted"}
When to delete:
When NOT to delete:
Provide present-continuous form for spinner display:
| subject (imperative) | activeForm (continuous) |
|---|---|
| Run tests | Running tests |
| Update schema | Updating schema |
| Fix authentication | Fixing authentication |
CC 2.1.33 introduces Agent Teams for multi-agent coordination with shared task lists and peer-to-peer messaging.
1. TeamCreate("my-feature") → Creates team + shared task list
2. TaskCreate(subject, description) → Add tasks to shared list
3. Agent(prompt, team_name, name) → Spawn teammates
4. TaskUpdate(owner: "teammate-name") → Assign tasks
5. SendMessage(type: "message") → Direct teammate communication
6. SendMessage(type: "shutdown_request") → Graceful shutdown
| Criteria | Task Tool (subagents) | Agent Teams |
|---|---|---|
| Independent tasks | Yes | Overkill |
| Cross-cutting changes | Limited | Yes |
| Agents need to talk | No (star topology) | Yes (mesh) |
| Cost sensitivity | Lower (~1x) | Higher (~2.5x) |
| Complexity < 3.0 | Yes | No |
| Complexity > 3.5 | Possible | Recommended |
# Spawn teammate into shared task list
Agent(
prompt="You are the backend architect...",
team_name="my-feature",
name="backend-architect",
subagent_type="backend-system-architect"
)
# Teammate claims and works tasks
TaskList → find unblocked, unowned tasks
TaskUpdate(taskId, owner: "backend-architect", status: "in_progress")
# ... do work ...
TaskUpdate(taskId, status: "completed")
TaskList → find next task
# Direct message between teammates
SendMessage(type: "message", recipient: "frontend-dev",
content: "API contract ready: GET /users/:id returns {...}",
summary: "API contract shared")
# Broadcast to all (use sparingly)
SendMessage(type: "broadcast",
content: "Breaking change: auth header format changed",
summary: "Breaking auth change")
When using Agent Teams, if context limit is reached mid-workflow:
TaskListTaskUpdate(status: "cancelled", note: "context limit")ork:implement - Implementation workflow with task tracking and progress updatesork:verify - Verification tasks and completion checklistsork:fix-issue - Issue resolution with hypothesis-based RCA trackingork:brainstorm - Design exploration with parallel agent tasksLoad on demand with Read("${CLAUDE_SKILL_DIR}/references/<file>"):
| File | Content |
|---|---|
dependency-tracking.md | Dependency tracking patterns |
status-workflow.md | Status workflow details |
multi-agent-coordination.md | Multi-agent coordination |
Weekly Installs
87
Repository
GitHub Stars
134
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode79
gemini-cli78
github-copilot75
codex75
cursor73
claude-code72
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
69,600 周安装