/compound-engineering-orchestrator:orch-next [path to a docs/plans/<project-slug>/ task-graph dir. Blank to discover the project interactively]from compound-engineering-orchestrator
Read an orch-decompose task-graph, compute the ready frontier, and recommend the single highest-leverage next move — with a one-line rationale and the exact command — then fire it inline. Manual-invoke only. Use when you have a committed task-graph and want to be told what to do next instead of scanning a list. Builds on the compound-engineering plugin (ce-plan / ce-brainstorm / ce-work / lfg) and the sibling orch-decompose skill.
Ships in compound-engineering-orchestrator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
orch-next sits on top of an orch-decompose task-graph. Where orch-decompose builds and audits the graph, orch-next reads it and answers one question: what should I do next? It computes the dependency ready frontier (every node whose dependencies are all done and that is not started, blocked, or in progress), ranks it, and recommends a single highest-leverage move — with a one-line rationale and the exact command — then fires that command inline. The difference between a dashboard and an orchestrator is recommending one move, not handing over a list to triage.
It holds no state: on every call it reconstructs the frontier from the committed graph plus live git, so a fresh or compacted session produces the same recommendation.
Requires the compound-engineering plugin (for the
ce-plan/ce-brainstorm/ce-work/lfghandoffs) and the siblingorch-decomposeskill (for the bundledgraph_compute.pyandreorient.py), plus Claude Code for the bundled scripts. Off-platform invocations report unavailability explicitly rather than degrading. Manual-invoke only (disable-model-invocation: true).
Resolve the project directory (docs/plans/<project-slug>/ — the dir holding index.md):
docs/plans/*/index.md. If exactly one project exists, use it. If several, ask the user which using the platform's blocking question tool (AskUserQuestion in Claude Code — ToolSearch select:AskUserQuestion first if needed; request_user_input in Codex; ask_user in Gemini/Pi).orch-decompose first and stop.Run the three bundled scripts and pipe them together. frontier.py lives in this skill; graph_compute.py and reorient.py live in the sibling orch-decompose skill, resolved relative to this skill's directory. Use the guard so it resolves on Claude Code and degrades visibly elsewhere (<project-dir> is the dir from Phase 1):
ORCH="${CLAUDE_SKILL_DIR}/../orch-decompose/scripts"
if [ -n "${CLAUDE_SKILL_DIR}" ] && [ -f "${CLAUDE_SKILL_DIR}/scripts/frontier.py" ] \
&& [ -f "${ORCH}/graph_compute.py" ] && [ -f "${ORCH}/reorient.py" ]; then
python3 "${ORCH}/graph_compute.py" <project-dir> > /tmp/orch-graph.json
python3 "${ORCH}/reorient.py" <project-dir> > /tmp/orch-status.json
python3 "${CLAUDE_SKILL_DIR}/scripts/frontier.py" \
--graph /tmp/orch-graph.json --status /tmp/orch-status.json
else
echo "orch-next requires Claude Code and the sibling orch-decompose skill: bundled computation is unavailable on this platform."
fi
If the guard's else branch fired, say so plainly and stop — the graph is still hand-inspectable, but the bundled computation did not run.
graph_compute.py exits non-zero when the graph has a correctness finding (e.g. a cycle). If it reports a cycle, surface that finding and stop: there is no well-formed frontier until the cycle is broken (re-run orch-decompose to fix the graph). frontier.py also returns "cycle": true defensively in that case.
frontier.py returns ready (each with slack, critical, unblocks), active, blocked (with blocked_on), and done. Do not recompute these — present and rank only.
Rank the ready set and pick the single best move:
slack first — schedule-critical nodes (slack 0) before nodes with float.unblocks descending — among equally-critical nodes, prefer the one that frees the most downstream work.Present the one top-ranked node with a one-line rationale naming the signal that won it (e.g. "on the critical path, unblocks 2"). Name the runner-up only on a genuine tie. Also show, compactly: the count ready / active / blocked / done, and any active nodes (work already in flight) so the user sees the whole state in one glance without a triage list.
Always render a node as id (title), never a bare ID (the title is the title column in index.md). A human reading "do n7" later has no idea what n7 is; "do n7 (CO canopy data load)" is self-explanatory. Bare IDs are for the scripts' JSON only.
Read the recommended node's stage and model from index.md to form the command (Phase 4).
Staleness check before driving a work node. Compare the node's base_commit (from index.md) against current HEAD. If HEAD has advanced — especially if upstream nodes merged since the plan was authored — warn that the embedded plan may be stale and offer to re-plan (route to ce-plan) instead of driving it directly. A fresh base_commit means no warning.
Offer the move using the platform's blocking question tool (load AskUserQuestion via ToolSearch select:AskUserQuestion first on Claude Code if needed):
nX — <title>) — run the recommended move.Fire the invocation inline; do not just tell the user what to type. For the chosen node, invoke the matching skill via the platform's skill primitive (the Skill tool in Claude Code), passing the node file path:
stage: work → invoke lfg (or ce-work for a non-autonomous run) on the node file.stage: plan → invoke ce-plan on the node file.stage: brainstorm → invoke ce-brainstorm, seeded with the node's brief.After a node is driven and its work merges, re-running orch-next refreshes the frontier from git — the graph is the durable record, so a later session resumes by reading it.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/orch-decomposeDecompose a large project into a committed, diffable task-graph — a markdown index plus one file per node under docs/plans/, each node tagged with its next CE stage (brainstorm/plan/work) and a model tier, embedding a ready plan when a node is settled or a brief otherwise. Manual-invoke only. Use when starting a multi-feature project you want broken into dependency-mapped, individually-drivable tasks instead of one monolithic plan. Builds on the compound-engineering plugin (ce-plan / ce-brainstorm / ce-work / lfg)./orch-fanoutExecute a task-graph's ready work in parallel: sequence the collision-free batches into runtime-safe waves, show a visible preview, and drive each wave's nodes through /lfg in worktree-isolated parallel runs, merging in dependency order and checkpointing recovery state at every wave boundary. Runtime-exclusive nodes run as solo waves. Manual-invoke only. Use when a committed task-graph has multiple ready nodes you want shipped as parallel PRs. Builds on the compound-engineering plugin (ce-work / lfg) and the sibling orch-decompose, orch-next, and recovery-manifest scripts./orch-ripenMature a task-graph's plan-stage nodes into work-ready nodes in parallel planning waves: compute the planning frontier (nodes whose upstream DECISIONS are settled, not whose code has merged), fan ce-plan over each wave in worktree-isolated runs, gate every stage-flip on human approval, write the approved plans back into the graph, re-audit, and repeat until the frontier is exhausted. Closes the gap between orch-decompose (which leaves a plan-heavy graph) and orch-fanout (which only executes work-stage nodes). Manual-invoke only. Use when a committed task-graph has plan-stage nodes you want ripened into fan-out-ready work. Builds on the compound-engineering plugin (ce-plan / ce-brainstorm) and the sibling orch-decompose, orch-next, and orch-fanout scripts.npx claudepluginhub pjhoberman/compound-engineering-orchestrator --plugin compound-engineering-orchestrator