Skip to content
Skill Authoring
Skill

/orchestrating-skills

Skill-aware orchestration with context routing. Decomposes complex tasks into skill-typed subtasks, extracts targeted context subsets, executes subagents in parallel, and synthesizes results. Self-answers trivial lookups inline. No SDK dependency — uses raw HTTP via httpx. Use

BOOST
From plugin
claude-skills
15498 skills1 agent
Install
$ npx -y skills add oaustegard/claude-skills --skill orchestrating-skills --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/orchestrating-skills

Context preview

The summary Claude sees to decide when to auto-load this skill.

Skill-aware orchestration with context routing. Decomposes complex tasks into skill-typed subtasks, extracts targeted context subsets, executes subagents in parallel, and synthesizes results. Self-answers trivial lookups inline. No SDK dependency — uses raw HTTP via httpx. Use

SKILL.md

orchestrating-skills.SKILL.md
name: orchestrating-skills
description: >-
  Skill-aware orchestration with context routing. Decomposes complex tasks into
  skill-typed subtasks, extracts targeted context subsets, executes subagents in
  parallel, and synthesizes results. Self-answers trivial lookups inline. No SDK
  dependency — uses raw HTTP via httpx. Use when tasks require multiple analytical
  perspectives, when context is large and subtasks only need portions, or when
  orchestrating-chat-agents spawns too many redundant subagents.
metadata:
  version: 0.4.1
  depends_on: []

SURFACE ROUTING — read first

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:

  • **In Claude Code (incl. CCotw): use the native runtime, NOT this skill.** If you

can invoke `/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).

  • **In claude.ai chat or the bare API (no workflow runtime): use this skill.**

Parallel API instances over httpx is the only fan-out path here. Proceed below.

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.

Skill-Aware Orchestration

Orchestrate complex multi-step tasks through a four-phase pipeline that eliminates redundant context processing and reflexive subagent spawning.

When to Use

  • Task requires **multiple analytical perspectives** (e.g., compare + critique + synthesize)
  • Context is large and **subtasks only need portions** of it
  • Simple lookups should be **self-answered** without spawning subagents

When NOT to Use

  • Single-skill tasks (just use the skill directly)
  • Tasks requiring tool use or code execution (this is text-analysis orchestration)
  • Real-time streaming requirements (this is batch-oriented)

Quick Start

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"])

Dependencies

  • **httpx** (usually pre-installed; `pip install httpx` if not)
  • **No Anthropic SDK required**
  • API key: reads `ANTHROPIC_API_KEY` env var or `/mnt/project/claude.env`

Four-Phase Pipeline

Phase 1: Planning (LLM)

The 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:

  • Assigns one skill per subtask from the built-in library
  • Uses `"self"` for direct lookups (numbers, names, dates) — no subagent spawned
  • Self-answering is an LLM judgment call, not a sentence-count heuristic
  • Context pointers use **section headers** (structural, edit-resilient)

Phase 2: Assembly (Deterministic Code)

No LLM calls. Extracts context subsets using section headers or line ranges, pairs each with the assigned skill's system prompt, builds prompt dicts.

Phase 3: Execution (Parallel LLM)

Delegated subtasks run in parallel via `concurrent.futures.ThreadPoolExecutor`. Each subagent receives **only its context slice** and **skill-specific instructions**.

Phase 4: Synthesis (LLM)

Collects all results (self-answered + subagent), synthesizes into a coherent response that reads as if a single expert wrote it.

Built-in Skill Library

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) |

API Reference

`orchestrate(context, task, **kwargs) -> dict`

Returns:

{
    "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 process
  • `task` (str): What to accomplish
  • `model` (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 ignored
  • `max_tokens` (int): Per-subagent token limit, default 2048
  • `synthesis_max_tokens` (int): Synthesis token limit, default 4096
  • `max_workers` (int): Parallel subagent limit, default 5
  • `skills` (dict): Custom skill library (merged with built-in)
  • `persist` (bool): Auto-append a `remember` subtask to store findings, default False
  • `verbose` (bool): Print progress to stderr

CLI

python orchestrate.py \
    --context-file report.md \
    --task "Analyze this report" \
    --verbose --json

Extending the Skill Library

from skill_lib
Read more
Ships withclaude-skills

A collection of Claude skills distributed as a Claude Code plugin marketplace. Skills are primarily designed for the Claude.ai PaaS skill compute environment; mileage will vary if used as Claude Code Agent Skills.

Get the whole plugin

Other skills on claude-skills.