How to orchestrate multi-agent work in CANdb Studio - task routing, model tiers, parallelism, implement-verify-review loops, quality gates, handoff format and escalation. Use when planning or running any non-trivial task end to end, or when asked which agent/model to use.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Orchestration Playbook?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/afri-bit-orchestration-playbook)
---
name: orchestration-playbook
description: How to orchestrate multi-agent work in CANdb Studio - task routing, model tiers, parallelism, implement-verify-review loops, quality gates, handoff format and escalation. Use when planning or running any non-trivial task end to end, or when asked which agent/model to use.
---
# Orchestration playbook
The orchestrator runs on the **main thread** (`claude --agent orchestrator`, or the `/orchestrate` command). Subagents cannot spawn subagents, so all fan-out happens from the main thread. Workers return a compact report; the orchestrator keeps the ledger.
## 1. Model routing - match weight to model
| Tier | Model | Use for | Agents |
|------|-------|---------|--------|
| Heavy | `opus` | Decisions that are costly to reverse, safety/security judgement, whole-system planning | `orchestrator`, `system-architect`, `safety-quality-engineer`, `security-engineer` |
| Standard | `sonnet` | Implementation, tests, specs, docs, UX, review of ordinary diffs | `automotive-can`, `blf-replay-engineer`, `vscode-extension`, `frontend-webview`, `ux-designer`, `product-manager`, `requirements-engineer`, `technical-writer`, `tester`, `refactoring`, `code-reviewer` |
| Light | `haiku` | Search, triage, mechanical summaries, release chores | `repo-explorer`, `issue-triager`, `release-engineer` |
Rules of thumb: discovery is Light; writing code to a clear spec is Standard; deciding what the spec or architecture should be, or judging whether code is *safe to trust*, is Heavy. Promote a task one tier after two failed review loops. Never use Heavy for formatting, renames or log-reading.
## 2. Routing by task
| Task | Chain |
|------|-------|
| Bug fix | `repo-explorer` -> owner agent (area) -> `tester` -> `code-reviewer` |
| Feature | `issue-triager` -> `product-manager` -> `requirements-engineer` (openspec-propose) -> `system-architect` (if cross-layer) -> workers -> `tester` -> `code-reviewer` (+ safety/security) -> `technical-writer` |
| Parser / codec / decode / replay | `automotive-can` or `blf-replay-engineer` -> `tester` -> `safety-quality-engineer` |
| Webview / UX | `ux-designer` -> `frontend-webview` -> `tester` -> `code-reviewer` |
| Adapter / binary input / dependency | `system-architect` -> implementer -> `security-engineer` |
| Docs | `technical-writer` (+ `repo-explorer` to verify claims) |
| Release | `release-engineer` -> `security-engineer` (audit) |
## 3. Loop and gates
```
plan -> delegate (parallel where files disjoint) -> gate -> review -> fix -> gate ...
```
**Gate** (evidence required): `npm run compile`, `npm run lint`, `npm run test:unit`; add `npm run test:integration` for host changes; `npm run spec:validate` when `openspec/` changed. **Review**: `code-reviewer` always; safety/security reviewers per chain above. **Loop limit**: 3 per task group, then escalate to the human with findings and a recommendation. Findings are returned to the *same* worker with the exact finding text.
## 4. Delegation brief (every worker call)
```
Goal: <one sentence>
Context: <issue/change path, relevant spec requirement ids>
Scope: <files/dirs allowed to change> ; Out of scope: <list>
Acceptance: <observable outcomes / tests that must pass>
Verify: <commands>
Report: Result / Evidence / Risks / Follow-ups (max ~200 words)
```
## 5. Parallelism and context hygiene
- Parallel: disjoint files and independent questions. Sequential: same file, or output of A feeds B.
- Workers get only what they need; pass file paths and requirement ids, not file dumps.
- Long runs: persist state in `openspec/changes/<name>/tasks.md` (checkboxes) so a restarted session resumes from disk, not from memory.
## 6. Escalate to the human when
Requirements are ambiguous or conflicting; a change would transmit on a physical bus; a new dependency has licence/security impact; 3 loops are exhausted; a worker reports a safety/security Blocker; destructive git or publishing is needed.
## 7. Ledger format (in replies)
`| Task | Owner (model) | Status | Evidence |` - one row per task group, updated each round.