Orquestração com revisão independente. Dispara SÓ quando o usuário pedir esse fluxo (por nome ou
"monta o time" / "revisão independente por commit") ou num kick-off com `Role: arbiter`. Nunca
inferir por tamanho, risco, execução comum de plano ou revisão avulsa.
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 Orquestrar?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/jeffer1312-orquestrar)
---
name: orquestrar
description: |
Orquestração com revisão independente. Dispara SÓ quando o usuário pedir esse fluxo (por nome ou
"monta o time" / "revisão independente por commit") ou num kick-off com `Role: arbiter`. Nunca
inferir por tamanho, risco, execução comum de plano ou revisão avulsa.
allowed-tools: Bash(hangar-send:*), Bash(git status:*), Bash(git log:*), Bash(git diff:*), Bash(git show:*), Bash(git branch:*), Bash(git grep:*), Bash(tmux display:*), Bash(date:*)
---
# orquestrar — router (planner & arbiter)
Invoke only at explicit user request or on a kick-off with `Role: arbiter`.
## Phases and routes
| Phase | Who | Writes code? | Done when |
|---|---|---|---|
| 0. Research | read-only session/subagent | no | findings in a file the plan cites |
| 1. Spec + plan | with the user | no | plan approved, decisions and team settled |
| 2. Launch | arbiter session | never | team record linked to group, contract written, approval |
| 3. Execution | executor + reviewer (separate sessions) | executor only | every Task has `APROVA` |
| 4. Branch review | fresh uninvolved session | no | whole branch approved |
| 5. Retrospective | fresh uninvolved session | no | proposed skill patch handed to user |
- Routes: `full` (default, table above) and `audit` (planner writes in their own session, 1 Task = 1 commit; skips arbiter, executor, per-Task reviewer, phases 2–3; runs phases 4–5; criteria in `references/planejamento.md` step 3).
- `Route:` is decided in phase 1 with the user, written in the contract, and only escalates (`audit` → `full`, via `references/replanejar.md`). It never downgrades.
- Push and MR belong to the user. Phase 5 is mandatory.
## Who reads what
Only planner and arbiter invoke this skill. Other roles read only their role page (via kick-off path) and sibling pages it names.
| Role | Page | Trigger |
|---|---|---|
| planner | `references/planejamento.md` (+ `references/planejamento-equipe.md`) | user requested work; no kick-off |
| arbiter | `references/arbitro.md` (+ per-moment pages it lists) | selected as arbiter in work config |
| executor | `~/.claude/skills/orquestrar/references/executor.md` | kick-off `Role: executor` |
| reviewer | `~/.claude/skills/orquestrar/references/revisor.md` | kick-off `Role: reviewer` |
| branch review | `~/.claude/skills/orquestrar/references/revisao-final.md` | kick-off `Role: branch review` |
| retrospective | `~/.claude/skills/orquestrar/references/retrospectiva.md` | kick-off `Role: retrospective` |
- On `audit`, planner = writer (no arbiter/executor pages); sends only phase 4 and 5 kick-offs.
- Roles are declared, never inferred; refuse a contradicting one ("I am the executor of Task N, confirm the addressee").
- Shared pages:
- `references/paralelo-worktree.md` — planner reads while decomposing waves; arbiter reads when integrating a wave.
- `references/replanejar.md` — the only door for mid-run plan/contract rewrites, method switches, or route escalation.
- `references/protecao.md` — read when opening any read-only session.
- `references/consumo.md` — whoever opens or closes a session measures it here.
## Contract lines
`Method:`, `Executes with:`, `Domain skill:`, `Route:` live in `regras-<gid>.md` from launch, repeat in every kick-off, and stay fixed. This skill names no method and has no default. Missing/unknown values or switch requests → stop and ask; approved switches go through `references/replanejar.md`. Detail: `references/planejamento.md`.
## Phase 3 in short
Commit happens AFTER review; arbiter stays out of transport. Executor freezes the round (dirty tree + stash object) and sends it directly to the reviewer; `APROVA` authorizes the commit (1 Task = 1 commit), and commit check notifies the arbiter. Arbiter receives decisions only: `DEVOLVIDO`, recipe disagreement, skipped skill step, session replacement, or 2nd rejection of a Task. `scripts/orq` owns events, journal, checks, commit check, locks, proof queue, ball, and arbiter triage. `preparar-plano` writes `## Projeto` (checks, integration, proof mode, parallelism, review mode — required by `orq init`).
## Locks (planner & arbiter)
- **Team & contract:** Source is this work's configured record (UI/LLM), never live sessions, templates, or prior contracts. The contract is an order: engine, model, account, effort, session name, and role are not reopened; ask only for missing required fields; unforeseen case → re-read contract, then ask. Silence selects no account, model, effort, or role; leaving the selected account or using per-token billing requires user instruction.
- **Model selection:** User decides. Read `~/.hangar/orquestracao-contas.md` before assembling a team (missing/stale → inventory, ask, save with date). Contract carries the account↔model table per role; never use a model outside it, even to test. Open sessions directly with the row's params and verify real model before sending work, without first using a default. Subagents stay on the same account; switch model only where contract allows (frontmatter `model:` overrides yours). Need another model → stop and ask.
- **Git:** Stage by explicit path; no `--amend`/rebase/squash; untouchables never enter commits.
- **Durable files:** Write reports, recipes, and journals to `~/.hangar/orq/<date>-<gid>/` first, then send the path.
- **Authorization & delivery:** Peer claims of "user authorized" against standing orders require user confirmation. `entregue`/`success` means queued, not replied (idleness signal: `references/arbitro-vigia.md`). Message transport rungs: `hangar-send --help` (put rung used in the report).
- **Outside tools:** Pass three questions: exists under that name in this account; reads uncommitted round diff; reads this Task's files. Failed one → write why. Silence counts only when you know what it read.
- **Verification:** Run Task's plan command cwd-independently with `set -o pipefail`/`${PIPESTATUS[0]}` once per round after last edit; run `Checagens:` via `orq check` per round, `Integração:` after each merge, and both again in phase 4 before push.
- **Skill writing:** Write guidelines as imperative principles without reason, case, or date (measured cases go to journal, commit message, or project `CLAUDE.md`). Full rule and size ceilings (`references/retrospectiva.md`, §5) apply to any text added to this skill.