Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ship-it

БесплатноЗапускает вложенные скриптыНе проверен

Worktree-side implementation orchestrator for an OpenSpec change. Idempotent: gates automated scenarios on filesystem reality, owns the red-test fix loop…

BlackBeltTechnologyот 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>, branch os/<change>). Resolve the change name from the worktree dir basename.
  • docker available (the e2e harness); openspec CLI resolves from the parent repo root when inside a worktree (per AGENTS.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, no ship-change step.
  • Interactive → show its cause and ask_user resume / abort. On abort, stop without changes. On resume, create this invocation's run dir (step 4.5), copy SHIP_IT_BLOCKED.md into 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 (an error issue: invalid-file, self-reference, a declared cycle) → write SHIP_IT_BLOCKED.md naming 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_user continue / stop (with the situation brief below, listing the open blockers); on stop write SHIP_IT_BLOCKED.md naming them and stop. Headless → continue and carry the open blockers into the final report.
  • Warnings (including inferred-cycle warn
Полный SKILL.md на GitHub

Установить ship-it в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

SKILL.agent.mdscripts/fix-ledger.tsscripts/manifest.tsscripts/no-weakening.tsscripts/openspec-deps-gate.tsscripts/review-gate.tsscripts/review-prompt.tsscripts/review-state.tsscripts/stale-change-dirs.tsvitest.config.ts

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить ship-it с