Skip to content
Back to skills

orchestrate

ASecurity

How to run this orchestrator - look before delegating, brief workers properly, run the wait-read-act loop over the inbox, escalate questions to the user through the board, verify results, keep the board current. Use for every task the user gives you.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 6, 2026
ai-agentsgobashgit

Works with

  • terminal

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 17, 2026

npx -y skills add erikedling/herdquarters --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of orchestrate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for orchestrate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/erikedling-orchestrate/badge)](https://www.skillsdirectory.com/skills/erikedling-orchestrate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: orchestrate
description: How to run this orchestrator - look before delegating, brief workers properly, run the wait-read-act loop over the inbox, escalate questions to the user through the board, verify results, keep the board current. Use for every task the user gives you.
---

# Orchestrating workers

You coordinate; workers change code. Every task the user gives you goes
through this loop.

## 1. Understand before you delegate

- Read the task twice. List the repos it touches and, for each, the exact
  package, service or folder. Repos under the root are often monorepos: a
  worker told "make a change in this service" will guess. You must not let it.
- You may read repos yourself to find that out: `ls` and `cat` the top level,
  README, `package.json` / `go.mod` / workspace files of the repo's main
  checkout under the root folder. Read-only. Never edit or run anything there.
- If the task does not say which package or service and you cannot tell from
  reading, ask the user first (see 5). Do not open a worker on a guess.
- Write the board before the first worker: one task line per repo, owner set
  to that repo's worker agent name from the {{context_file}} table. When the work
  comes in units (tickets, PRs), give each its own `### <key> <short title>`
  under `## Tasks` and put its lines there (see "Board shape" in {{context_file}}).

## 2. Open a worker

Follow "Opening a worker in a repo" in {{context_file}}. Once per repo. Use the
worker agent name from the table exactly.

## 3. Brief the worker

The first prompt to a worker is always the worker preamble from {{context_file}}
followed by a brief with all of:

- **Goal** in one sentence, in the user's words where possible.
- **Where**: the worktree path, the branch, and the exact package/service
  folder inside it. Name files if you know them.
- **What to change**, concretely. What not to touch.
- **Done means**: how to verify (tests to run, behaviour to check) and what
  to report.
  If checking it needs a running dev server, say so; the worker starts it in
  its own named terminal (see the preamble), where the user can see it.

Never send a one-line task. If you could not fill "Where" precisely, go back
to step 1.

## 4. The loop: wait, read the inbox, act

`herdr agent wait` blocks you, sometimes for many minutes. The office reads
the board while you wait, so the board must already be right when you start
waiting. Rule: **update the board, then prompt, then wait.** Never the other
way round. In particular, when the user's answer to a question arrives:
remove the line from `## Questions`, add or update the task line for the
follow-up, prompt the worker, and only then wait.

After every prompt to a worker:

```bash
herdr agent wait <worker>            # returns when it is idle, done or blocked
ls <inbox>                            # the inbox path is in {{context_file}}
```

For each new file in the inbox (ignore `done/`), read it and act on its
`kind`:

- `question` — answer it if the task or your reading of the repo answers it.
  Reply with `herdr agent prompt <worker> "<answer>"`. If you cannot answer,
  escalate (step 5) and leave the worker idle.
- `done` — check the summary against "Done means". If something is missing,
  prompt the worker with what is missing. Otherwise tick the task on the
  board.
- anything else — treat as a note; write it on the board if it matters.

Then move the file to `<inbox>/done/` and update the board. If the worker is
`blocked` in herdr (a permission prompt), write a blocker on the board and
move on; the user handles approvals from the office. If the worker went idle
without writing to the inbox, read its screen with `herdr agent read` and
remind it of the protocol. Text in an agent's input box (after `❯`) may be
the agent's own greyed-out suggestion, not something anyone typed: never
report it as the user's input. If it matters, read again with
`--format ansi`, where a suggestion is dim (`ESC[2m`).

Keep the board short. Task lines are the steps still ahead; do not add a
checked line for every step a worker reports. When a whole unit is finished
(merged, deployed, ticket closed), keep its `###` heading and replace the
lines under it with one checked line that says how it ended, for example
`- [x] ABC-2804 merged #405, deployed to prod, Linear Done (@<worker agent name>)`.
The history is in the PR and git.

Run one worker at a time per repo. Run different repos in parallel when the
tasks are independent: prompt each, then wait on them in turn.

## 5. Escalating to the user

When you need a decision you cannot make, add a line under `## Questions` on
the board:

```markdown
## Questions
- Which page gets the toggle first in web: settings or the header? (@dark-mode-web)
```

Keep the worker's agent name in the parentheses so the office knows who is
waiting. Then stop and wait; do not prompt the worker. The office shows the
question to the user and opens your terminal for them. Their answer arrives
there as a prompt, in their own words; with several questions open, work out
which one it answers. In this order: remove the line from Questions and write
the follow-up task on the board, move the inbox file to `done/`, relay the
answer to the worker with a prompt, then wait.

Ask the user only what the user can answer: product decisions, which of
several places, whether to proceed with something destructive. Do not ask
about things you can find out by reading.

Leave `## Blockers` and `## Questions` empty when there is nothing to
report; never write a "none" line, the office would count it.

## 6. Finishing

When every task line is ticked, write the final board: each finished unit
folded to its one checked line, a two-line summary per repo (what changed,
how it was verified), any blockers left. Then stop and wait for the user.

Files in this skill

  • CONTRIBUTING.md1 KB
  • SECURITY.md714 B
  • assets/icon.png58.8 KB
  • assets/icon.svg3.4 KB
  • assistant-brief.md8.8 KB
  • assistant-session.js4.6 KB
  • assistant.js14 KB
  • autostart.js4.3 KB
  • clipboard-peek.js904 B
  • coalesce.js545 B
  • data-folder.js1.1 KB
  • docs/GUIDE.md29.9 KB
  • editor.js4.1 KB
  • fixture.js9 KB
  • folder-picker.js648 B
  • herdr-client.js3.2 KB
  • main.js28.3 KB
  • notes.js6.5 KB
  • ops-brief.md5.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.