varun29ankus/shodh-memory/orchestrate
Claude Code and agent skill by varun29ankus/shodh-memory
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install varun29ankus/shodh-memory/orchestrateSKILL.md
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
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):
Dependent tasks (must wait for others):
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:
Wait for user approval before dispatching.
Phase 2: Dispatch
Find unblocked work
For each unblocked todo:
- Mark it 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.
- 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
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:
- Retry (max 2 attempts) with additional context:
- If retry fails, cancel the todo:
- Check if cancelled todo blocks other work — inform the user and ask how to proceed.
Cross-Session Continuity
If a session ends mid-orchestration, the todo state persists. On the next session:
- Check for in-progress orchestration projects:
- Resume from where you left off — dispatch any
todostatus items.
Example
User: /orchestrate Add comprehensive error handling to the API layer
Planning:
Batch 1 dispatch (parallel):
After batch 1 completes:
- Hook auto-completes ORCH-1 and ORCH-2
- Hook unblocks ORCH-3 (both blockers resolved)
- Claude dispatches ORCH-3
Continue until ORCH-5 is done.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/orchestrate/SKILL.md
Popularity
- Repository stars
- 215
- Repository forks
- 31
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/varun29ankus/shodh-memory/orchestrate)