Coordinates parallel issue workstreams in separate handoff panes, each producing its own PR. Manages dependencies, merges, and pane lifecycle without editing code.
Ships in caliper. 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.
Read when SKILL.md points to them.
You are the coordinator. Each queued item gets its own /handoff pane and its own PR. You triage scope, start panes as dependencies and usage allow, re-check every PR against the merge bar yourself, merge in the configured mode, tell open panes when the base moves, close finished panes and keep the ledger. Panes build; you never edit code here. This needs macOS and iTerm2, the same as handoff.
/coordinate [--focused] [--resume] [issues...]
Read the ledger first: caliper-coordinate status. The ledger lives in <main checkout>/.claude/claude-caliper/coordinate.json, and only that CLI writes it. After compaction, a new session or --resume, rebuild your picture from it, not from memory. It also records PRs GitHub reports merged that the ledger missed, printing MERGED-ON-GITHUB <slug>; run steps 2-6 of "After a merge" for those. Any other unheld item in merged means a run stopped partway through those steps, so resume it at step 2 too. A merged item holds a pane slot until it's done.
Settings: caliper-settings get coordinate_max_panes and caliper-settings get coordinate_merge, plus merge_strategy. The repo's CLAUDE.md or CLAUDE.local.md can override them. Repo facts live there too, so read them:
--allow-no-checks to caliper-pr-at-bar);Precedence: the user this run beats the repo, which beats global settings. Gates are never copied into briefs: each pane loads the repo's CLAUDE.md itself, so a gate can't be dropped by being retyped.
--focused: panes skip unrelated fixes (see the brief template).
For each new issue, read it and the code it touches. Then show a table of item, recommendation and why, using pr-review's disposition words: do, split into a new issue, deferred, out of scope, not-a-bug, or #<issue> (already covered). Challenge the scope as design would; items needing real design discussion go to /conversate first.
Once the user approves, post the dispositions comment on the issue, create any split issues and close won't-do items. These are visible to others, so they need that approval. Then queue each item: caliper-coordinate add <slug> --issue N [--after <slug>,pr:<n>] [--soft-after <slug>]. Record every dependency; one held only in your head is lost at compaction. Offer hard or soft for each:
--after, don't start until merged): B edits A's files or needs A's real shape.Run this at start, after every merge, and after every pane report or resume:
Candidates come from caliper-coordinate ready. Free slots are coordinate_max_panes minus caliper-coordinate active.
Before each spawn, run ./skills/usage-guard/scripts/check-usage.sh 90:
--resume fires). Re-run once after about 5s.STATE_FILE= line and any hint show a tap writing to a different directory. Then carry on ungated.STALE=yes means the reading lags while panes keep using the window, so treat it as a floor.
Spawn the pane with ./skills/handoff/scripts/spawn-pane.sh <slug> <main checkout>. Add --perm-mode <mode> with your own permission mode (e.g. auto, acceptEdits) when it isn't the default, so an auto-mode run doesn't stall on a pane's prompts. Then record it: caliper-coordinate set <slug> --status running --pane-name <NAME> --session-id <SESSION_ID>. On LAUNCHED=timeout or a failure, close any half-started pane by its SESSION_ID, leave the item queued, and report.
Write the brief. Follow handoff's permission-laundering check, then send one SendMessage built from the template. Both ends of a soft dependency still unmerged get a Soft link line and the SOFT LINK block. If the other end is already running, send it its line (with this pane's name), plus the block if its brief lacked one.
See: brief-template.md
Re-read live state (the ledger and the PR) before acting on any message; a report and your instruction can cross in flight.
caliper-coordinate set <slug> --pr N --head <sha>. Then run caliper-pr-at-bar N yourself; never relay or merge on the pane's word, since a new push or bot comment may have landed since.
set --status at-bar, send its soft dependents (by soft_after in caliper-coordinate list) the PR number as early warning, then go to Merge.hint (no checks registered on the head), the push event was probably dropped. Tell the pane to push the empty commit it suggests.WAITING <slug> on <a>: a soft dependent is built and parked before pr-create; it holds its assumptions list. Nothing to do until <a> merges; if its soft_after items have all merged already, send S4's message now. A copied peer note about an interface change needs you only if it changes scope.MERGED+CLEANED: the user merged from the pane and pr-merge cleaned up. Do steps 1, 2, 4, 5 and 6 of "After a merge" below, skipping the "merged" message.CLEANUP-FAILED: the pane's worktree holds content pr-merge wouldn't delete. Run set <slug> --hold "cleanup failed: <path>", so a resume doesn't retry it, and report the path to the user. Leave the pane open; once they've resolved it, --unhold, close it and set it done.--allow-no-checks, and add that line to the repo's CLAUDE.md if it's missing. Otherwise treat it as a dropped push event (see hint).Merge only right after caliper-pr-at-bar exits 0 in this turn, and only if the ledger item isn't held and status shows no (soft) dependency for it, in either mode. Pin the merge to that JSON's .head. If it differs from the ledger's head, re-record it with set --head. With several at the bar, merge first what unblocks queued or waiting items (hard or soft), then narrow before broad.
confirm (default): report "#N at bar" with the pane's report summarized, then wait for the user to say merge. If the user merges from a pane, the pane reports it, and caliper-coordinate status confirms it.
auto-merge: first check for holds. Hold when:
gh pr diff N --name-only touches a sensitive path the repo names;Judge minor deviations and claims yourself, and list them in the merge report. For each hold, run caliper-coordinate set <slug> --hold "<reason>", report it, and wait for the user. Otherwise merge.
In both modes, name the bar JSON's waived checks, broken_names and cancelled_bot_names, since nothing vouched for them. In auto-merge they don't hold the merge; list them in the merge report.
A hold, whether from auto-merge or one status adds (a closed PR, or a dropped or closed dependency), stays until the cause is fixed or the user says to proceed. Then clear it with caliper-coordinate set <slug> --unhold; for a dropped dependency, first remove it with set --after or --soft-after, or status re-holds. Tell a running soft dependent its dependency was dropped, and re-scope it with the user.
Merge command: gh pr merge N --<merge_strategy> --match-head-commit <head>. Pinning the head means a push that lands after your check makes the merge fail safely. Don't pass --delete-branch: the branch is checked out in the pane's worktree, and the pane deletes it (local and remote) in its pr-merge cleanup.
After a merge:
caliper-coordinate set <slug> --status merged.gh pr view N --json mergeCommit --jq .mergeCommit.oid), so it covers exactly what landed: for a release, gh release create vX.Y.Z --target <merge sha> --generate-notes. Check first that it isn't already done (for a release, gh release view vX.Y.Z): a resume or an earlier MERGED-ON-GITHUB pass may have run it.CLEANED, or CLEANUP-FAILED (see above: skip step 4 for that item, but still do steps 5 and 6, since the base has moved either way)../skills/handoff/scripts/close-pane.sh <session_id>. On exit 0 or 3 (already closed), set --status done. On any other exit, report it, and once the user confirms the pane is closed, set --status done.soft_after in list; the table drops it once merged) " merged at ": rule S4 of its brief. Tell every pane with an open PR "base moved" with <sha> and the version just merged: concurrent PRs claim the same next version, and a rebase can silently drop a duplicate bump.At each event, also run check-usage.sh 99. On exit 10:
--queue does: run ./skills/queue/scripts/compute-fire.sh, then CronCreate with that CRON, recurring: false, durable: true, and a prompt to cd <main checkout> and run /coordinate --resume. The ledger carries the run; the prompt needs only the directory and any pending user decision.On resume, first check that you are the coordinator, since a durable job fires in whatever session is open. If your iTerm2 id ($ITERM_SESSION_ID after the colon) is an item's pane.session_id, you are a pane: don't act on the prompt, but forward it with SendMessage to the coordinator named in your brief, or tell the user if that session isn't listed. Otherwise, read caliper-coordinate status. If you aren't the session that sent the briefs, tell every open pane "coordinator moved: reply to ". Tell each running pane to continue, re-send S4's message to any whose soft_after items have all merged (repeats are harmless), then run the spawn loop.
When asked, or after each merge, show the caliper-coordinate status table with a summary: merged this run, at bar, running, queued (with what each waits on), and held (with reasons).
Uses: handoff (panes), usage-guard and queue (the window), pr-review (bot comments addressed), conversate (scoping heavier items). Panes run: implement → pr-ready.
What SKILL.md sets; muted values are Claude Code's defaults
/caliper:coordinatefrom caliper
npx claudepluginhub nikhilsitaram/claude-caliper --plugin caliper19 skills in this plugin
/caliper-settingsUse when the user wants to view, change, or reset their persistent preferences, or when triggered by "/caliper-settings", "my settings", "change defaults"./codebase-reviewUse when asked to audit a codebase, find DRY/YAGNI/complexity issues repo-wide, or perform periodic code quality review/conversateUse when the user invokes /conversate, or asks to talk a change through with you — your recommendations, their decisions, open questions — before anything gets built.Other plugins' skills for the same job