team
Parallel multi-lane execution under the orchestrator cost rules. The main session plans and splits the work into file-disjoint lanes, haiku-coder lanes run in parallel, the main session verifies, and only failed lanes loop through fixes, with hard caps. Only runs when the user ty
Install
npx skills add https://github.com/kele-dev/Claude-Orchestrator-Skill/tree/main/skills/team
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install kele-dev-claude-orchestrator-skill@llmmart
git clone https://github.com/kele-dev/Claude-Orchestrator-Skill.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole kele-dev/claude-orchestrator-skill collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Team mode: parallel lanes, token-capped
Task: $ARGUMENTS
Team mode is orchestrator:on with parallel execution (the main session never edits). Shared mode rules (caps, fix rounds, raises, commit=batch, report, lessons): read modes.md in the orchestrator:on skill folder. Unit = lane, group = wave.
Budget (defaults; the user may override them in the arguments, e.g. lanes=2)
- Max parallel lanes per wave: 3, raised to 4 only at plan time and only if the work has 4 or more truly independent, file-disjoint parts. Hard ceiling: 4.
- Max fix rounds per lane: 2, raised automatically up to 4 (see
modes.md). lanes=1means no parallelism: use the normalorchestrator:onflow.opus-reviewer: at most once, on the final combined diff, and only for large work (>5 tasks, or touches schema/auth/security). Not Opus-class: theorchestrator:onreviewer rules (PRD before the first delegation, final diff) apply whatever the size.--dry-run: stop after step 1 (plan), show the lane plan and the planned number of delegations; to continue, the user runs the same command again without --dry-run.commit=batchscope: per wave, after it is verified.isolate=worktree(opt-in): launch each lane withisolation: "worktree". Before wave 1 check thatworktree.baseRefis"head"in settings, there are no uncommitted tracked changes outsidedocs/prd/(lanes branch from HEAD), andcommit=batchis on (later waves branch from committed earlier waves); otherwise warn in one line and use the shared tree (note the caveat if the project needs installed deps a fresh worktree lacks).- Wave order under
isolate=worktree, in this sequence: baseline -> launch lanes (brief: report your worktree path, the output ofpwd, in NOTES) -> per lane verify INSIDE its worktree (git -C <wt> status --porcelainshows only owned files; run its check with cwd = the worktree) -> fix rounds for failed lanes reuse the same worktree: re-delegate WITHOUTisolation, brief says "work only in - Checkpoint timing: after each wave when more waves remain.
budget=<N>k(optional): token budget over all delegations; rules inmodes.md(Budget).
1. PLAN (main session)
- Read only the files you need.
- If the PRD has a task table (Task, Files columns), run
node "${CLAUDE_PLUGIN_ROOT}/scripts/plan-dag.mjs" <prd> --lanes 3and use its waves as the lane plan (exit 2 or no table: derive lanes by hand as below). - Split the work into lanes. Each lane has: id, goal, owned files, PRD excerpt, acceptance test, verification command.
- Owned files are exclusive: no file appears in two lanes.
- Lanes in one wave must be independent: no lane needs another lane's output. Dependent work goes into a later wave. Waves run one after another; lanes inside a wave run in parallel.
- If the work cannot be split into at least 2 independent lanes, say so in one line and use the normal
orchestrator:onflow. Do not force parallelism. - Show the lane table (lane, owned files, executor) in one short block, then continue without waiting (unless
--dry-run).
2. EXEC (parallel)
- Before launching, snapshot
git status --porcelainas the baseline (shared and isolate paths). - Launch all lanes of the current wave in ONE message: one Agent call per lane, with
run_in_background: true. - Executor:
haiku-coderby default;sonnet-devonly for a lane that cannot be made atomic (orchestrator:onstep 3). - Each brief is self-contained, because subagents start without this conversation: owned files, the lane's PRD excerpt, the verification command, "touch only these files; if you need another file, stop and report", and the report format STATUS/FILES/VERIFICATION/NOTES.
- The lane verification command covers only the lane's owned files (syntax check, that file's unit tests): no full suite and no git write commands inside lanes. The main session runs the full suite only after the whole wave finished.
- Tell every lane to return only the summary line of its verification output, never full logs.
- Wait for the completion notifications. Do not poll.
3. VERIFY (main session)
- After the wave (isolate: after APPLY): compare
git status --porcelainwith the baseline and flag only files changed since it that no lane owns (earlier user edits, the PRD and.claude/worktrees/are never flagged). Such a file is a violation: ask the lanes' reports (FILES) which lane did it and handle it per the "changed a file outside its owned list" rule below. - Per lane: check its own files only (
git diff -- <owned files>) and run its verification command yourself. Other verify rules:modes.md. isolate=worktree: follow the wave order in Budget; per-lane checks run inside the lane worktree, andTYPE: APPLY(owned files, worktree path from the lane's report) comes before the union check.
4. FIX loop
- Re-run only the failed lanes (
modes.md: fix loop). - Lanes cooperate through the main session, never by messaging each other:
- A lane reports that it needs a file owned by another lane: let the owner lane finish, then give the requesting lane a follow-up task in the next wave with that file added to its owned list.
- A lane changed a file outside its owned list: read both lanes' changes to that file. Compatible (different parts, nothing overwritten): keep both and note it in the report. Conflicting: delegate one merge task to
sonnet-devwith both diffs and both lanes' PRD excerpts, owning only that file. Never auto-revert.
- Fix cap reached and not raised: mark the lane BLOCKED, let the other lanes finish, and do not start later waves that depend on it.
5. REPORT
- End state: DONE when every lane passed and the project-level check passes; a failing project check is handled per
modes.md(Project check); otherwise BLOCKED. Permodes.md: report. Unit = lane; status PASS / BLOCKED.
Files (claude-orchestrator-skill)
-
SKILL.md 6.4 KB
--- name: team description: Parallel multi-lane execution under the orchestrator cost rules. The main session plans and splits the work into file-disjoint lanes, haiku-coder lanes run in parallel, the main session verifies, and only failed lanes loop through fixes, with hard caps. Only runs when the user types /orchestrator:team. argument-hint: "[lanes=N] [commit=batch] [isolate=worktree] [budget=<N>k] [--dry-run] <task description>" disable-model-invocation: true --- # Team mode: parallel lanes, token-capped Task: $ARGUMENTS Team mode is `orchestrator:on` with parallel execution (the main session never edits). Shared mode rules (caps, fix rounds, raises, commit=batch, report, lessons): read `modes.md` in the `orchestrator:on` skill folder. Unit = lane, group = wave. ## Budget (defaults; the user may override them in the arguments, e.g. `lanes=2`) - Max parallel lanes per wave: 3, raised to 4 only at plan time and only if the work has 4 or more truly independent, file-disjoint parts. Hard ceiling: 4. - Max fix rounds per lane: 2, raised automatically up to 4 (see `modes.md`). - `lanes=1` means no parallelism: use the normal `orchestrator:on` flow. - `opus-reviewer`: at most once, on the final combined diff, and only for large work (>5 tasks, or touches schema/auth/security). Not Opus-class: the `orchestrator:on` reviewer rules (PRD before the first delegation, final diff) apply whatever the size. - `--dry-run`: stop after step 1 (plan), show the lane plan and the planned number of delegations; to continue, the user runs the same command again without --dry-run. - `commit=batch` scope: per wave, after it is verified. - `isolate=worktree` (opt-in): launch each lane with `isolation: "worktree"`. Before wave 1 check that `worktree.baseRef` is `"head"` in settings, there are no uncommitted tracked changes outside `docs/prd/` (lanes branch from HEAD), and `commit=batch` is on (later waves branch from committed earlier waves); otherwise warn in one line and use the shared tree (note the caveat if the project needs installed deps a fresh worktree lacks). - Wave order under `isolate=worktree`, in this sequence: baseline -> launch lanes (brief: report your worktree path, the output of `pwd`, in NOTES) -> per lane verify INSIDE its worktree (`git -C <wt> status --porcelain` shows only owned files; run its check with cwd = the worktree) -> fix rounds for failed lanes reuse the same worktree: re-delegate WITHOUT `isolation`, brief says "work only in <wt path>" -> `TYPE: APPLY` for each PASS lane, run from the main tree root -> union check vs baseline and full suite in the main tree -> COMMIT if `commit=batch` -> next wave. Take each lane's worktree path from its report. - Checkpoint timing: after each wave when more waves remain. - `budget=<N>k` (optional): token budget over all delegations; rules in `modes.md` (Budget). ## 1. PLAN (main session) - Read only the files you need. - If the PRD has a task table (Task, Files columns), run `node "${CLAUDE_PLUGIN_ROOT}/scripts/plan-dag.mjs" <prd> --lanes 3` and use its waves as the lane plan (exit 2 or no table: derive lanes by hand as below). - Split the work into lanes. Each lane has: id, goal, owned files, PRD excerpt, acceptance test, verification command. - Owned files are exclusive: no file appears in two lanes. - Lanes in one wave must be independent: no lane needs another lane's output. Dependent work goes into a later wave. Waves run one after another; lanes inside a wave run in parallel. - If the work cannot be split into at least 2 independent lanes, say so in one line and use the normal `orchestrator:on` flow. Do not force parallelism. - Show the lane table (lane, owned files, executor) in one short block, then continue without waiting (unless `--dry-run`). ## 2. EXEC (parallel) - Before launching, snapshot `git status --porcelain` as the baseline (shared and isolate paths). - Launch all lanes of the current wave in ONE message: one Agent call per lane, with `run_in_background: true`. - Executor: `haiku-coder` by default; `sonnet-dev` only for a lane that cannot be made atomic (`orchestrator:on` step 3). - Each brief is self-contained, because subagents start without this conversation: owned files, the lane's PRD excerpt, the verification command, "touch only these files; if you need another file, stop and report", and the report format STATUS/FILES/VERIFICATION/NOTES. - The lane verification command covers only the lane's owned files (syntax check, that file's unit tests): no full suite and no git write commands inside lanes. The main session runs the full suite only after the whole wave finished. - Tell every lane to return only the summary line of its verification output, never full logs. - Wait for the completion notifications. Do not poll. ## 3. VERIFY (main session) - After the wave (isolate: after APPLY): compare `git status --porcelain` with the baseline and flag only files changed since it that no lane owns (earlier user edits, the PRD and `.claude/worktrees/` are never flagged). Such a file is a violation: ask the lanes' reports (FILES) which lane did it and handle it per the "changed a file outside its owned list" rule below. - Per lane: check its own files only (`git diff -- <owned files>`) and run its verification command yourself. Other verify rules: `modes.md`. - `isolate=worktree`: follow the wave order in Budget; per-lane checks run inside the lane worktree, and `TYPE: APPLY` (owned files, worktree path from the lane's report) comes before the union check. ## 4. FIX loop - Re-run only the failed lanes (`modes.md`: fix loop). - Lanes cooperate through the main session, never by messaging each other: - A lane reports that it needs a file owned by another lane: let the owner lane finish, then give the requesting lane a follow-up task in the next wave with that file added to its owned list. - A lane changed a file outside its owned list: read both lanes' changes to that file. Compatible (different parts, nothing overwritten): keep both and note it in the report. Conflicting: delegate one merge task to `sonnet-dev` with both diffs and both lanes' PRD excerpts, owning only that file. Never auto-revert. - Fix cap reached and not raised: mark the lane BLOCKED, let the other lanes finish, and do not start later waves that depend on it. ## 5. REPORT - End state: DONE when every lane passed and the project-level check passes; a failing project check is handled per `modes.md` (Project check); otherwise BLOCKED. Per `modes.md`: report. Unit = lane; status PASS / BLOCKED.
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.