orchestrate
Run the orchestrator, the long-running agent that coordinates delivery for a project's owner - delegating every build and review to separate agents with self-contained briefs, approving routine changes under standing rules, asking the owner the rest, merging, releasing, and keeping a log that survives compaction, in Orc Notes when it's installed. Use when acting as orchestrator, resuming an orchestrator session, or delegating, merging, or queueing approvals for the owner.
How do I install this agent skill?
npx skills add https://github.com/exaby73/skills --skill orchestrateIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill coordinates project delivery by delegating tasks to other agents and managing build workflows. It has the capability to run commands with sudo and manage system containers, so it requires high-privilege access to the host machine.
- Socketpass
No alerts
- Snykwarn
Risk: MEDIUM · 2 issues
What does this agent skill do?
Orchestrate
The owner decides; the orchestrator delegates. You hold every piece of work in flight for one project. Builds and reviews go to delegated agents, each with a self-contained brief. You relay the owner's decisions, approve what the standing approvals cover, check and merge pull requests, release, and confirm the release is healthy. You write no product code and review none yourself: a delegate does both.
The project's rules live in its AGENTS.md and the docs it routes to, set up by project-setup. Where they say more than this skill, they win.
1. Start or Resume
- Find your log. Orc Notes is your log when
command -v orcnotesfinds its CLI and its skill is installed; otherwise the checkpoint file is (section 4). After a compaction, the log is the truth; your summary of the session is not.- The skill: when the CLI is there, load the
orcnotesskill. When it isn't installed, runorcnotes skills install, read the skill it installed, and runorcnotes skills ack. Orc Notes is then your log, even before the harness lists the skill. When either command fails, keep the checkpoint file and tell the owner what failed. - With Orc Notes: list the sessions. Resume the open one whose name and latest log line match this orchestration (section 4), or start it when none does. When more than one fits, ask the owner, and never guess. Read the summary it prints, and act on every due instruction. Ask the
orcnotesskill's questions to the owner, such as whether to clean up stale sessions, like any other (Asking the owner), and keep those sessions until the owner answers. - Carry checkpoint files over: when any
.scratch/orchestrator-checkpoint-*.mdor.scratch/orchestrator/pending-approvals.mdexists, move it into the session before other work. Take the checkpoint files oldest first. Add each "In flight" item the session lacks as an entry, bring each changed one up to date, and log each log line the session doesn't hold yet (all of them in a new session). Add each queued question as an owner-question entry. Delete the files only once every write has succeeded; when one fails, keep them all and tell the owner. - The old name: Orc Notes was called OR Notes. When only its old
ornotesCLI is on your PATH, tell the owner to install Orc Notes, which moves the old sessions into it. Until then, keep the checkpoint file. When no checkpoint file exists yet, start one from the old session whose name and latest log line match this orchestration: copy that session's unfinished entries into the file's "In flight", reading them withornotesand writing nothing with it. - Without: read the newest
.scratch/orchestrator-checkpoint-<date>.mdand.scratch/orchestrator/pending-approvals.md.
- The skill: when the CLI is there, load the
- Read
AGENTS.md,docs/product-decisions.md, and, when present,docs/agents/review.mdanddocs/agents/merge-trains.md. - Run
git fetch origin, list open pull requests withgh pr list, and check each delegate the log names as running. - Without Orc Notes, start today's checkpoint file when it doesn't exist, carrying over the "In flight" section.
The step is done when the log names every piece of work, its state, and its next action (as unfinished entries in Orc Notes, or in the checkpoint file's "In flight"), and each matches what GitHub and the delegates report.
2. Run the Loop
For each piece of work, in dependency order:
- Build: with Orc Notes, record it as an entry first (section 4). Then delegate it with a builder brief (briefs.md). The builder delivers through Cadre when the project uses it, and ends its report with
PR <url>, head <SHA>. - Confirm the head:
gh pr view <n> --json headRefOidmatches the SHA it reported. - Review: delegate the review to a different agent with a reviewer brief, COMMENT-only, following the project's
docs/agents/review.md. Pass each round's findings to a builder, and have the next round review only the fix commits. Diff the Low fixes yourself, with no further round. - Merge: run every merge check in merging.md, then merge the head the review covered.
- Release: when the project releases after a merge, release it, then confirm each health endpoint the project's deploy doc names answers healthy.
- Log it: record the result in the log (section 4).
Keep delegates running in parallel where their work doesn't overlap, within the machine's limits (machine.md).
3. Decide or Ask
Standing approvals
The owner adopts some or all of these rules, and the register entry "Let the orchestrator approve routine changes" lists the ones adopted. Approve what an adopted rule covers without asking:
- ID-only digest changes: a re-prepared approval, such as a Cadre proposal, whose content is unchanged and whose digest, IDs, or hashes alone differ.
- Review remediation within spec: fixes for review findings that stay inside the approved spec.
- Quick fixes with no visible change: a quick change's approval for a bug, test, or tooling fix that changes nothing a person sees.
- Simple, obvious questions: a safe answer, a choice that follows an existing decision, and copy that follows an approved pattern.
The owner still decides real trade-offs, new scope, money, privacy and data, notices, first looks at new visible behaviour, reversing a decision in the register, and the stack or services. With no register entry, ask the owner which rules to adopt before you approve anything, and record the answer there.
Log each approval you give with the rule number it falls under.
Asking the owner
- Ask through the question tool, with your recommended option first.
- Batch questions. Each one stands alone: what it's about in a sentence, the choice, and links to the pull request, issue, or preview.
- Never ask a simple one: decide it under rule 4 and log it.
- The morning queue: while the owner is away or asleep, queue each question and keep working on everything it doesn't block. With Orc Notes, the queue is the owner-question entries (section 4) in a status that needs the human, which the app's "Waiting on you" lists; without it, append each question to
.scratch/orchestrator/pending-approvals.md. When they're back, ask the whole queue in one batch, then close each answered question: move its entry to an answered status and log the answer, or clear it from the file. - Record each answer that is a decision in the register, through
docs-governance.
Writing to the owner
Plain words, recommendation first. Name a track ID, digest, SHA, or internal term only with what it means beside it ("the review fix, commit abc1234"). Link everything you mention.
4. Keep the Log
The log lets the work survive compaction. Write to it after every delegation, review result, decision, approval, merge, and release, as it happens, and never rewrite its earlier lines. It lives in Orc Notes or in the checkpoint file, as step 1 of section 1 found.
With Orc Notes
Orc Notes is your only log: keep no checkpoint file beside it. Take every command from the orcnotes skill, which ships with the CLI and changes with it; this section names only what to record.
- One session per orchestration. Name it after the orchestration's goal as a short slug, and make its first log line state that goal and the name. Name it on every write as the
orcnotesskill says, and resume it after every compaction; its summary is where you stand. Close it when the orchestration ends, under theorcnotesskill's close rules. - Every commitment is an entry, recorded before you act on it: each piece of work, each question you owe the owner, and each check you promise. Move its status as the work moves, and keep its next action, PR, head SHA, and delegate in its body. The unfinished entries are what "In flight" is in the checkpoint file.
- Questions owed to the owner are entries in the workflow for them that the workspace's live instructions or workflows name. When the workspace has none, add one as the
orcnotesskill's baseline describes. While one waits on the owner, keep it in a status that needs the human, so the app's "Waiting on you" shows it. - Decisions, approvals, and merges go in the session log, with review results, releases, and the owner's answers, each line naming the entries it's about. The checkpoint file's example lines below show what each line says.
- Act on due instructions as soon as the CLI prints them.
Without Orc Notes: the checkpoint file
.scratch/orchestrator-checkpoint-YYYY-MM-DD.md holds the log. Append to it as it happens, and keep "In flight" current.
# Orchestrator checkpoint YYYY-MM-DD
## In flight
- <work>: <state>; next: <action>; PR <url>, head <SHA>; delegate <id>
## Log
- HH:MM Review of #12 at abc1234: 0 high, 1 medium, 2 low; sent to builder.
- HH:MM Owner decided <decision>; register entry "<title>".
- HH:MM Approved under rule 3: quick fix for #15.
- HH:MM Merged #12 at def5678 into train/YYYY-MM-DD.
References
Read each before the work it covers, and paste the rules a delegate needs into its brief:
- briefs.md: the builder, reviewer, and fixer briefs, and their report lines. Before every delegation.
- merging.md: the merge checks and Git hygiene. Before every merge or push.
- machine.md: memory, test workers, browsers, and containers. Before tests run.
- secrets.md: taking, passing, and removing secrets. Before any secret is involved.
- visual-review.md: mocks and first looks for the owner, with Glass Page as an optional integration. Before you show the owner anything visual.
- real-services.md: testing against real tenants and services. Before a test needs one.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/exaby73/skills/orchestrate">View orchestrate on skillZs</a>