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★ 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.
- Init (first action).
agent-harness ship-init <type> <scope> <desc> --goal "<text>"creates a dedicated worktree and branch from the latestorigin/<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 andslug=<slug>on stderr. Resume an existing PR withagent-harness ship-init --adopt <pr>; if that PR is still a draft, rungh pr ready <pr>beforeship-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-worktreeandworktree-rmtake the target repo's main checkout.goaltakes the goal worktree:agent-harness goal pr <n> --repo <wt>. The path must be a checkout's top level, and--repomust come last. Acdor 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. - Cycle. Implement, verify, local review, local fix loop, push and open the PR, CI, merge.
- 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 atdocs/pr-reports/and is a different file. - Merged.
agent-harness ship-merge <pr>merges, then runsagent-harness teardown-merged-worktree <pr>for a registered goal. - 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
cdin the orchestrator's persistent shell. Usegit -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:
- Implement. Tests first, then code, inside the goal worktree. If
tdd-guideis installed, dispatch to that agent for the tests. Ifcoderis installed, dispatch to that agent for the code. Otherwise the main agent loads thetddandcoderskills and does the work inline. - Verify. Run the project checks yourself.
- Thorough local review of the diff (
code-reviewer,security-reviewer, the stack cop,database-reviewerwhen SQL changed). Record each verdict withagent-harness goal review code|security pass|fail. - Local fix loop. Fix confirmed findings, re-run the checks, review again, until both verdicts pass.
- Push and open the PR (ready, not draft). The push guard denies a push or
gh pr createwithout both passing verdicts for the exact diff. - CI. Wait for the required checks and the optional review status. Read the review threads. Failing checks go
through
loop-on-ciandfix-ci; comments are addressed one by one. - 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
Установить ship в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
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