Baton
An issue spec to a reviewed PR, by deliberate handoff, and the way an epic of such issues is run cheaply. deliver never
merges. epic merges only through the project's own gate script, after the maintainer has said so in chat.
Each stage is blind to the one before it, and that is the whole design:
- the tests agent has not seen the intended implementation, so the tests cannot be shaped to fit it
- the implement agent did not write the tests, so it cannot quietly redefine done
- the followup agent did not write the code under review, so it cannot half-apply its own findings
- the checklist agent ticks nothing — every box is the maintainer's
A baton is the object that exists only to be handed over. Both of deliver's exits are passes, never finishes:
delivered <PR-URL> hands over an unticked checklist, blocked #N hands over the issue with a label and an @mention.
The skills
| skill | verbs | reach |
|---|
/baton:issue | review · create · groom | reads, files, edits an issue |
/baton:pr | status · comments · review · followup · loop · ci | reads, posts, pushes |
/baton:deliver | (none — takes an issue number) | one issue through the pipeline, stopping before merge |
/baton:epic | <folder> · resume <folder> · retro <folder> | orchestrates an epic: plan, critical read, waves, ledger, gate, handoff, retro |
/baton:tdd | (none) | red-green-refactor; two agents depend on it |
No verb is a default: a bare /baton:pr <n> or /baton:issue <n> runs its read-only verb and says the verb was missing.
Install
Personal, every project, no marketplace:
git clone [email protected]:jayostis/baton.git ~/.claude/skills/baton
It loads on the next session as baton@skills-dir. Or, from the marketplace:
/plugin marketplace add jayostis/baton
/plugin install baton@baton
Development: claude --plugin-dir ./baton, then /reload-plugins after each edit. Tests: node --test test/*.test.mjs
(the directory form fails on Node 24). claude plugin validate . checks the manifest and hooks/hooks.json.
Configuration
All keys are optional; the defaults work in a normal GitHub repo.
| key | default | what it does |
|---|
maintainer_handle | — | Fallback @mention when a delivery blocks. Normally never reached (see below). |
escalation_label | needs-human | Applied to the issue on a block. Must already exist in the repo. |
verify_command | — | Pre-commit gate, run before pushing review fixes. Blank → agents report the targeted test run alone and say no gate ran. |
review_passes | 2 | Review passes in /baton:pr loop: review, apply, review. --passes n overrides per run. |
project_config | — | A file naming a project's epic tools and rules; see below. Blank → .baton/project.md in the repo. |
Who gets the @mention — first hit wins: an Escalate to: @handle line in the issue's Delivery block, every non-bot
assignee, the issue's author, maintainer_handle. A chain that yields nobody still blocks and says so.
Project config
Baton carries no project's paths, rules or rulings. /baton:epic reads one markdown file, once: the project_config key
above, else .baton/project.md in the repository it runs in, and stops to ask if neither exists. Keep it under 120
lines. The briefs refer to its entries by these names; each is a command, a path or a short paragraph:
| entry | what it is |
|---|
run_folders | the folder epics' run folders live in; a bare name (a name with no slash) means <run_folders>/<name>, and without it the skill asks |
worktree, review_worktree | tools that give a builder a worktree per step and a reviewer a standing one |
verify_command, test_targeted | the pre-push gate, and how to run only the tests a change affects |
depends_on | how PRs in different repos name each other, and the order they merge |
stop_line | the only conditions on which the orchestrator stops to ask |
rulings | settled decisions, each with its reason |
traps | a folder of dated entries, each with the test that proves it, loaded by grep on a topic, never pasted |
probes | per-repository probe lists for reviewers |
locks | the lock primitive for Docker and timed runs |
machine | a ## machine section of key: value lines: heavy_slots, heavy_agents, light_agents, and heavy_commands (comma-separated patterns the time report counts as heavy; reporting only); each optional, defaulted from the machine's cpus and memory |
A project's own file lives in that project, never here.
Running an epic
/baton:epic is an orchestrator that dispatches agents by a role table and spends tokens it can measure.