orchestrate
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when the user asks to 'orchestrate a task', 'break down work into parallel agents', 'coordinate subtasks', 'run agents in parallel'…
от varun29ankuS★ 326 звёзд на GitHubОб этом скилле
Agent Orchestration — Todo-Driven Parallel Execution
You are orchestrating a complex task by decomposing it into tracked subtasks, dispatching parallel agents, and coordinating dependencies until completion. Shodh-memory todos are your task graph. Claude Code's Task tool is your agent spawner. Hooks handle the automation.
Phase 1: Decompose
Break the user's request into 3-10 concrete, independently executable subtasks.
Create the project
add_project(name="orch-{kebab-case-summary}")
The project auto-generates a prefix (e.g., ORCH). All todos in this project use that prefix for short IDs like ORCH-1, ORCH-2.
Create todos with dependencies
For each subtask, create a todo in the project:
Independent tasks (can run immediately):
add_todo(
content="Clear, specific description of what this subtask produces",
project="orch-{name}",
priority="high",
tags=["orchestration", "batch:1"]
)
Dependent tasks (must wait for others):
add_todo(
content="Description of dependent work",
project="orch-{name}",
status="blocked",
blocked_on="ORCH-1,ORCH-3",
tags=["orchestration", "batch:2"]
)
The blocked_on field is comma-separated short IDs. The batch:N tag groups tasks by execution wave.
Dependency rules
- A task blocked on
"ORCH-1,ORCH-3"cannot start until BOTH are done - Keep dependency chains shallow (max 3-4 levels deep)
- Maximize parallelism — identify tasks that are truly independent
- Never create circular dependencies
Present the plan
Show the user the task graph before executing:
Project: orch-refactor-auth (ORCH)
Batch 1 (parallel):
ORCH-1: [todo] Extract JWT utilities into auth/tokens.ts
ORCH-2: [todo] Create password hashing module
Batch 2 (after batch 1):
ORCH-3: [blocked on ORCH-1] Update login endpoint
ORCH-4: [blocked on ORCH-1] Update token refresh endpoint
ORCH-5: [blocked on ORCH-2] Update registration endpoint
Batch 3 (after batch 2):
ORCH-6: [blocked on ORCH-3,ORCH-4,ORCH-5] Integration tests
Wait for user approval before dispatching.
Phase 2: Dispatch
Find unblocked work
list_todos(project="orch-{name}", status=["todo"])
For each unblocked todo:
- Mark it in-progress:
update_todo(todo_id="ORCH-N", status="in_progress")
- Spawn a Task agent with the todo tag in the prompt:
CRITICAL: Every Task prompt MUST start with [ORCH-TODO:ORCH-N] where N is the todo's sequence number. The PostToolUse hook extracts this tag to automatically complete the todo and unblock dependents.
Task(
description="ORCH-N: brief summary",
prompt="[ORCH-TODO:ORCH-N] Full detailed instructions for the agent...",
subagent_type="general-purpose"
)
- Spawn independent tasks in parallel — make multiple Task calls in a single response.
Choose the right agent type
| Agent Type | Best For |
|---|---|
Explore |
Research, codebase exploration, finding patterns |
Plan |
Architecture design, trade-off analysis |
Bash |
Running commands, builds, deployments |
general-purpose |
Code changes, implementation, multi-step work |
Include sufficient context in each prompt
Each agent runs in isolation. Include in every Task prompt:
- What files to look at or modify
- What the expected output/deliverable is
- Any constraints or patterns to follow
- Context from previously completed tasks (copy relevant resolution comments)
Phase 3: Monitor & Continue
After agents return, the PostToolUse hook automatically:
- Adds the agent's result as a Resolution comment on the matching todo
- Completes the todo
- Unblocks dependent todos (removes from
blocked_on, changes status totodo)
Check project state
list_todos(project="orch-{name}")
Review the status:
done— completed by agentstodo— newly unblocked, ready for next batchblocked— still waiting on dependenciesin_progress— agents still runningcancelled— failed permanently
Dispatch next batch
If there are todo status items, repeat Phase 2 for the next batch. Continue until all todos are done or cancelled.
Summarize results
When all todos are complete:
- List all resolution comments to gather agent outputs
- Synthesize a summary for the user
- Note any cancelled tasks and why
Handling Failures
When a Task agent returns an error or incomplete result:
- Add a Progress comment documenting the failure:
add_todo_comment(
todo_id="ORCH-N",
content="Agent failed: {error description}",
comment_type="progress"
)
- Retry (max 2 attempts) with additional context:
Task(
prompt="[ORCH-TODO:ORCH-N] RETRY: Previous attempt failed because {reason}. {updated instructions}...",
subagent_type="general-purpose"
)
- If retry fails, cancel the todo:
update_
Установить orchestrate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл orchestrate?
This skill should be used when the user asks to 'orchestrate a task', 'break down work into parallel agents', 'coordinate subtasks', 'run agents in parallel', or mentions 'multi-agent'. Decomposes complex tasks into tracked subtasks, dispatches parallel subagents, and coordinates until completion.
Как установить скилл orchestrate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл orchestrate запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic