ship-it
БесплатноЗапускает вложенные скриптыНе проверенWorktree-side implementation orchestrator for an OpenSpec change. Idempotent: gates automated scenarios on filesystem reality, owns the red-test fix loop…
от BlackBeltTechnology★ 357 звёзд на GitHubОб этом скилле
ship-it
Orchestrates the implementation phase of an OpenSpec change inside its git
worktree. Twin of plan-proposal (which runs the planning phase on develop).
Composes existing skills — openspec-apply-change, the docker harness, and
ship-change — and adds the wiring they lack. Runnable headless.
flowchart LR
P["plan-proposal (develop)"] -->|"boundary: spawn worktree"| S
subgraph Worktree ["IMPLEMENTATION — worktree (this skill)"]
S["ship-it"] --> A["apply"] --> M["merge develop (2.5)"] --> T["docker-harness test"] --> E["enforcers (4.4)"] --> Q["CodeQL ratchet (4.4b)"] --> R["local review (4.5)"] --> C["ship-change"]
end
S -.->|"reverse: SHIP_IT_BLOCKED.md on design issue"| P
Pure decision logic lives in this skill's own scripts/ directory and is
unit-tested (.pi/skills/ship-it is a vitest project):
scripts/manifest.ts (parseManifest, deferDecision, filesystemRealityCheck),
scripts/no-weakening.ts (assertNoWeakening),
scripts/review-gate.ts (reviewRoundDecision, parseReviewReply,
resolveReviewer, classifyFindings, REVIEW_TIMEOUT_MS),
scripts/fix-ledger.ts (validateFixLedger), scripts/review-state.ts
(deriveReviewState), and scripts/review-prompt.ts (buildReviewPrompt + the
step-4.5 CLI), and scripts/openspec-deps-gate.ts (runGate, the step-1.5
dependency gate). The CodeQL ratchet of step 4.4b is the repo script
scripts/codeql-local.mjs (see docs/code-quality.md).
Preconditions
- Running inside the change's worktree (
.worktrees/os-<change>, branchos/<change>). Resolve the change name from the worktree dir basename. dockeravailable (the e2e harness);openspecCLI resolves from the parent repo root when inside a worktree (perAGENTS.md).- Announce: "Shipping change:
<change>(worktree implementation phase)."
Procedure
1. Orient with openspec status, but gate on filesystem reality (idempotent)
Entry gate — a previous hand-back. If
openspec/changes/<change>/SHIP_IT_BLOCKED.md already exists, a previous
invocation handed the change to a human. A run is interactive exactly when
the ask_user tool is available; otherwise it is headless.
- Headless → exit non-zero naming
SHIP_IT_BLOCKED.md. No fix loop, no review round, noship-changestep. - Interactive → show its cause and
ask_userresume / abort. On abort, stop without changes. On resume, create this invocation's run dir (step 4.5), copySHIP_IT_BLOCKED.mdinto it (evidence kept), then remove the file from the change dir.
Removing the file, or answering resume, is the human decision that starts a
new review budget — re-invoking ship-it alone never does. A hand-back written
by step 4.4b (new CodeQL alerts, a script error, a baseline-diff violation) lists
the alerts and how to resolve them; resume re-runs 4.4 and 4.4b, which then ask
per alert.
Read openspec status --change <change> --json for orientation only. Do not
trust the tasks.md checkbox as proof an automated scenario is done — a
hand-checked or prior-partial - [x] can lie.
Parse test-plan.md (parseManifest). For each automated row, resolve its
folded test file and run filesystemRealityCheck: a scenario is satisfied only
when its test file exists AND passes in the harness (step 3). Any automated
row whose test file is absent → NOT done → author it (step 2) regardless of the
checkbox. This makes re-invocation genuinely idempotent: fresh run and re-run
reach the same all-green end state.
1.5. Dependency gate — are this change's blockers shipped?
Runs on every invocation, after the SHIP_IT_BLOCKED.md entry gate and the
orientation above, and before any implementation step. From the worktree
root, with a 60 s overall timeout on the tool call:
npx tsx .pi/skills/ship-it/scripts/openspec-deps-gate.ts --change <change>
The script owns all logic (dashboard query with a bounded retry, offline parser
fallback, origin/develop archive lookup) and prints one JSON verdict
{ status: ok|warn|blocked, mode: online|offline, blockers: [{ change, state: open|satisfied|unknown, source }], issues: [{ code, severity, message }], notes }.
Act on it — do not re-derive it:
- Crash, timeout or unparseable output → record "dependencies not checked" in the step report and continue; this gate never stops a run by failing.
status: blocked(anerrorissue:invalid-file,self-reference, a declaredcycle) → writeSHIP_IT_BLOCKED.mdnaming the issue(s) and stop via the step-5 escape hatch. No fix loop, no review round.- Open blockers (
state: open) → a warning. Interactive →ask_usercontinue / stop (with the situation brief below, listing the open blockers); on stop writeSHIP_IT_BLOCKED.mdnaming them and stop. Headless → continue and carry the open blockers into the final report. - Warnings (including inferred-cycle warn
Установить ship-it в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ship-it?
Worktree-side implementation orchestrator for an OpenSpec change. Idempotent: gates automated scenarios on filesystem reality, owns the red-test fix loop, runs the docker harness with always-teardown, then drives ship-change inline. Escape hatch writes SHIP_IT_BLOCKED.md. Runnable headless. Triggers: "ship it", "build and ship this change", "run ship-it", "implement + test + land in the worktree".
Как установить скилл ship-it?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ship-it запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic