agentleFS
ktrzktrz/skills/skills/workflow/orchestrate/SKILL.md

orchestrate

Skill1 starsChanged 7 months agoMITView on GitHub

Delegation-heavy execution mode, invoked only via the /orchestrate slash command: decompose, push work to child agents by model tier in the current harness or another one (claude, codex, opencode, cursor-agent, agy), parent keeps judgment only.

186 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use define-requirements, orchestrate-plan and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • sson0-erSkill

    define-requirements

    Work with the user, one question at a time, to complete the requirements document (docs/claudex/<slug>/01-requirements.md). Run by the orchestrator (parent). Stays out of design and implementation.

    Also in 3 projects that use this

  • EternallLightSkill

    orchestrate-plan

    Use when executing a locked, reviewed PLAN.md by delegating the implementation to visible worker agents in Orca, herdr, or cmux ONE PHASE at a time — splitting the plan into context-window-sized phases, giving every phase a pristine worker context, and (when the plan touches INDEPENDENT repos) running one worker per repo IN PARALLEL. Triggers on "run the plan with a worker", "execute the plan in the other pane", "split the plan into phases and build it with workers", "build the backend and frontend in parallel panes". Not for edits you can finish inline; outside Orca, herdr, or cmux use tgc-skills:orchestrate.

    Also in 3 projects that use this

  • sson0-erSkill

    record-evidence

    How to record external facts (docs, command output, codebase findings) as evidence and design choices as decisions. Used by the researcher, designer and reviewer agents.

    Also in 3 projects that use this

  • PinkneyJiangSkill

    improve-architecture

    扫描代码库中的架构摩擦点,识别浅模块并挖掘深模块演进机会。生成可视化交互式 HTML 诊断报告,并在用户确认后闭环实施深度重构。

    Also in 6 projects that use this

  • koaeraserSkill

    house-style

    Exemplar-based house voice for LaTeX manuscripts: a reader-first standard judged against an approved exemplar, a house-voice rewrite that never changes meaning, numbers, citations, or defined terms, and advisory style metrics (sentence length, paragraph length, first-person plural, semicolons, numbers in prose) printed beside the exemplar's values. The exemplar can be replaced with your own via --ref. Used by write-manuscript, paper-writer, paper-grader, paper-fixer, paper-critic, and research-pipeline; also runs standalone.

    Also in 3 projects that use this

  • JaxsbrSkill

    spec-author

    Defines product specifications and build phases — takes ideas through the pipeline to produce phase specs the build-loop can execute and verify

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 165 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every rule below serves this.

    line 15

“Common” is measured: kept by at least 6 in 10 of the 165 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Orchestrate

Goal: finish the task while keeping the parent's context window healthy. The parent spends its tokens on judgment (decompose, brief, judge, synthesize); children spend theirs on execution, at the cheapest tier that does it well. Every rule below serves this. Where no rule covers a case, choose what keeps the parent lean and the run fast.

  • /orchestrate <task>: run the task under the protocol below.
  • /orchestrate <task> using /<skill> or /orchestrate /<skill> <args>: load that skill through the harness's skill mechanism; it defines the workflow, this skill decides who runs each step.
  • /orchestrate off: confirm deactivation (the hook cleared the flag on submit). An ORCHESTRATE ACTIVE reminder on the next prompt means clearing failed: tell the user (the hook logs the flag path to stderr). Other stop phrasings: ask for /orchestrate off or "stop orchestrating".

Tiers

TierBest forModels, in preference orderEffort
bulkbulk mechanicalhaiku → gpt-6-luna → gemini-4-hydrogenlow
scopedscoped researchsonnet → gpt-6.1-sol → gemini-4-neon → grok-4.7medium
multi-stepmulti-step reasoningopus → gpt-6.1-sol → gemini-4-neon → grok-4.7medium; xhigh only for hardest calls
judgmentjudgment, tastefable → gpt-6-astra → gemini-4-carbon → grok-4.7medium; xhigh only for hardest calls, no high

Routing

  • Precedence (the only statement of it): a request naming a harness, model or effort beats config; config beats these defaults.
  • Harness: the current one (known from the system prompt). Overrides, strongest first: request, matching config route, the tier's pinned harness, config harness.
  • Runner: native (the harness's subagent tool). hc when config sets runner: hc or the child's harness isn't yours.
  • Model: the first tier entry the target harness's alias table supports. A requested model the target can't run → the first installed harness (claude, codex, opencode, cursor-agent, agy) that has it.
  • Effort: the tier word, translated by the harness file. Unsupported level → the nearest supported one, reported.
  • Root session (the user asks for one: "root session", "root Herdr session"): not a child, so no runner, tier, brief or waiter. One named tab in the existing space for that work, made with herdr-app: references/runners/hc.md, Root session. Its own children stay ordinary children.
  • Fallbacks, named in the child's report: no model matches → the harness default model; target harness or hc missing → current harness, native, next tier model it supports.

Load

  • references/config.md, only if <repo>/.claude/orchestrate.yaml or ~/.claude/orchestrate.yaml exists (<repo> = git rev-parse --show-toplevel).
  • Per child: references/runners/<runner>.md and references/harnesses/<target>.md (claude → claude-code.md). references/brief-template.md on the first dispatch.
  • A root session: the Root session section of references/runners/hc.md, and the target's harness file.
  • Claude Code only: the optional sticky-reminder hook, references/hook-install.md. Elsewhere there is no per-prompt reinforcement.

Delegation protocol

  1. Restate and decompose the task into chunks with explicit boundaries.
  2. Parent does only decomposition, briefing, judgment, synthesis. Searching, reading, coding, running commands and drafting go to children. Dispatch mechanics stay with the parent: runner and harness commands, reading this skill, config and reports.
  3. Dispatch by tier: route each child, set model and effort per the runner and harness files, state both in the brief.
  4. Brief fully from the template: context, why, done-looks-like. A child inherits nothing. A child handling external content (web pages, PR comments, third-party text) gets the template's untrusted-content line or goes through an already-defended skill.
  5. Parallelize: independent chunks go out in one turn.
  6. Escalate, don't grind: work above a child's tier comes back for a higher tier. The parent may spawn a higher-tier child for one hard call.
  7. Size children by inputs, not by step (the Goal). Before each dispatch, estimate what the child must take in: docs, skills it loads, code nobody has mapped. A child is one coherent chunk whose inputs fit comfortably in its own context and that returns a short report: a whole module with its tests, a full review pass, a research question.
    • Building in code nobody has mapped → a scout + implementer pair by default. Mapped means checked against the current code in this run (a scout map, or files and line ranges the user gave for this task); a plan's file list is not a map, plans go stale and miss callers. The scout (scoped tier) reads and writes a short map: files, line ranges, conventions, commands. The implementer (multi-step tier) works from that map plus inlined conventions. Not finer: worktree, stack, tests, commit and PR stay with the implementer.
    • Otherwise split only when inputs would overflow a child's context or parts can run in parallel: each extra child costs a brief, a startup, a wait and a report. Chain children only on real dependencies. Take short reports, never file dumps.
    • Briefs inline what the child needs (conventions, decisions, the relevant lines of a long doc) and point to exact line ranges. Never "read <long doc> in full"; name a skill only when the child must run its workflow.
    • A fresh child per chunk; a message to a running child carries only a short correction or new fact (runner file), never a new task. Work that came back partial → re-split the remainder; never resend the same brief.
    • A composed skill's step (e.g. "execute phase N") is sized by the same estimate: often a scout + implementer pair. The skill decides the steps; this skill decides who runs them.
    • The root dispatches in the background by default so the user is never blocked, starting each dependent chunk when its input completes.
    • Children may start their own children (native subagents or hc), in the background or foreground; nesting cap → do the step yourself. Hard rule at every level: never report done or end your session while work you started still runs; wait for all of it first. Children don't load this skill, so the brief carries these rules.

Config protocol rules are appended after rule 7 and may only tighten.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.