orchestrate
Skill0 starsChanged 6 months agoMITView on GitHub
EXPERIMENTAL (45% failure rate) — chains multiple briefs through the full spec -> build -> review -> retro -> merge cycle autonomously
- Deletes or force-pushes
- Commits and pushes
161 other projects use a version of this.
Adopted by
Most recently taken up by
- alexratmanpl/business-agent-skillstheir own version, first seen Nov 8, 2026
- gtonkov/claude-codetheir own version, first seen Nov 8, 2026
- edilsonvilarinho/usage-monitortheir own version, first seen Nov 8, 2026
- nathanonn/agent-skillstheir own version, first seen Nov 8, 2026
- peterpme/skillstheir own version, first seen Nov 8, 2026
- GDriem/agent-skillstheir own version, first seen Nov 8, 2026
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-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 4 projects that use this
kjnezSkillticket
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
xfstudioSkillreverse-engineer
Expert reverse engineer specializing in binary analysis,
Also in 3 projects that use this
Other versions161 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 161
- Significant-Gravitas/AutoGPT★ 188ksame name
- rohitg00/pro-workflow★ 2.9ksame name
- apmantza/pi-lens★ 521same name
- boshu2/agentops★ 453same name
- quantumaikr/quant.cpp★ 403same name
- Noizefield/audio-plugin-coder★ 334same name
- kagenti/kagenti★ 303same name
- varun29ankuS/shodh-memory★ 294same name
- provencher/codex-skills★ 271same name
- first-fluke/fullstack-starter★ 226same name
151 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.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- build-loop-initSkill
- build-loop-iterateSkill
- build-loopSkill
- frontend-designSkill
- handle-pr-reviewSkill
- phase-goal-reviewSkill
- phase-retroSkill
- regression-detectSkill
- review-prSkill
- spec-authorSkill
- test-gateSkill
- verify-gateSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
33 rules. 0 are common, 15 are distinctive, and 18 are very specific to this project.
0
Common
Most of the 144 edited versions we read keep these.
15
Distinctive
This author's own choices. Worth a look.
18
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 25
No force-push: Never git push --force or git reset --hard.
- Very specific: line 26
Must-fix blocks merge: If phase-retro produces findings with data-loss or security-gap class, halt and require operator input.
- Very specific: line 27
Abort file: Before each phase checkpoint, check for docs/plan/.orchestrator-stop in the project.
- Very specific: line 32
Merge method: Always use gh pr merge --squash (squash merge).
- Very specific: line 39
If project is absolute, use directly.
- Distinctive: line 40
If relative, resolve against cwd.
- Very specific: line 49
Write all orchestrator activity to docs/plan/orchestrator-log.yaml in the project.
- Distinctive: line 72
Update the log after each milestone.
- Very specific: line 82
Check for docs/plan/.orchestrator-stop.
- Very specific: line 86
If mode=supervised: run the first brief to completion (including merge), then pause.
- Very specific: line 87
If mode=autonomous: no pauses.
- Very specific: line 93
Read the brief from docs/briefs/<topic>-brief.md.
- Very specific: line 94
Read AGENTS.md, docs/product/PRD.md, existing docs/product/phases/, docs/architecture/ARCHITECTURE.md, docs/plan/progress.yaml.
- Distinctive: line 96
Follow the spec-author pipeline:
- Distinctive: line 98
Step 2 — Draft user stories: Write stories following the project's PRD format, using the brief's content.
- Very specific: line 100
Step 4 — Write phase spec: Write docs/product/phases/<phase-name>.md.
- Distinctive: line 102
Run the readiness checklist.
- Distinctive: line 105
Phase size gate: If stories exceed 5, halt and report.
- Distinctive: line 116
If the build-loop pauses (circuit breaker, max tasks, etc.), halt the orchestrator chain and report status.
- Distinctive: line 120
After build-loop reports review complete:
- Very specific: line 122
Read ${CLAUDE_PLUGIN_ROOT}/skills/phase-retro/SKILL.md and follow it with project=<project-path> and phase=<phase-name>.
- Distinctive: line 135
Before merging, ALL of these must be true:
- Very specific: line 138
All GitHub status checks pass: gh pr checks <pr_number> --watch (wait up to 5 minutes for retro-gate and any CI to re-run after the retro …
- Very specific: line 139
No unresolved PR review conversations: gh api repos/{owner}/{repo}/pulls/<pr_number>/reviews — all reviews must be APPROVED or COMMENTED …
- Very specific: line 140
No merge conflicts: gh pr view <pr_number> --json mergeable -q .mergeable must be MERGEABLE
- Distinctive: line 143
If ANY condition fails:
- Distinctive: line 146
Do NOT attempt to fix merge gate failures automatically.
- Very specific: line 156
Update the orchestrator log: set status to merged, record timestamp.
- Very specific: line 157
Verify progress.yaml is back to idle state (the build-loop start of the next phase handles archiving).
- Very specific: line 187
Write docs/orchestrate-completion-summary.md in the project root.
- Distinctive: line 229
If the orchestrator is re-invoked after a halt:
- Distinctive: line 232
Check its status and determine where it stopped.
- Distinctive: line 235
If the orchestrator log doesn't exist, start fresh.
“Common” is measured: kept by at least 6 in 10 of the 144 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
<!-- version: 1 -->Chain multiple briefs through the full spec -> build -> review -> retro -> merge cycle autonomously.
Parameters
project— path to the project root (absolute, or relative to cwd; required)briefs— comma-separated brief topic names, orallto process everystatus: draftbrief indocs/briefs/(required)mode—supervised(default) orautonomous. Supervised pauses after the first brief for operator confirmation before continuing. Autonomous chains all briefs without pause.dry_run— iftrue, run spec-author only (no build/merge) to preview specs. Defaultfalse.
Safety guardrails
These are non-negotiable. The orchestrator CANNOT override them.
- Stop-on-red: Any failed merge gate halts the entire chain. The operator must inspect and decide whether to continue.
- No force-push: Never
git push --forceorgit reset --hard. - Must-fix blocks merge: If phase-retro produces findings with
data-lossorsecurity-gapclass, halt and require operator input. - Abort file: Before each phase checkpoint, check for
docs/plan/.orchestrator-stopin the project. If it exists, halt the chain immediately and report status. - CI must pass: PR merge requires all GitHub status checks to pass.
- No unresolved review threads: PR merge requires zero unresolved review conversations.
- Retro must complete:
retro_complete: truemust be set in progress.yaml before merge. - Sequential only: Each brief runs to full completion (merged to main) before the next begins. No parallel branches.
- Merge method: Always use
gh pr merge --squash(squash merge). The story milestone commits are preserved in the branch history and PR description; the main branch stays clean.
Resolve project root
Same rules as build-loop (see ${CLAUDE_PLUGIN_ROOT}/skills/build-loop/SKILL.md, "Resolve project root"):
- If
projectis absolute, use directly. - If relative, resolve against cwd.
- Validate the directory exists and contains
AGENTS.md.
Note: The orchestrator does not create projects — it operates on existing ones. The directory confirmation flow (step 4 in the build-loop) only applies to init.
Orchestrator log
Write all orchestrator activity to docs/plan/orchestrator-log.yaml in the project. Create if it doesn't exist. Format:
run_started: "<ISO timestamp>"
mode: "<supervised|autonomous>"
briefs_queued: [<list of brief topics>]
phases: []
# Each phase entry:
# - brief: "<topic>"
# phase_name: "<derived phase name>"
# started: "<ISO timestamp>"
# spec_complete: "<ISO timestamp or null>"
# build_complete: "<ISO timestamp or null>"
# review_complete: "<ISO timestamp or null>"
# retro_complete: "<ISO timestamp or null>"
# merged: "<ISO timestamp or null>"
# status: "<running|merged|failed|halted>"
# failure_reason: "<reason or null>"
# pr_number: <number or null>
# retro_findings_count: <number>
# must_fix_count: <number>Update the log after each milestone. This is the operator's async review artifact.
Execution flow
For each brief in the queue:
Checkpoint — abort file
Check for docs/plan/.orchestrator-stop. If it exists, halt immediately. Report: which briefs completed, which brief was in progress, which briefs remain. Remove the file after reporting.
Checkpoint — supervised mode pause
- If
mode=supervised: run the first brief to completion (including merge), then pause. Report results and ask: "Continue with remaining N briefs autonomously?" If confirmed, switch to autonomous for the rest. - If
mode=autonomous: no pauses.
Step 1 — Spec-author (inline)
The orchestrator performs the spec-author work inline by following the spec-author contract:
- Read the brief from
docs/briefs/<topic>-brief.md. - Read
AGENTS.md,docs/product/PRD.md, existingdocs/product/phases/,docs/architecture/ARCHITECTURE.md,docs/plan/progress.yaml. - Derive the phase name from the brief topic (e.g.,
markdown-toolbar-icons-brief->markdown-toolbar-icons). - Follow the spec-author pipeline:
- Step 1 — Clarify intent: Parse What/Why/Where/Constraints from the brief. Since the operator pre-approved these briefs, do NOT ask clarifying questions — the brief is the source of truth. If critical information is genuinely missing (no "What" or "Where"), halt and report.
- Step 2 — Draft user stories: Write stories following the project's PRD format, using the brief's content. Follow existing ID conventions from the PRD.
- Step 3 — Draft done-when criteria: Translate acceptance criteria into mechanically verifiable checks. Apply all safety criteria rules from the spec-author skill (LLM output safety, async cleanup, API input allowlisting, catch-all route scoping). Write to
docs/plan/phase-goal-draft.md. - Step 4 — Write phase spec: Write
docs/product/phases/<phase-name>.md. Update PRD index. Mark briefstatus: specced. Delete the draft file. - Step 5 — Architecture intent: Review architecture doc (read-only — no forward-looking content). Identify AGENTS.md impact. Extract golden principles.
- Run the readiness checklist. If any check fails, halt the chain.
- Do not commit — the build-loop
startaction handles this.
Phase size gate: If stories exceed 5, halt and report. The operator must split the brief.
Step 2 — Build-loop start + iterate
Invoke the build-loop by reading ${CLAUDE_PLUGIN_ROOT}/skills/build-loop/SKILL.md and following it with:
action=startphase=<phase-name>project=<project-path>
The build-loop runs autonomously through build and review stages. It stops when review_complete: true (guard rail 4).
If the build-loop pauses (circuit breaker, max tasks, etc.), halt the orchestrator chain and report status.
Step 3 — Phase-retro
After build-loop reports review complete:
- Read
${CLAUDE_PLUGIN_ROOT}/skills/phase-retro/SKILL.mdand follow it withproject=<project-path>andphase=<phase-name>. - The retro analyzes the phase, classifies failures, applies the twice-seen rule.
- Compounding fix handling: For fixes that would normally require operator approval:
- Auto-approve fixes at prevention points (a) spec-author gate and (c) quality check — these are low-risk additions to guardrails.
- Auto-approve fixes at (b) AGENTS.md rule — these document what was built.
- Halt for operator input on any fix the retro flags as
data-lossorsecurity-gap. - Log all auto-approved fixes in the orchestrator log.
- Push the retro commit to the remote to unblock the retro-gate check.
Step 4 — Merge gate
Important: retro-gate vs merge gate. The retro-gate GitHub Action is a PR status check that intentionally fails until phase-retro runs and pushes retro_complete: true. This is normal — Step 3 handles it. After Step 3 pushes, the retro-gate re-runs and passes. The merge gate below runs after the retro push, when all checks should be green.
Before merging, ALL of these must be true:
retro_complete: truein progress.yaml (should already be true from Step 3)- All GitHub status checks pass:
gh pr checks <pr_number> --watch(wait up to 5 minutes for retro-gate and any CI to re-run after the retro push) - No unresolved PR review conversations:
gh api repos/{owner}/{repo}/pulls/<pr_number>/reviews— all reviews must be APPROVED or COMMENTED (not CHANGES_REQUESTED) - No merge conflicts:
gh pr view <pr_number> --json mergeable -q .mergeablemust beMERGEABLE - No
must-fixretro findings (data-loss or security-gap class)
If ANY condition fails:
- Log the failure reason in the orchestrator log.
- Halt the chain. Report which condition failed and what the operator should do.
- Do NOT attempt to fix merge gate failures automatically.
Step 5 — Merge
gh pr merge <pr_number> --squash --delete-branchAfter merge:
- Checkout the default branch and pull:
git checkout main && git pull origin main - Update the orchestrator log: set status to
merged, record timestamp. - Verify progress.yaml is back to idle state (the build-loop
startof the next phase handles archiving).
Step 6 — Brief completion
Log the completed brief. Move to the next brief in the queue. Return to the top of the execution flow.
After all briefs complete
Produce a summary report in the orchestrator log and output to the operator:
## Orchestrator run complete
Briefs processed: N/N
Total phases merged: N
Total retro findings: N (M compounding fixes applied)
Halted: <yes/no — reason if yes>
Phase summary:
- <phase-name>: merged (PR #N) — <stories shipped>
- <phase-name>: merged (PR #N) — <stories shipped>
...
Review the app and provide product-owner feedback as new briefs or concepts.Write completion summary file
Write docs/orchestrate-completion-summary.md in the project root. This file is overwritten on each orchestrator run so the operator always has a quick catch-up artifact.
# Orchestrate completion summary
**Run started:** <ISO timestamp>
**Run finished:** <ISO timestamp>
**Mode:** <supervised|autonomous>
**Briefs processed:** N/N
**Halted:** <yes/no — reason if yes>
## Phases
| # | Phase | PR | Stories shipped | Retro findings | Compounding fixes | Status |
|---|-------|-----|----------------|----------------|-------------------|--------|
| 1 | <phase-name> | #<pr> | <count> | <count> | <count> | merged |
| 2 | <phase-name> | #<pr> | <count> | <count> | <count> | merged |
## Key changes
<!-- One-paragraph summary per phase: what was built and why it matters. -->
- **<phase-name>**: <summary>
- **<phase-name>**: <summary>
## Retro highlights
<!-- Only if there were notable retro findings or compounding fixes. Omit section if zero findings. -->
- <finding summary + fix applied>
## Next steps
<!-- Carry forward any operator actions from halts, retro must-fixes, or product feedback prompts. -->
- Review the app and provide product-owner feedback as new briefs or concepts.Error recovery
If the orchestrator is re-invoked after a halt:
- Read
docs/plan/orchestrator-log.yaml. - Find the last phase that was not
merged. - Check its status and determine where it stopped.
- Resume from that point — do not re-run completed steps.
If the orchestrator log doesn't exist, start fresh.
Scope restriction
Same as build-loop: all file operations confined to the project root, except workspace-level compounding fixes on the allowlist. The orchestrator inherits the build-loop's scope-check procedure.
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.

