/ship:closefrom ship
Use when a PR has merged and its feature should be closed out, or the user says it's merged, done, or asks to close it out.
Ships in ship. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Closing out records what shipped and closes the feature's tracking issue. It never reviews: once
the PR has merged a review can block nothing, so don't call Skill(ship:ship) for it. If the PR
hasn't merged, stop and say so; reviewing and the merge gate are ship's job.
Find the feature. The branch is the PR's head branch
(gh pr view <PR#> --json headRefName,state,headRefOid). feature status --branch <branch>
works from any checkout of the repo. Not tracked: there's nothing to close, say so and stop
(don't feature adopt a merged PR).
Check the gate says MERGED. Anything else means the PR hasn't merged: stop. If the status
says it's already closed out, go to step 5.
Decide the open problems. A PR merged past the gate can leave problems open
(feature problem list --open --branch <branch>), and feature merge refuses until each has a
decision. One the list marks handed-off is decided already: leave it. Ask the user, for each
of the others:
feature problem hand-off <#> --reason "fix in a separate PR" --branch <branch>, then, after closing out, start that PR (Skill(ship:start) off the base branch)
with Closes #<problem> in its description;feature problem hand-off <#> --reason "kept as an issue: …" --branch <branch>.Either way it stays open, labelled handed-off, outside the feature. A problem that isn't
relevant (and for a PR closed unmerged, whose problems never landed) closes instead: feature problem wontfix <#> --reason "…" --branch <branch>. Use decisions the user already gave in this
conversation; otherwise ask, with one recommendation and its reason for each, then apply them.
Close out: feature merge --branch <branch>. Never --force: it exists for features that
shipped without their PR merging. The command writes what the gate still had outstanding (an
unreviewed tail, the problems handed off) into the record; pass that on in the report.
Tidy up.
If your session is in the feature's checkout, leave it (ExitWorktree, action: "keep").
feature tidy --branch <branch> removes the checkout and the local branch, once they hold
nothing the PR doesn't. It removes nothing while the checkout holds any of these, and lists
them:
status;.git git can't open outside a cache;Ignored files that running the project makes (.env, a local config, logs: the main
checkout has them too) and caches (.venv, node_modules) go without asking. A
branch another is stacked on stays; tidy says so.
When it refuses, act on what it lists: commit and push work, or ask the user about an
ignored path or a repository, with your recommendation, and pass each one they OK deleting
as --accept <path>. A registered worktree can't be accepted: close it out first. A folder you can't empty was made by something running as root, a
container usually: fix where it's made so it's made as the user, and never reach for sudo.
When the branch is checked out in the main checkout, tidy leaves the checkout: check out the
base branch there, pull it, then run feature tidy --branch <branch> again, which deletes the
branch.
Report in two or three lines: the feature closed, what shipped outstanding, what happened to each open problem (handed off to a fix PR, kept as an issue, or wontfix), any fix PR you started, and what you removed or left.
feature reconcile [--dry-run] closes out every merged feature in the repo at once, for features
whose branch is long gone; it refuses the same way while a feature has an undecided problem.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub vladsavelyev/skills --plugin ship5 skills in this plugin
/fixUse when `Skill(ship:ship)` fixes the open problems of its run./reviewUse when `Skill(ship:ship)` runs a review round of a PR, or the user asks for a single review round without fixing./shipUse when the user asks to ship a PR, or to babysit or watch one./startUse when the user starts new work — a new feature, branch, worktree or draft PR.