/team-avatar:kyoshi-commandfrom Team Avatar
Orchestrates large multi-day programs with stacked PRs and many subagents. Use for 'run this whole project' or 'own this migration until it lands' with minimal human turns.
Ships in Team Avatar. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When Suki commands the island's defense, she does not fight on the beach. She writes clear orders, posts warriors where they belong, reads every runner's report at set times, and keeps the front line holding. You own the program, never the code. Author briefs, drain the queue, keep the frontier green, and decide.
This skill is for a whole project handed to one standing coordinator chat. It runs for days, spans many stacked PRs, and uses dozens to hundreds of subagents, with the human checking in twice a day instead of every five minutes. One task driven to a predicate belongs to night-watch. One ambitious run that needs a bespoke workflow belongs to day-of-black-sun. Route here only when the work outlives any single agent. Work one agent could finish inside the session's budget is not a program, however program-shaped the request sounds.
Prove behavior with the project's verify skill (see vital-signs), or with Claude Code's run skill when the repo has none. Every brief names the resolved skill path or the exact commands.
On Codex, read avatar-mode/references/codex.md for tool equivalents.
Ceremony must scale with the program. On cheap, near-identical units, collapse it as each section directs.
Three rules carry the rest.
avatar-mode describe. State reads and writes go through the orch CLI at drain points, one command in and one line out. The CLI never spawns, waits, or wakes anything.run_in_background: true), each dispatched as the character whose discipline fits the unit (team-avatar:<character>). Claude Code has no remote worker environment, so isolation is a worktree or branch per writer, not a separate machine. A subagent never sees this chat, so its brief inlines what it needs or points at repo and store paths. Prefer fewer, broader workers. Keep one writer per worktree or branch, so no two actors share a file. Run a unit's verifier on a different model family from its worker, taking the family from the avatar-setup sheet's panel line.Depth stays at coordinator, track, worker. Author the track decomposition per project. Build, landing, and verification are common cuts, not a required shape. Hard-coded formation trees were tried and parked as too rigid.
orch is bun ../../tools/orch/orch.ts from this file, under the installed plugin. It keeps the store's plain TSV and JSON files, which stay readable without the CLI. Pass the store with --store <dir> or the ORCH_STORE environment variable. Commands:
| Command | Does |
|---|---|
orch init | Create the store files. |
orch standing show, orch standing add <line> | Read or append the standing orders. |
orch unit add <id>, orch unit set <id>, orch unit get <id>, orch unit list, orch unit counts | Keep units.tsv. |
orch ledger record <pr> <sha> <verdict> [--evidence PATH] [--verifier NAME], orch ledger check <pr> <sha>, orch ledger summary | Keep ledger.tsv. |
orch inbox push <agent> <unit> <status> [--report PATH], orch inbox drain, orch inbox count | Queue completion pointers. |
orch gate park <id>, orch gate list, orch gate resolve <id> | Park human gates. |
orch frontier set --repo <dir> [--forge gh|origin] [--prs <n,...>], orch frontier show | Compute the merge frontier. |
orch status | Regenerate status.md and print a three-line summary. |
Run orch <command> --help for every option. Add --json for complete rows.
Create ${CLAUDE_CONFIG_DIR:-~/.claude}/orchestrate/<project-slug>/ (on Codex, ${CODEX_HOME:-~/.codex}/orchestrate/<project-slug>/), outside the repo and outside the session. The store has to outlive this chat. The program runs for days, a session restart is expected (see Liveness and failure), and the store is the postmortem. The session scratchpad is not a candidate, however convenient. It is session-scoped and temporary, so a restart takes the program's only state with it. Every file has exactly one writer. Owners publish facts, and readers aggregate at read time.
preferences.md is the standing-orders register. It holds numbered lines, one constraint each (model policy, stack shape and count, verification bar, forbidden paths, escalation policy). For a human ruling, keep the human's original wording and say who gave it and where. Label your own interpretations, and label a ruling whose original you cannot find. A copy of a ruling is not a new decision. Paste the register verbatim into every spawn and every resume. Directives decay across resumes, and each dropped one costs a human turn. When you catch yourself restating an instruction, append the line before you act (Encode Lessons in Structure, Fire in four-elements).overview.md is the durable PR and issue database. Append. Never rewrite it wholesale per event.units.tsv has one row per unit with its id, track, state, branch, PR, head SHA, and brief path. Update rows in place.frontier.json is the computed merge frontier, per Stack safety.ledger.tsv is the verification ledger, per Verification.inbox/ holds completion pointers. gates.md parks human gates (the question, the options, the default on no answer).decisions.tsv is the decision trail, kept with battle-map.status.md is derived from units.tsv and ledger.tsv at each drain, never hand-maintained. Regenerate it from the tables instead of narrating events into it.Your prompts to agents are your only product, and a sloppy brief compounds into slop across the whole tree. Every spawn carries all of it. A field you cannot fill is a unit you have not scoped yet.
GOAL one sentence, the outcome, executable by a stranger with no chat access
SCOPE paths this unit may write; paths it may not; its exclusive worktree or branch
CONTEXT pointers to files and PRs; upstream reports pasted in full when this unit
depends on them, because workers cannot see siblings
ACCEPTANCE checkable criteria, one per line
VERIFY exact commands or the resolved verify skill path, plus known gotchas
TIMEBOX rough cap on runtime; on expiry, return partial findings and stop rather than run on
FORBIDDEN no PR retargets or merges, no rebase, no force-push, no fixes outside scope,
plus unit-specific bans
REPORT status, branch, head SHA, PRs, verdict, what you actually ran, deviations,
suggested follow-ups
STANDING <preferences.md pasted verbatim>
Size the brief to the unit. A one-command unit gets the template collapsed to a paragraph that still names the goal, the scope, the verify command, and the report shape. A 4 KB scaffold around a two-line edit costs more to write and obey than the edit. A spawn may reference the standing-orders file by store path. Verbatim paste is for every resume and for any brief that has to stand alone.
A sub-coordinator brief adds its track boundary and unit list, its spawn budget, the drain protocol, and the rollup format. The rollup gives, per child, the name, status, PR, head SHA, verdict, and one line, plus the track status and the frontier delta.
A dependency is a context relay, not just ordering. Undeclared upstream context makes the worker guess. Missing fields are a refuse-to-spawn condition. Audit one sampled worker brief per sub-coordinator per wave, concurrently with the wave it samples, never as a gate in front of it. A failing brief stops that track and fixes the sub-coordinator's instructions, not just the worker, because brief quality decays late in a run. Never resume-chain a brief. Respawn fresh with consolidated scope.
unit-test-verified or better"). Quantify the scope: units, rough effort, expected stacks, and the wall-clock budget. If one agent could finish inside that budget, stop here and run night-watch instead. Collapsing must not depend on another document being present. It means doing the work directly in this session, with plain workers where they help, verification inline, landing as you go, and none of the store, register, or pilot machinery below. Schedule landing against the budget. By roughly 70% of it, stop spawning and land what is verified. Name the tracks per project. A contested decomposition or a one-way door goes through agni-kai before the pilot. Present the framing once. Reversible prep proceeds without waiting.orch init. Open the trail with battle-map, write the standing orders before any spawn, and seed frontier.json from existing PRs with orch frontier set --repo <repo-dir>, adding --forge origin when the forge is Origin.kyoshi-formation for a coverage or verifier fan-out inside a wave.frontier.json only on a merge or on reported new head SHAs.battle-map, including its cross-model review. Encode recurring corrections into preferences.md or the brief template. Leave the store intact. It is the postmortem.orch inbox push <agent> <unit> <status> [--report PATH] and return to what you were doing. Never deep-review inline. A completion that needs review becomes a verifier unit. Never review a diff inside a drain.loop skill, with a long heartbeat fallback, or watch the stack with bun ../../tools/watch-pr/watch-pr per long-flight), and before a human report. Begin each batch with orch inbox drain. Arrivals during a drain wait for the next one.orch unit add, orch unit set, and orch ledger record, runs orch status, then spawns the next wave in one message.orch status: counts against the states, what changed, and gates open. Detail lives in status.md. The full reply contract applies at checkpoints and at close.frontier.json after every merge and stack mutation. It holds the ordered PR list, branch names, head SHAs, a generation number, and the lowest unmerged PR. orch frontier set walks the PR base chain through the checkout's current branch, so chain order and PR states come from the forge. It uses gh by default. Pass --forge origin when the program resolved the forge to Origin. Head SHAs come from local branch refs, so run it from the stacker's clone. A branch with no PR errors rather than guessing.long-flight, one per stack, scoped to one immutable frontier generation. They report conflicts to the stacker rather than rebasing.Scale verification to the unit. When VERIFY is a single cheap command, the worker runs it and reports the output, and the coordinator spot-checks receipts. A dedicated verifier agent, on a different model family from the worker, is for units whose verification is expensive, judgment-laden, or high-blast-radius. A verifier agent whose entire product would be rerunning one command is ceremony, not verification.
Write ledger rows with orch ledger record. Check the current PR and head SHA with orch ledger check. ledger.tsv has one row per verdict, keyed by PR number plus head SHA. The verdicts are:
live-ui-verifiedunit-test-verifiedtype-check-onlyverifier-blockedverifier-failedCI green is an input to a verdict, not a verdict. Behavioral work needs better than type-check-only. verifier-blocked is not a pass. Respawn the verifier when the environment heals. verifier-failed gets a fix unit, not a re-verify. A worker may self-report, and a verifier overrides it on the same key. A new head SHA voids the row, so re-verify after a restack. The ledger answers "was this verified", not memory and not the transcript.
A unit is not done until its output is externalized, the moment it lands, never batched to the end of the run. A worker pushes its branch, a verifier writes its ledger row, and receipts land in the store. Work that exists only on one machine when that machine dies was never done.
units.tsv, gh, pushed branches, and the background task list. Transcript mtime is not liveness.units.tsv, recompute the frontier, reattach in-flight work by PR and branch rather than by agent id, respawn one sub-coordinator per track from its stored brief plus the current state, drain, and resume. The dead session's store lock clears itself on the next write, because orch replaces a lock whose holder pid is gone.These reach the human, batched into the status page rather than sent per item:
Park each as a gates.md entry with orch gate park before asking, and route work around it.
These never reach the human: frontier nudges, rebase mechanics, retries, CI flake triage, review-thread triage, format fixes, scope the brief already forbids (refuse it and continue), and "should I keep going". When in doubt, act and log.
Mid-run discoveries fix only what blocks the frontier. Everything else parks in follow-ups. At this fan-out a small scope leak multiplies into PRs nobody asked for.
At checkpoints and at close, report:
units.tsv and ledger.tsvTake numbers from the tables, not narrative. Link each PR as https://github.com/<owner>/<repo>/pull/<number>. Write it per tea-time.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tmcfarlane/team-avatar --plugin team-avatar58 skills in this plugin
/agni-kaiZuko's Agni Kai for bakeoffs. The formal firebending duel, where competing implementations fight under the same rules and a judge declares the winner. Use for arena, /arena, "arena this", "throw it in the arena", "bakeoff", or when one attempt at a nontrivial design or artifact would lock in the wrong shape. Spawns N parallel candidates at the same task, picks a base with a cross-judge, and grafts the strongest parts of the losers into it./avatar-helpAang showing a new friend around the team. Explains Team Avatar to a user, the roster and who owns what, how to invoke a skill on Claude Code and Codex, which skill fits a situation, and how to word a good prompt. Use for /avatar-help, "how do I use team avatar", "which skill should I use", "what can the team do", or a question about setup, routing, or a run that went wrong./avatar-modeAang's operating mode for Team Avatar, principal-level engineering where each task goes to the character who owns that discipline. Use for "avatar mode", "team avatar", "/avatar-mode", "$avatar-mode", or any nontrivial engineering task (more than one file, a design choice, a bug with an unknown cause, a performance issue) that should be routed to the right specialist and proven before it is called done./avatar-setupAang choosing which bender takes which fight. Configures which model each Team Avatar character runs on, the default reasoning effort, and whether the SessionStart hook routes work into avatar-mode. Use for /avatar-setup, "setup team avatar", "configure team avatar models", changing a character's model, or turning the session hook on or off./battle-mapSokka's battle map, the decision trail he keeps so anyone can see how the campaign was won. Use for show-me-your-work, /show-me-your-work, "show me your work", "keep a decision log", "audit trail", long or unattended runs, multi-phase work, or anything a human reviews after stepping away. Keeps one TSV row per decision (what, why, evidence, result), local by default and committed when a reviewer needs it to trust the result./break-campAppa's morning departure for picking up paused or handed-off work. The team breaks camp, reads the map they left, and flies on from where they stopped. Use for session-pickup, "pick up where we left off", "resume", "continue the previous session", "take over this agent's work", or a handed-over transcript, cloud-agent URL, or pushed branch. Reads the checkpoint or prior trail, rebuilds state, and resumes without redoing finished work.Other plugins' skills for the same job