Command Palette

Search for a command to run...

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

ship-change

БесплатноБез исполняемых скриптовНе проверен

Ship an OpenSpec change after openspec-apply completes. When only QA/manual tasks remain, marks them done (tested later), archives + syncs specs, commits…

BlackBeltTechnologyот BlackBeltTechnology★ 357 звёзд на GitHub

Об этом скилле

ship-change

End-to-end "land it" pipeline for an OpenSpec change. Runs after openspec-apply has implemented the code. Orchestrates existing pieces — does not reimplement them.

Repo conventions (this project)

  • Base branch: develop.
  • Worktree path: .worktrees/os-<change>, branch os/<change>.
  • Remote: origin → github.com:BlackBeltTechnology/pi-agent-dashboard.
  • CI scripts: npx tsx ./scripts/list-recent-runs.ts [--failed], scripts/show-failed-run.ts <run-id>.
  • OpenSpec skills resolve from the parent repo root when running inside a worktree (per AGENTS.md), not the worktree checkout.

Preconditions (verify, do not assume)

  1. openspec-apply finished; all non-QA/manual tasks are checked.
  2. Working tree builds and tests pass (this skill re-verifies).
  3. gh auth status succeeds; git remote get-url origin resolves.

Resolve the change name from the worktree dir basename (os-<change> → <change>) or openspec list --json. Announce: "Shipping change: <change>". If ambiguous, ask.

Procedure

1. Mark deferrable tasks done (manifest-aware, legacy fallback)

Read openspec/changes/<change>/tasks.md. List remaining - [ ] tasks. The defer rule reads the manifest (test-plan.md) when present, else falls back to the legacy keyword rule. Pure logic: .pi/skills/ship-it/scripts/manifest.ts → deferDecision(tasks, manifestText).

Precedence:

  1. openspec/changes/<change>/test-plan.md exists (manifest-era change): a leftover - [ ] is deferrable only if it maps to a manual-only manifest row — either an inline (test-plan: manual-only) tag or a (test-plan #<id>) reference resolved against the manifest. Any other leftover = real work = STOP. Automated scenarios are never deferred — they are proven done (harness-verified) before ship, so they are already - [x]. Flip each deferrable - [ ] → - [x] (validated post-merge).
  2. test-plan.md absent (legacy change): fall back to today's keyword defer, unchanged — all remaining unchecked tasks whose body matches (case-insensitive) qa, manual, verify, smoke, test by hand, e2e, acceptance → flip to - [x]; any non-matching leftover → STOP.

Any STOP → report the blocking tasks and return to openspec-apply (or, under ship-it, the escape hatch). Do not ship real work undone.

1.5. Integrate develop — merge before the verify gate (backstop)

Merge origin/develop so the verify gate (step 2) runs on the integrated tree. No-op under ship-it (its step 2.5 already merged); the genuine integration point when ship-change runs standalone (no harness), and the catch for the narrow race where develop advanced during the harness run.

git fetch origin develop
git merge --no-edit origin/develop

Idempotent ("Already up to date" → no commit). Merge, not rebase — step 9 squash-merges regardless, and rebase would force-push a worktree branch (the non-ff misalignment pitfall below). Conflicts → the recipes in Pitfalls (AGENTS.md union-keep; pnpm-lock.yaml → --theirs + pnpm install --lockfile-only); unresolved → git merge --abort + STOP, never push a half-merged tree.

2. Verify gate (must pass before PR)

npm test 2>&1 | tee /tmp/ship-test.log
grep -nE 'FAIL|Error|✗|✘' /tmp/ship-test.log   # must be empty
npm run build                                   # client build must succeed

If red → fix or report and stop. Never push a failing gate.

3. Archive + sync specs

Delegate to the OpenSpec archive skill (it syncs delta specs into openspec/specs/):

Use the openspec-archive-change skill for change <change>. Sync delta specs, then archive to openspec/changes/archive/YYYY-MM-DD-<change>/.

If running non-interactively, run the sync then mv openspec/changes/<change> openspec/changes/archive/$(date +%F)-<change>.

4. Commit

git add -A
git commit -m "feat(<change>): <one-line summary>

Implements OpenSpec change <change>. Archives + syncs specs.
QA/manual tasks deferred to post-merge verification."

4.5. Drop resurrected change dirs (before every push)

A branch cut from a base holding other changes' unpushed planning commits carries their active openspec/changes/<x>/ folders. Once <x> ships through its own PR and archives, this branch's squash merge would re-add a stale, unchecked copy. Remove them (no-op on a clean branch; commits only when something is removed):

git fetch -q origin develop
npx tsx .pi/skills/ship-it/scripts/stale-change-dirs.ts --change <change> --fix

5. Push + open PR (base develop)

git push -u origin os/<change>
gh pr create --base develop --head os/<change> \
  --title "feat(<change>): <summary>" \
  --body "$(printf 'Implements OpenSpec change `%s`.\n\nQA/manual tasks deferred to post-merge verification.\n' "<change>")"
pr=$(gh pr list --head os/<change> --state open --json number
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

SKILL.agent.mdSKILL.md.AGENTS.md

FAQ

Что делает скилл ship-change?

Ship an OpenSpec change after openspec-apply completes. When only QA/manual tasks remain, marks them done (tested later), archives + syncs specs, commits, pushes, opens a PR against develop, watches CI, waits for CodeRabbit, auto-applies safe fixes and re-pushes, loops until CI green + no actionable review threads, then squash-merges with branch delete and removes the worktree. Use after implementation is done and the change is ready to land. Triggers: "ship this change", "ship it", "land the change", "merge and clean up", "post-apply ship".

Как установить скилл ship-change?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ship-change запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

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