/skill-development:orchestrating-skillsfrom skill-development
Decomposes complex tasks into skill-typed subtasks, extracts targeted context subsets, executes subagents in parallel via raw Anthropic API, and synthesizes results. Self-answers trivial lookups inline. Use when tasks require multiple analytical perspectives or large context with partial subtask needs.
Ships in skill-development. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill hand-rolls subagent orchestration via raw Anthropic API calls. A managed runtime now does the same job. Which one to use depends on your surface:
/deep-research, trigger a run with the workflow keyword, set
/effort ultracode, or spawn Task subagents — do that instead. The runtime gives
16-concurrent / 1000-agent ceilings, an approval gate, adversarial cross-review,
and in-session resume that this skill would otherwise reimplement badly. Dynamic
workflows shipped in research preview (Claude Code v2.1.154+, 2026).Discriminator: do you have a native subagent/Task tool or a workflow command? Yes → native. No → this skill. Never reimplement the runtime where it already exists.
Orchestrate complex multi-step tasks through a four-phase pipeline that eliminates redundant context processing and reflexive subagent spawning.
import sys
sys.path.insert(0, "/mnt/skills/user/orchestrating-skills/scripts")
from orchestrate import orchestrate
result = orchestrate(
context=open("report.md").read(),
task="Compare the two proposed architectures, extract cost figures, and recommend one",
verbose=True,
)
print(result["result"])
pip install httpx if not)ANTHROPIC_API_KEY env var or /mnt/project/claude.envThe orchestrator reads the full context once and produces a JSON plan:
{
"subtasks": [
{
"task": "Compare architecture A vs B on scalability, cost, and complexity",
"skill": "analytical_comparison",
"context_pointers": {"sections": ["Architecture A", "Architecture B"]}
},
{
"task": "What is the project budget?",
"skill": "self",
"answer": "$2.4M"
}
]
}
Key behaviors:
"self" for direct lookups (numbers, names, dates) — no subagent spawnedNo LLM calls. Extracts context subsets using section headers or line ranges, pairs each with the assigned skill's system prompt, builds prompt dicts.
Delegated subtasks run in parallel via concurrent.futures.ThreadPoolExecutor.
Each subagent receives only its context slice and skill-specific instructions.
Collects all results (self-answered + subagent), synthesizes into a coherent response that reads as if a single expert wrote it.
Eight analytical skills plus one pipeline skill:
| Skill | Purpose |
|---|---|
analytical_comparison | Compare items along dimensions with trade-offs |
fact_extraction | Extract facts with source attribution |
structured_synthesis | Combine multiple sources into narrative |
causal_reasoning | Identify cause-effect chains |
critique | Evaluate arguments for soundness |
classification | Categorize items with rationale |
summarization | Produce concise summaries |
gap_analysis | Identify missing information |
remember | Persist key findings to long-term memory via remembering skill (pipeline-only, runs post-synthesis) |
orchestrate(context, task, **kwargs) -> dictReturns:
{
"result": "Final synthesized response",
"plan": {...},
"subtask_count": 4,
"self_answered": 1,
"delegated": 3,
"memory_ids": ["abc123"], # populated when remember subtasks ran
}
Parameters:
context (str): Full context to processtask (str): What to accomplishmodel (str): Claude model, default claude-sonnet-5-5 ($2/$10 per MTok). Sampling parameters (temperature) are only sent to legacy 4.x/3.x ids; Sonnet 5.5, Haiku 5.5 and Opus 5.5 reject them, so on those models the internal temperatures (0.2-0.3) are ignoredmax_tokens (int): Per-subagent token limit, default 2048synthesis_max_tokens (int): Synthesis token limit, default 4096max_workers (int): Parallel subagent limit, default 5skills (dict): Custom skill library (merged with built-in)persist (bool): Auto-append a remember subtask to store findings, default Falseverbose (bool): Print progress to stderrpython orchestrate.py \
--context-file report.md \
--task "Analyze this report" \
--verbose --json
from skill_library import SKILLS
custom_skills = {
**SKILLS,
"code_review": {
"description": "Review code for bugs, style, and security",
"system_prompt": "You are a code review specialist...",
"output_hint": "issues_list with severity and fix suggestions",
}
}
result = orchestrate(context=code, task="Review this PR", skills=custom_skills)
rememberremember is a pipeline skill — it executes in Phase 4 after synthesis, not as a
parallel subagent. It uses LLM distillation to extract the key insight from the synthesized
result, then writes it to long-term memory via the remembering skill.
1. persist=True (automatic)
result = orchestrate(
context=open("report.md").read(),
task="Compare approaches A and B",
persist=True, # auto-injects a remember subtask
verbose=True,
)
print(result["memory_ids"]) # ['abc123']
2. Planner-emitted (explicit)
The orchestrator planner can emit remember as a subtask when the task description
implies storage:
{
"task": "Store the key findings from this analysis",
"skill": "remember",
"context_pointers": {}
}
remembering skill must be installed (/mnt/skills/user/remembering or
/home/user/claude-skills/remembering)memory_ids returns []See references/architecture.md for design decisions, token efficiency analysis, and comparison with SkillOrchestra (arXiv 2602.19672).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
orchestration, subagent, parallel-execution, context-routing, httpx
npx claudepluginhub oaustegard/claude-skills --plugin skill-development9 skills in this plugin
/crafting-instructionsChooses the right FORMAT for instructions on Claude.ai — project instructions, a skill, or a standalone prompt — and gives the format-specific structure once chosen. Use when the question is which container an instruction belongs in ("should this be a skill or project instructions", "where do I put this", "how do I set up this project", "is this worth a skill"), or when someone has instructions and does not know how to package them. For the writing principles that apply inside any of the three formats, use writing-instructions. For building, testing and packaging a complete skill directory, use creating-skill./creating-skillBuilds a new agent skill or revises one (SKILL.md, scripts and references), validated and packaged as a zip. Use for "create a skill for X", "turn this into a reusable skill", "why does my skill not trigger", or "review this SKILL.md"./finding-skillsDiscover and load skills on demand from /mnt/skills/user/. Use when you need a capability but don't know which skill provides it, when the boot-emitted skill list is names-only and you need a full description, or when you want to list the catalog. Verbs are list (names only), search (rank by name/description match against a query), and show (emit the full SKILL.md for a named skill)./inspecting-skillsDiscovers and indexes Python code in skills, enabling cross-skill imports. Use when importing functions from other skills or analyzing skill codebases./installing-skillsInstall skills from github.com/oaustegard/claude-skills into /mnt/skills/user. Use when user mentions "install skills", "load skills", "add skills", "update skills", "refresh skills", or references a skill not currently installed./optimizing-skillsDisciplined, validation-gated revision of an EXISTING skill so each edit is a measured improvement rather than a guess. Use when editing, revising, or tuning a skill that already exists and there is evidence it underperforms (observed failures, drift, complaints) — invoke by name, or have versioning-skills / creating-skill defer to it before applying edits. Not for authoring a brand-new skill from scratch (use creating-skill) or one-off prose.Other plugins' skills for the same job