Command Palette

Search for a command to run...

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

ship

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

Use when the user asks to deliver a goal end to end, autonomously, or "ship" a change through implementation, PR, review, CI and merge. Triggers: "/ship…

fmflurryот fmflurry★ 173 звезды на GitHub

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

Ship

/ship <goal> drives one goal from init to a merged PR (method per repo) on the base branch. Each goal gets its own worktree and branch. The goal registry is local and untracked: <git-common-dir>/agent-harness/goals/<slug>.json, one file per goal, and it survives the worktree. <slug> is the registry file name that ship-init prints as slug=<slug>. autonomy.on stays in the main checkout (<main>/.claude/state/autonomy.on). Goal state is one file per repository, branch, and worktree: <main>/.claude/state/goals/<hash>.json. The hash covers the git common directory, the worktree path, and the branch name (detached when HEAD is detached). goal set, pr, sha, review, bump, wait, escalate, reset, clear, and status read and write the checkout they run in. Run them in the goal worktree, ( cd <wt> && agent-harness goal pr <n> ). ship-merge and cleanup take a PR and update that PR's registered worktree. An old unkeyed <main>/.claude/state/goal.json is renamed to goal.shared.quarantine.json and is not applied to the current branch. In Claude Code, the Stop hook keeps the session working until the PR is merged or the goal escalates. The hook sees the checkout it runs in, so the session for a goal has to be that worktree.

The goal text is $ARGUMENTS.

Goal worktree lifecycle

The main checkout is never used for goal work.

  1. Init (first action). agent-harness ship-init <type> <scope> <desc> --goal "<text>" creates a dedicated worktree and branch from the latest origin/<base>, then registers {v, goal, slug, branch, path, base, via, pr, head_oid, status, reason, report, created_at} and writes a fresh goal file for that worktree and branch. It prints the worktree path on stdout and slug=<slug> on stderr. Resume an existing PR with agent-harness ship-init --adopt <pr>; if that PR is still a draft, run gh pr ready <pr> before ship-merge, which refuses drafts. Another repo. A session rooted in a different repo ends each command with --repo <absolute path>, with or without Orca. ship-init, ship-merge, cleanup, teardown-merged-worktree and worktree-rm take the target repo's main checkout. goal takes the goal worktree: agent-harness goal pr <n> --repo <wt>. The path must be a checkout's top level, and --repo must come last. A cd or env prefix stays denied. The calling session's Stop hook keeps reading its own checkout, so it does not hold that session for the other repo's goal.
  2. Cycle. Implement, verify, local review, local fix loop, push and open the PR, CI, merge.
  3. Report before merge. Render the outcome show-me summary into the worktree at docs/agent-reports/, commit it in the PR, and embed it in the PR body. Do this on the success path and on the blocked path. The visual report required when the PR is opened lives at docs/pr-reports/ and is a different file.
  4. Merged. agent-harness ship-merge <pr> merges, then runs agent-harness teardown-merged-worktree <pr> for a registered goal.
  5. Blocked or escalated. Never tear down unless the PR is merged. Keep the worktree, the branch and the registry.

Rules for the orchestrator:

  • Do not cd in the orchestrator's persistent shell. Use git -C <wt> ... or absolute paths.
  • Every subagent brief names the worktree path, with absolute paths, and every FILES entry lives under that path.

The ship loop

In autonomous mode the run is a loop, not a checklist. It repeats until the PR merges:

  1. Implement. Tests first, then code, inside the goal worktree. If tdd-guide is installed, dispatch to that agent for the tests. If coder is installed, dispatch to that agent for the code. Otherwise the main agent loads the tdd and coder skills and does the work inline.
  2. Verify. Run the project checks yourself.
  3. Thorough local review of the diff (code-reviewer, security-reviewer, the stack cop, database-reviewer when SQL changed). Record each verdict with agent-harness goal review code|security pass|fail.
  4. Local fix loop. Fix confirmed findings, re-run the checks, review again, until both verdicts pass.
  5. Push and open the PR (ready, not draft). The push guard denies a push or gh pr create without both passing verdicts for the exact diff.
  6. CI. Wait for the required checks and the optional review status. Read the review threads. Failing checks go through loop-on-ci and fix-ci; comments are addressed one by one.
  7. Merge with agent-harness ship-merge, then teardown. This is the only merge path. It checks hard facts. Its refusal is input to the loop, not the end of the run.

Any blocker (see Blockers) sends the run back to fix, then review again locally, then push, then CI again, then retry the merge. A CI or comment fix is never pushed unreviewed. The run ends only in one of two states: done (the PR is merged and torn down), or esc

Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

references/lifecycle.mdreferences/review-format.md

FAQ

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

Use when the user asks to deliver a goal end to end, autonomously, or "ship" a change through implementation, PR, review, CI and merge. Triggers: "/ship <goal>", "ship this", "deliver end to end", "autonomously". Not for a single commit or a single PR. If the `git-specialist` agent is installed, route those to that agent. Otherwise the main agent loads the `git-workflow` skill and does the commit or PR inline.

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

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

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

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

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

Сравнить ship с