orchestrate
Skill9 starsChanged 15 days agoMITView on GitHub
Executes a plan or task list as the coordinator. Workers implement, reviewers check batches of milestones, and comment-editor and docs-editor clean up before the final review pass.
- Commits and pushes
186 other projects use a version of this.
Adopted by
Most recently taken up by
- krzysztof-wojtowicz/coffer-demotheir own version, first seen Nov 29, 2026
- 0verhead/skillstheir own version, first seen Nov 29, 2026
- romerma/mstacktheir own version, first seen Nov 29, 2026
- swarm-routing/skillstheir own version, first seen Nov 29, 2026
- hams-ollo/zen-agent-skillstheir own version, first seen Nov 29, 2026
- zen-solutions-dev/zen-agent-skillstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use define-requirements, orchestrate-plan and 9 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-erSkilldefine-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
EternallLightSkillorchestrate-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-erSkillrecord-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
PinkneyJiangSkillimprove-architecture
扫描代码库中的架构摩擦点,识别浅模块并挖掘深模块演进机会。生成可视化交互式 HTML 诊断报告,并在用户确认后闭环实施深度重构。
Also in 6 projects that use this
koaeraserSkillhouse-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
JaxsbrSkillspec-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
Other versions186 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 186
- Significant-Gravitas/AutoGPT★ 188ksame name
- expo/exact★ 5.3ksame name
- rohitg00/pro-workflow★ 2.9ksame name
- apmantza/pi-lens★ 545same name
- boshu2/agentops★ 464same name
- quantumaikr/quant.cpp★ 403same name
- Noizefield/audio-plugin-coder★ 378same name
- kagenti/kagenti★ 304same name
- varun29ankuS/shodh-memory★ 294same name
- provencher/codex-skills★ 271same name
176 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
28 rules. 0 are common, 15 are distinctive, and 13 are very specific to this project.
0
Common
Most of the 165 edited versions we read keep these.
15
Distinctive
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Read ${CLAUDE_SKILL_DIR}/../common.md and follow its sections ## Ask the user, ## Reviewer model, ## Find the work, ## GitHub issue …
- Distinctive: line 31
Branch: run it in each repo. Save each Resolves issue on one repo's branch only: the repo the issue belongs to, else the one with the most …
- Distinctive: line 32
Execute: commit a milestone in each repo it changed, staging only its files there.
- Distinctive: line 35
Agent checks: run each check with every repo on its branch, in the repos its milestone names.
- Very specific: line 37
Finish the plan: when the plan is not inside a repo, ls-files fails with not a git repository.
- Very specific: line 44
When the work is research, stop and name /graft:plan <name> as the next step.
- Distinctive: line 53
When issues were supplied, before Execute:
- Very specific: line 64
When there are issues (the plan's ## References issue lines and those settled in ## Find the work), save them on the branch.
- Very specific: line 74
When orchestrate.agentDoesManualChecks is true, sort each milestone's Manual checks before the first worker starts, by the rule in that …
- Very specific: line 76
Use graft:worker agents on Opus for all implementation.
- Distinctive: line 77
When a milestone's verification is split into Automated and Manual, its brief and its commit use only the Automated checks.
- Distinctive: line 78
Run workers in parallel only when their work is independent and touches different files.
- Distinctive: line 84
Commit each milestone once its worker reports it verified, before any review, in the repo's commit style, staging only that milestone's …
- Distinctive: line 85
After each commit, decide whether to review now or go on.
- Very specific: line 93
Run a graft:reviewer agent on every pass, and a graft:adversarial-reviewer agent in parallel when the range holds a risky change, each on …
- Distinctive: line 99
Check their reports, then commit.
- Distinctive: line 103
Run the repo's checks (tests, typecheck, lint, build, whichever exist) on the whole branch.
- Very specific: line 108
When the fix is risky by ### Commit and review's test, run a pass as ### Each pass describes, from the commit before this fix to HEAD, with …
- Distinctive: line 110
After the checks, git status --porcelain is empty.
- Very specific: line 114
Run this step when ## Execute sorted any check as agent-runnable.
- Distinctive: line 120
Run this step again before pushing or going on after any later fix commit, such as a pause fix or a fix pushed to the PR's branch.
- Very specific: line 130
When the plan or the user asks for a PR, or pr.mode is auto, raise it after Screenshots, not during Execute.
- Distinctive: line 144
After any fix commit is pushed to the PR's branch, follow common.md's Stale images.
- Distinctive: line 146
If no PR is raised, say why in Report.
- Distinctive: line 150
Ask the user when something is ambiguous, needs more than a straightforward decision, or could materially change functionality or the …
- Very specific: line 154
Run this step only when the work is a plan file with the Graft footer and every milestone is done, including the PR when one was asked for …
- Very specific: line 156
Run git -C <plan's directory> ls-files --error-unmatch <plan's absolute path>.
- Very specific: line 176
When ## Finish the plan ran, where the plan went: left in place, archived to <path>, deleted, or not moved or deleted and why.
“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.
Files
You are the coordinator. Agents do the work. You order it, write the briefs, judge the results, and commit.
Read ${CLAUDE_SKILL_DIR}/../common.md and follow its sections ## Ask the user, ## Reviewer model, ## Find the work, ## GitHub issue reference handling, ## My Graft ignore probe, ## Workspace, ## Screenshots and ## Settings.
Arguments: $ARGUMENTS
Start
The arguments may also ask for a PR, such as open a pr or raise a ready pr that resolves #42. The whole request, including any guidance for the PR and any issue it names, is for ## Raise a PR, not the work.
Find the root with git rev-parse --show-toplevel, then get settings. When it exits non-zero, follow common.md's ## Workspace; in workspace mode, ## Workspace mode applies.
node ${CLAUDE_SKILL_DIR}/../settings.ts <root>Workspace mode
Applies in common.md's workspace mode. This section changes each section it names; everything else applies as written, and wherever another section says the repo, the branch or the PR, it means each repo's. After compaction, read this section again.
- Repos: those the plan's
## Reposlists, plus any this run adds. With no## Repos(a task list), ask the user which repos under the root the work covers. Stop when there are none. Before Branch, add a listed repo that is missing with its recorded command. A milestone that needs a repo not yet listed adds it as common.md's## Workspacesays, then Branch runs in it. - Settings: get settings for each repo too (
node ${CLAUDE_SKILL_DIR}/../settings.ts <repo>).common.reviewerModelandpr.statecome from the repo; the rest from the root. - Branch: run it in each repo. Save each Resolves issue on one repo's branch only: the repo the issue belongs to, else the one with the most of the work, asking when unclear. Save it as Related on the others.
- Execute: commit a milestone in each repo it changed, staging only its files there.
- Each pass and Clean up: ranges are per repo. Record each repo's HEAD when Execute starts, or when the repo is added; a repo's first range starts there. A brief lists each repo's absolute path with its range.
- Final checks: run each repo's checks in that repo. The start-commit rerun puts every repo at its start commit (a temporary
git worktreeper repo, laid out as under the root), so a failure in an unchanged repo caused by another repo's change is the run's.git status --porcelainis empty in each repo; the root's own files are not checked. - Agent checks: run each check with every repo on its branch, in the repos its milestone names. Flag a check still failing only on the PRs of the repos its milestone changed.
git status --porcelainis empty in each repo, as in Final checks. - Raise a PR: one worker per repo with commits on its branch, using that repo's
pr.state. Each brief's Context, not its Arguments, names the repo's absolute directory. When there are several, raise them all (pushed-only PRs included), then for each PR read its body withgh pr view --json body, put a line linking the other PRs just before its Graft line, replacing any such line already there, keep the rest of the body, and set it withgh pr edit --body. - Finish the plan: when the plan is not inside a repo,
ls-filesfails withnot a git repository; treat that as untracked. - Report: branches, commits, ranges and checks per repo.
Find the work
The work in this conversation is a plan or task list. Ask when there is none, or more than one.
When the work is research, stop and name /graft:plan <name> as the next step. Name /graft:plan <path> instead when <root>/.claude/graft/plans/<name>.md or <root>/.claude/plans/<name>.md exists, or when the report is outside <root>/.claude/graft/research/.
When the work is a plan file (including a plan in this conversation written to or read from one), check for the Graft footer: a Plan by Graft. line after a thematic break, outside any code fence. It need not be the last line. Skip the check for a plan without it. Otherwise warn when either holds:
- Its
statusis notfinalised. - Its
## Open questionssection lists questions.
Say which holds, list any open questions, and ask whether to continue or stop. When only the status holds, ask it (routine), recommending continue. On stop, name /graft:plan <name> as the next step (/graft:plan <path> for a plan outside .claude/graft/plans/). Never edit the plan.
When issues were supplied, before Execute:
- With no plan, confirm with the user (routine) the task you take from the issues.
- For each issue the plan's
## Referencesdoes not list, ask the user (routine) whether it is Resolves or Related, recommending Resolves when the work covers all of the issue and Related otherwise.
Branch
Find the default branch with gh repo view --json defaultBranchRef --jq .defaultBranchRef.name. If gh is unavailable or fails, use git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'.
On the default branch, create a feature branch. On any other branch, stay on it.
When there are issues (the plan's ## References issue lines and those settled in ## Find the work), save them on the branch.
Check the commit style once: read the last 10 commit subjects on the default branch (git log -10 --format=%s <default branch>). If most start with a conventional-commit prefix (fix(scope): …, feat(scope): …, chore: …), every commit uses one, with a type and scope the repo already uses. Otherwise write a plain imperative subject with no prefix.
Before shots
When pr.mode is auto, once ## Branch has run and before the first worker starts, start a run as common.md's Run state says, then decide whether to run common.md's before-shot step: the plan's ## Screenshots section decides where it says; otherwise run it when the work fixes a UI. Run it for the repos you expect the work to change visibly, with the per-repo steps its Workspace mode paragraph names. A repo added later gets no before shots. Write to the run's subfolder whether the before-shot step ran.
Execute
- When
orchestrate.agentDoesManualChecksistrue, sort each milestone's Manual checks before the first worker starts, by the rule in that setting's row: agent-runnable checks run in## Agent checks, and the rest are person-only. From here on, a milestone's Manual checks are its person-only ones. - When the plan has Manual checks, settle the Manual check mode before the first worker starts, from the first source that gives one:
orchestrate.manualChecks(pauseordefer), a## Decisionsentry for the mode, or a question to the user: Pause after each milestone with Manual checks, or Defer them to Report. A plan without Manual checks has no mode. - Use
graft:workeragents on Opus for all implementation. Each brief is self-contained: the goal, the files, the decisions already made, and how to verify. - When a milestone's verification is split into Automated and Manual, its brief and its commit use only the Automated checks. Verification without the split is used as written.
- Run workers in parallel only when their work is independent and touches different files. Each parallel brief limits its checks to the worker's own files (narrow tests, lint on those files) and leaves whole-project checks (typecheck, build) to Final checks.
Commit and review
A risky change is one that changes a contract, a schema, stored data, security, or existing code with callers outside the plan. A later milestone using code an earlier one added does not make that code risky by itself. The same test decides when to review and which reviewers run.
- Commit each milestone once its worker reports it verified, before any review, in the repo's commit style, staging only that milestone's files.
- After each commit, decide whether to review now or go on. Go on while the unreviewed commits are small. Review when the unreviewed change is substantial, or before starting a milestone that builds on an unreviewed risky change.
- Once
## Clean uphas run, review the commits not yet reviewed, including any clean-up commit, in a final pass, so every milestone commit, every earlier pass's fixes and any clean-up commit are reviewed once. When there is a clean-up commit, the final pass's brief names its intent (comment and doc edits that remove or reword without changing behaviour or required content) and gives reviewers its own diff, so they can check what it removed. On completion, run a review and an adversarial review over the changes, unless every part has already had both. - A pass and its fixes finish before the next milestone starts, and no pass starts while any worker is running.
- In pause mode, once a milestone with Manual checks is committed and any pass you run over it now has finished, ask with
AskUserQuestion, listing its Manual checks: Checks passed, A check failed, or Stop. For the last milestone that changes files, run a pass over the commits not yet reviewed before this pause;## Clean upand the final pass follow it. Send a failed check, with what the user said about it, to a worker, commit the fix separately in the repo's commit style, then ask again. When the fix is risky by the test above, run a pass over it as### Each passdescribes; otherwise check it yourself. When Final checks have already run, run them again before pushing or going on. Stop goes to Report, with the remaining milestones listed as undone. A milestone with Manual checks never runs in parallel with a later one, and no later milestone starts while its pause is pending.
Each pass
- Review from the commit the previous pass ended at (for the first pass, the commit Execute started from) to HEAD. The intent is the milestones the range covers and the findings each fix commit addresses. Fix commits from the final pass get no further pass; check them yourself.
- Run a
graft:revieweragent on every pass, and agraft:adversarial-revieweragent in parallel when the range holds a risky change, each on the reviewer model. Give every reviewer the same brief: the range and what it is meant to do. - Wait for every reviewer in the pass to report, then weigh the reports, decide which findings to act on, and send fixes to a worker. When both reviewers ran, a finding both raise carries more weight; a finding from either still needs its failure path to hold up. Commit fixes separately, in the repo's commit style.
Clean up
- Once every milestone except a PR milestone is committed and no worker or pause is pending, run a
graft:comment-editoragent and agraft:docs-editoragent on the branch's changes, in parallel. - Check their reports, then commit.
Final checks
- Run the repo's checks (tests, typecheck, lint, build, whichever exist) on the whole branch. When the repo has none, note it in Report.
- Report or ask (routine) about a check the environment cannot run (no database, credentials or network), recommending report. Never send it to a worker to fix.
- For every other failure, rerun the failing check at the commit Execute started from, in a temporary
git worktreeset up like the main tree (dependencies installed, same setup), then remove the worktree. The cause predates this run only when that rerun fails the same way (same test, same error). Otherwise, including when the worktree cannot run the check, the cause is the branch's. - When the cause predates this run, look for an open PR or a newer default-branch commit that fixes it. When there is one, ask the user whether to rely on it or fix it here. To rely on it, record the failure and the PR or commit in Report and go on.
- Send every failure you do not rely on an upstream fix for to a worker, and commit the fix in the repo's commit style.
- When the fix is risky by
### Commit and review's test, run a pass as### Each passdescribes, from the commit before this fix to HEAD, with the failing check as its intent; otherwise check the fix yourself. That pass's fixes get no further pass. - Then run the checks again. Ask the user about any fixed failure that still fails.
- After the checks,
git status --porcelainis empty. Report or ask (routine) about anything it lists, recommending report and leaving the files as they are.
Agent checks
Run this step when ## Execute sorted any check as agent-runnable. A PR milestone's agent-runnable checks run once ## Raise a PR has raised the PR; the rest run here.
- Send one
graft:workerwith every agent-runnable check and its milestone. Its brief: run each check on the branch as committed and report pass or fail with what it observed; report any check it cannot run as person-only; stop every process it starts; leave the tree as it found it; never commit. - Send each failing check, with what the worker observed, to a fix worker, and commit the fix in the repo's commit style. Run a pass over the fixes as
### Each passdescribes, from the commit before the first fix to HEAD, with the failing checks as its intent. That pass's fixes get no further pass. Then run## Final checksand every agent check again. - Give each check up to three fix attempts. When it still fails, ask the user: Go on with it failing, or Stop. Stop goes to Report.
- A check the worker reports as person-only goes to Report as deferred, whatever the mode.
- Run this step again before pushing or going on after any later fix commit, such as a pause fix or a fix pushed to the PR's branch.
- Once the PR is raised, push this step's fix commits to the PR's branch. When the checks still failing then differ from those the PR body flags, edit the body with
gh pr edit --bodyto flag exactly those. - After the checks,
git status --porcelainis empty. Report or ask (routine) about anything it lists, recommending report and leaving the files as they are.
Screenshots
When pr.mode is auto, settle which repos ## Raise a PR sends a pr worker for, then run common.md's after-shot step once, covering those repos, with the per-repo steps its Workspace mode paragraph names, in the run current names. Read from that subfolder whether the before-shot step ran; when it did not, the step has no before shots. Clean up the images when its Clean-up says.
Raise a PR
When the plan or the user asks for a PR, or pr.mode is auto, raise it after Screenshots, not during Execute. In auto mode:
- Raise none when the user says not to raise a PR.
- Give a repo with no GitHub remote (
gh repo view --json urlreports that none of its remotes point to a GitHub host) no PR and a Report line instead of a question. Any other failure of it goes to common.md's## Command failures. - When no PR was asked for and
gh pr viewshows a PR for the branch, decide whether to only push the new commits withgit push, leaving the PR's title, body and images as they are, or to send the pr worker as below. Push only when no agent check is still failing and the body names each issue from this run; ask the user when it is unclear. After a push, put the PR in the state the Arguments below name, if any, withgh pr readyorgh pr ready --undo.
Send a graft:worker to read ${CLAUDE_SKILL_DIR}/../pr/SKILL.md and follow it, with its common.md at ${CLAUDE_SKILL_DIR}/../common.md.
- Arguments: the plan's PR request and the user's. The user's wins where they differ. With approved screenshots, add common.md's Attach request. On an attach failure, follow common.md's Attach failure.
- Context: the plan file or the work you were given, the motivation from this conversation, each issue from this run with its Resolves or Related split, the effective
pr.stateas the state to use when no argument names one, and each agent check still failing, for the PR body to flag. The brief marks these as orchestrate's context, not arguments. - Questions: the worker answers routine questions as common.md's
## Ask the userdescribes. Where it would ask the user, it stops and reports the question. Ask the user, then send the worker again.
In pause mode, a PR milestone's Manual checks pause as ### Commit and review describes once the PR is raised, before ## Finish the plan. Fix commits are pushed to the PR's branch.
After any fix commit is pushed to the PR's branch, follow common.md's Stale images.
If no PR is raised, say why in Report.
Ask, do not guess
Ask the user when something is ambiguous, needs more than a straightforward decision, or could materially change functionality or the intended outcome.
Finish the plan
Run this step only when the work is a plan file with the Graft footer and every milestone is done, including the PR when one was asked for and each PR ## Raise a PR sends a pr worker for in auto mode.
Run git -C <plan's directory> ls-files --error-unmatch <plan's absolute path>. Go on only when it fails with did not match any file(s) known to git and the plan is not in a subfolder of ~/.my-graft/.claude/graft/plans/ or ~/.my-graft/.claude/plans/; otherwise leave the plan in place.
Follow orchestrate.finishedPlan:
archive: move the plan to~/.my-graft/.claude/graft/plans/<repo>/<plan>.md, creating the folder. Follow## My Graft ignore probe, falling back to~/.my-graft/.claude/plans/<repo>/<plan>.md.<repo>follows common.md's Repo name, with the directory## Startfound as the root.<plan>is the plan's file name without.md. When the target exists, use<plan>-2.md,<plan>-3.mdand so on; never overwrite.delete: delete the plan file.- Otherwise, leave the plan in place.
Report
- The branch, its commits, and the PR URL when one was raised.
- The commit ranges reviewed, and which reviewers ran on each.
- Each final check command and its result, quoting the output of any failure.
- Review findings acted on, and those dismissed with the reason.
- In defer mode, each milestone's Manual checks. In pause mode, each pause's result.
- Apart from those, each agent-run check with its result and the commit it ran on, and each check the agent-checks worker reported as person-only.
- Items the cleanup agents flagged for a decision.
- Existing branch description lines this run kept but did not decide.
- Each screenshot attached, with its PR and final path.
- The commit the before shots show, per repo, and each image dropped.
- When
## Finish the planran, where the plan went: left in place, archived to<path>, deleted, or not moved or deleted and why. - Anything left undone.
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
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.

