ship-batch
БесплатноЗапускает вложенные скриптыНе проверенShip a whole OpenSpec group unattended: one detached runner schedules ship-it sessions N at a time in their own worktrees, never answers their questions…
от BlackBeltTechnology★ 357 звёзд на GitHubОб этом скилле
ship-batch
Runs ship-it for every active change of one OpenSpec group (the board's
group + its persisted order), N at a time, each in its own worktree
.worktrees/os-<change> / branch os/<change>. A standalone TypeScript runner
does the scheduling — not an agent loop — so a multi-hour run has no context
growth or turn limit. This skill only launches and inspects it.
flowchart LR
G["group + order"] --> R["ship-batch runner (detached)"]
R -->|"worktree + init + bus spawn /skill:ship-it"| S["ship-it sessions (N)"]
S -->|"question"| Q["pending-question stack (human)"]
S -->|"settled"| T["classify → archive session → teardown"]
R -->|"state / events / lock"| F[".worktrees/.ship-batch/"]
When to use
- Several planned changes in one group are ready to ship and you want them landed without babysitting each session.
- Not for a single change — run
ship-itin its worktree. Not for planning (plan-proposal). The runner is project-scoped: base branchdevelop, remoteorigin.
Procedure
Dry run first — prints order, dependency waits, cycle skips and the out-of-batch blockers
ship-itwill ask about; changes nothing:npx tsx .pi/skills/ship-batch/scripts/ship-batch.ts --group <id|name> --dry-runLaunch detached (a run spans CI and review for hours; the runner does not need this session):
nohup npx tsx .pi/skills/ship-batch/scripts/ship-batch.ts --group <id|name> > /tmp/ship-batch-<group>.log 2>&1 &Status (read-only, works while the dashboard is down):
npx tsx .pi/skills/ship-batch/scripts/ship-batch.ts --status [--group <id|name>]Shows each change's state, session, age, reason and kept path, and
dashboard unreachable since <ts>during an outage. Events:<repo>/.worktrees/.ship-batch/<groupId>.events.jsonl.Resume — re-run the same launch command. A state file with unfinished items re-attaches the recorded sessions and never spawns a second session for a change. A fully finished run is rotated to
<groupId>.<ts>.jsonand planned fresh: still-active members are re-queued (a kept worktree is reused); a member whose worktree hosts a live session is skipped.Stop —
SIGINT/SIGTERM(exit 130/143): no new starts, state persisted, lock released; live sessions keep running and are re-attached on resume.
Flags and defaults
| Flag | Default | Meaning |
|---|---|---|
--group <id|name> |
required | Group id, else case-insensitive name; unknown/ambiguous aborts listing the ids |
--cwd <dir> |
. |
Any checkout/worktree of the repo (state lives in the main checkout) |
--parallel N |
2 |
Concurrent active changes; integer 1 ≤ N < max-live |
--max-live M |
2×N |
Live-session ceiling (active + questioned); bounds docker harnesses |
--model <ref> |
@coding |
Model for the spawned ship-it sessions |
--nudges K |
1 |
Continue-prompts per change when a session stops early |
--settle <dur> |
30s |
Idle window before a session counts as settled |
--start-timeout <dur> |
5m |
A prompt that never streams settles after this |
--dry-run |
off | Print the schedule, no side effects |
--status |
off | Print the state table |
Exit codes: 0 every change shipped · 2 any kept | incomplete | failed | skipped ·
1 usage, preflight, lock refusal or fatal · 130/143 signalled.
How it behaves
- Preflight (before any side effect):
git+openspecon PATH, dashboard reachable,spawnStrategy === "headless",originremote, valid flags. - Order + gating: the group's persisted order; an open in-batch
blockedBywaits for its blocker to ship; a blocker that ends unshipped skips its dependent; an in-batch cycle is skipped. Out-of-batch open blockers do not gate —ship-itasks (a question frees the slot). - A question frees its slot: a questioned session does not count toward
Nand is never torn down, nudged or timed out. It counts toward--max-live. An answered session returns torunningeven when that is overN; nothing is pre-empted, new starts just wait. The runner exits only when every change is terminal, so a pending question keeps it alive. - Settle → outcome: a session is settled when
ended, or idle for the settle window after it streamed (or after--start-timeoutwhen it never did).git fetch origin developthen decides:shipped(a newarchive/<date>-<change>dir),blocked(SHIP_IT_BLOCKED.mdin the worktree),incomplete, orunknown(fetch failed).incomplete+ alive idle session gets one bounded nudge. - No decision without a live view: while the bus is down the runner reconnects (1 s doubling, cap 60 s, forever) and decides nothing.
Teardown
Every finished change first has its session archived (waits for ended,
re-archives an expired intent, ≤ 3 min), then the harness is brou
Установить ship-batch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ship-batch?
Ship a whole OpenSpec group unattended: one detached runner schedules ship-it sessions N at a time in their own worktrees, never answers their questions, archives finished sessions and removes worktrees only when nothing unpushed is lost. Resumable. Triggers: "ship the group", "batch ship-it", "ship all changes in <group>", "ship-batch status".
Как установить скилл ship-batch?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ship-batch запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic