shodh-memory
Persistent memory system for AI agents. Use this skill to remember context across…
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
$ npx -y skills add varun29ankuS/shodh-memory --skill orchestrate --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/orchestrateContext preview
The summary Claude sees to decide when to auto-load this skill.
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
name: orchestrate description: 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. version: 1.0.0 author: Shodh AI tags: - orchestration - multi-agent - parallel - task-decomposition - coordination
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.
Break the user's request into 3-10 concrete, independently executable subtasks.
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`.
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.
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.
list_todos(project="orch-{name}", status=["todo"])1. Mark it in-progress:
update_todo(todo_id="ORCH-N", status="in_progress")
2. 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" )
3. Spawn independent tasks in parallel — make multiple Task calls in a single response.
| 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 |
Each agent runs in isolation. Include in every Task prompt:
After agents return, the PostToolUse hook automatically:
list_todos(project="orch-{name}")Review the status:
If there are `todo` status items, repeat Phase 2 for the next batch. Continue until all todos are `done` or `cancelled`.
When all todos are complete: 1. List all resolution comments to gather agent outputs 2. Synthesize a summary for the user 3. Note any cancelled tasks and why
When a Task agent returns an error or incomplete result:
1. Add a Progress comment documenting the failure:
add_todo_comment(
todo_id="ORCH-N",
content="Agent failed: {error description}",
comment_type="progress"
)2. 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"
)3. If retry fails, cancel the todo:
update_todo(todo_id="ORCH-N", status="cancelled", notes="Failed after 2 retries: {reason}")4. Check if cancelled todo blocks other work — inform the user and ask how to proceed.
If a session ends mid-orchestration, the todo state persists. On the next session:
1. Check for in-progress orchestration projects:
list_projects()
list_todos(project="orch-{name}")2. Resume from where you left off — dispatch any `todo` status items.
User: `/orchestrate Ad
Local, LLM-free memory for AI agents. A single offline Rust binary — deterministic and auditable — that learns from use, forgets the irrelevant, and strengthens what matters. No cloud, no API keys.
Repo: varun29ankuS/shodh-memory
Persistent memory system for AI agents. Use this skill to remember context across…