add-component
Checklists for adding a new MCP tool, select or op, a new Flyway database migration, or a new Gradle dependency to the Task…
Front door for running a multi-item wave of MCP work items through a generated run plan — resolves a frontier of ready/resumed items, derives per-item seat stages from their resolved schemas, opens a server run for them, and executes the plan via the Workflow tool (Method A) or
Claude Code
$ npx -y skills add jpicklyk/task-orchestrator --skill run-wave --agent claude-code
Codex
$ npx skills add jpicklyk/task-orchestrator --skill run-wave -a codex -y
Cursor
$ npx skills add jpicklyk/task-orchestrator --skill run-wave -a cursor -y
Gemini CLI
$ npx skills add jpicklyk/task-orchestrator --skill run-wave -a gemini-cli -y
GitHub Copilot
$ npx skills add jpicklyk/task-orchestrator --skill run-wave -a github-copilot -y
OpenCode
$ npx skills add jpicklyk/task-orchestrator --skill run-wave -a opencode -y
Windsurf
$ npx skills add jpicklyk/task-orchestrator --skill run-wave -a windsurf -y
name: run-wave description: "Front door for running a multi-item wave of MCP work items through a generated run plan — resolves a frontier of ready/resumed items, derives per-item seat stages from their resolved schemas, opens a server run for them, and executes the plan via the Workflow tool (Method A) or direct Agent dispatch (Method B) when Workflow is unavailable. Use when a user says: run the wave, launch the wave, run a wave over <feature>, run these ready items as a wave, run-wave, resume run r-…, or when a task notification arrives from task-orchestrator:implement-wave. NOT for a single Direct-tier fix (use /status-progression or a direct dispatch) and NOT for headless unattended queue draining (use /ralph). Does not itself decide whether to plan or implement — it executes a run plan over items whose specification/task-scope notes already exist." argument-hint: "[ancestorId | itemIds] [--method A|B] [--mode shared|per-item] [--worktree <path> --branch <name>] [--resume <runId>] [--altitude-safe]"
This skill resolves a frontier of ready (and resumable) MCP work items into a **run plan** — a deterministic set of per-item seat stages derived from each item's resolved schema — opens a **server run** over those items, and executes the plan either through the `Workflow` tool (**Method A**) or through direct `Agent` dispatch (**Method B**, the fallback when `Workflow` is unavailable or the server doesn't yet serve enough capability data for Method A). Both methods execute the **same** run plan and the same seat prompts — Method B reuses the Method A core byte-for-byte (see `references/method-b.md`).
The skill itself does no planning arithmetic. All frontier resolution, edge classification, stage derivation and the exact server ops are produced by a pure Node helper (`scripts/run-planner.mjs` / `run-planner-lib.mjs` / `run-exec-lib.mjs`). This skill's job is: call the helper with the right inputs, show the human the plan, send the ops the helper renders, launch, and drive post-run verification and advancement. Side effects (MCP calls, token files, `git worktree add`, `Workflow`/`Agent` dispatch) stay in this prose, never in the helper. The Workflow runtime has no MCP access: every `runs_write`, `runs_read` and coordinator `advance` call is yours.
**Do not attempt to replicate the helper's algorithm in your head.** If a helper call fails or its output looks wrong, report the raw stderr/stdout rather than improvising a plan by reading MCP responses directly — the whole point of the helper split is that frontier/edge/stage logic is fixture-tested, not reasoned about fresh each run.
**Code Mode.** In a Code Mode session (only `REPL` and `Poll` are visible), run each step that `references/code-mode.md` covers through its recipe; the steps, rules, checkpoints and reports here are unchanged.
---
A run-wave run is a server run (`current/docs/api-reference.md` → "Category: Runs"). Two ids name it:
`args.runId`, the provenance `run=` field and the run's `label`;
`args.serverRunId` and passed as `runId` to every `runs_write`/`runs_read` call.
The run view (`runs_read` `get`, `frontier`, `seats`) is the run's state: there is no plan or state document on the server. The local scratch files (`<scratchpad>/run-wave/<runId>/plan.json`, `state.json`, `result.json`) hold what the helper reads.
**Tokens.** `open` answers a `coordinatorToken` once (a keyed replay omits it); `assign` answers each seat's `seatToken` once. Write each seat token, and nothing else, as one line to the token file `run-ops assign` names (`<scratchpad>/run-wave/<runId>/tokens/<short>.<seat>.token`); the seat prompt names that path and the seat reads it. Write the coordinator token the same way, as one line to the `tokenFile` that `run-ops --phase open` names (`tokens/coordinator.token`), so a restart, `--resume` or compaction can read it back; pass it as `seatToken` from that file, and delete `tokens/` at close. Never put a token in a prompt, a note, a log line, a commit, the plan or a helper input, and never echo one back to the user. A lost coordinator token (no file, or the file's token is refused) cannot be recovered: close the run on the director connection (no `seatToken`) or with a human credential, and open another.
A seat envelope is stripped before it is persisted: any `seatToken` or `coordinatorToken` key is removed at any depth in both methods, and Method B's `stage-result` also redacts every value read from the run's token files. Method A strips by key only (the Workflow sandbox cannot read token files), so a token echoed under another key is not caught there. The coordinator token file sits in the same `tokens/` directory, so Method B redacts its value too.
**Which token goes on a call.** Every coordinator call (`update`, `assign`, `close`, the coordinator `advance` calls, `withdraw` of a decision this run raised, and every `notes_write` `upsert` to an `orchestrator`-seat key of a run member while the run is open: post-run Step 3 and the Step 5 pointer) carries the coordinator token as the top-level `seatToken`; `end_seat` carries the seat's own token; `open` carries none.
**RESULTS.** A write tool answers `data.results[i]`, one entry per `ops[]` element: read each element's own `ok` and `data.results[i].error` (`code`, `detail`, `fix`). A call-level `partial_failure` only means "an element failed, look per element" and carries no detail. The exception is an atomic batch (`atomic: true`): it answers only the failing element's own error with `error.index`, and nothing was written.
**Retry classes the coordinator meets.**
| Answer | What to do | |---|---| | `run_paused {pauseReason, pauseDecisionId}` | never retry. Save the answer as `paused.j
Server-enforced workflow discipline for AI agents. Prompt-based frameworks hope the LLM follows instructions. This one blocks the call if it doesn't.
Checklists for adding a new MCP tool, select or op, a new Flyway database migration, or a new Gradle dependency to the Task…
Compatibility assessment for items with the needs-api-compat-review trait. Evaluates the tool surface (served over both MCP and…
End-to-end workflow for taking MCP work items from backlog to merged PR. Handles git branching, schema-driven planning,…
SQLite migration assessment for items with the needs-migration-review trait. Evaluates schema changes, table recreation patterns,…
Performance impact assessment for items with the needs-perf-review trait. Evaluates hot paths, query patterns, and measurement…
Assessment of plugin skill and hook changes needed after MCP or config changes. Evaluates skill references, hook context,…
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration