agentleFS
romermaromerma/mstack/skills/orchestrate/SKILL.md

orchestrate

Skill1 starsChanged 13 days agoMITView on GitHub

Run a program of work across many changes, tracks and sessions, with isolated worktrees, briefs a stranger could execute, and continuous landing. Use only for multi-session programs; single-session work should use the feature route instead.

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 4 projects that use this

  • kjnezSkill

    ticket

    Work on a JIRA/Linear ticket end-to-end: read ticket details, explore codebase, create a branch, implement with TDD, run quality checks, update ticket status, and create a PR. Use when the user provides a ticket ID to implement. Triggers on requests like "/ticket PROJ-123", "work on this ticket", "implement PROJ-123".

    Also in 4 projects that use this

  • ranchengSkill

    codex-imagegen

    Generate or edit images by invoking OpenAI's gpt-image-2 ("image 2") through headless `codex exec`. Trigger when the user asks to create, generate, draw, design, or edit an image, logo, icon, illustration, banner, sprite sheet, placeholder art, or any visual asset — and they have not specified a different generator (Stable Diffusion, Midjourney, DALL·E API directly, etc.). Also use when the user wants to transform or extend a reference image they have provided locally.

    Also in 4 projects that use this

The file

Files
SKILL.md

Orchestrate

Check the threshold first. Work one agent could finish inside a single session is not a program. This machinery costs real throughput: in one measured head-to-head, the equivalent ceremony turned a twelve-unit job into one landed unit while a plain agent landed all twelve. Below that line, use the feature route.

Choosing this is a decision worth recording, including why the simpler route was rejected:

mstack decide --phase frame --decision "run as a program" --why "..." --evidence "..." --result open

The full procedure is in the orchestrate playbook. Three things carry most of the weight.

Isolation is what makes parallelism legal

mstack worktree new <slug> per concurrent unit. Each worktree carries its own .mstack/, which is what makes "one active item" mean one active item here rather than one across the whole machine. Record the base SHA in that worktree's current.md: "branched from main" is not a checkpoint, because main moved.

The brief is the product

A vague brief fails quietly, because a worker cannot ask you a question. Nine fields: goal, scope, context, acceptance, verify, timebox, forbidden, report, standing constraints. Missing fields are a reason not to launch it yet.

Size the brief to the unit. A four-kilobyte scaffold around a two-line edit costs more to write and obey than the edit.

Workers cannot see each other. Anything a unit depends on gets pasted into its context in full, not referenced as "see the other agent's report".

Landing is continuous, never a final phase

Integration starts with the first verified unit. Walk up from the lowest unmerged change and stop at the first without a passing verdict: a verified change sitting above an unverified one is not landable, because merging it pulls the gap in underneath it.

Concurrent subagents cap at twenty per session, and CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS moves that number. Past the cap, spawning fails — it does not queue — so mstack fanout plan refuses first, against the session's configured limit. It bounds one fan-out, not a session: two plans of fifteen both pass, and keeping the session total under the cap is yours to do. Fan out to what the work needs, not to what the limit allows, and say what you dropped if you bound the fan-out: silent truncation reads as full coverage.

mstack fanout check afterwards names the workers that did not report. Named, not counted — "two of three returned" sends you looking, "security did not report" tells you what to re-run.

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.