/ship:ship [push|pr|merge] [context for the commit message]from ship
Ships finished work on a GitHub repo with gh: commits, pushes, and optionally opens a ready PR, waits for checks and merges. User-run only (/ship); agents delegate to shipper:shipper instead. Takes an optional level: push, pr or merge. Not for Forgejo or Codeberg (`forgejo-ship`).
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Carry current work through commit, push, and optionally PR and merge. The request is the authorization for every step at the chosen level, so don't pause for approval between steps. Stop and report when a gate fails.
Not for writing or improving a PR body (gh-pr), commit-only requests (git-commit), or acting on review comments (pr-comments), or Forgejo and Codeberg repos (forgejo-ship).
Arguments: $ARGUMENTS
The first word is the level when it is push, pr, or merge. The rest is context from the invoking session about what the work is and why. Use it for the commit body and the PR summary.
Use the level argument if given. Otherwise infer it from the context and take the lowest level that covers the request.
| Level | Request sounds like | Steps |
|---|---|---|
push | "commit and push" | commit, push |
pr | "commit, push, and open a PR" | commit, push, open PR, watch checks |
merge | "...then merge it" | all of the above, then merge |
gh pr merge --rebase method in step 5 is allowed.--no-verify, --admin, or any flag that skips hooks or branch protection.pr or merge level, branch off first (step 1).origin host (git remote get-url origin). Proceed when it is github.com or a host gh auth status --hostname <host> knows. Otherwise stop and report: "not a GitHub remote; on Forgejo or Codeberg use /forgejo-ship if installed".push level, stay on the current branch, including the default branch; the request authorizes it. At pr or merge level on the default branch, create a branch named by the repo's convention (git-commit holds the branch-naming rules) and carry the working changes onto it.git status --short --branch, git diff, git diff --staged, and git log --oneline -15. Use the repo's message convention (git-commit holds the rules; otherwise match recent history and use Conventional Commits). Stage explicit paths, leave unrelated or sensitive files out, and report them. Commit and let hooks run. If a hook fails, fix what it reports and make a new commit. With nothing to commit and unpushed commits ahead, go on to push.git push, or git push -u origin <branch> when no upstream exists. On a non-fast-forward rejection, stop and report. Don't rebase to make it fit. If branch protection rejects a push to the default branch, stop and offer the pr level.pr, merge). If the branch already has one (gh pr list --head <branch>), reuse it. Otherwise run gh pr create --base <default> --title ... --body-file ... as a ready PR. Title in the repo's convention. Body is a short summary from the context and any test evidence it names. Then run gh pr checks --watch.merge), only when every check passed. No checks configured counts as passing.
gh repo view --json squashMergeAllowed,mergeCommitAllowed,rebaseMergeAllowed allows. Never use a disallowed method; if rebase is the fallback and disallowed, ask. Report the method used and why.gh pr merge --<method> --delete-branch. A branch-protection refusal is a stop, not a reason to retry with flags.git switch <default>, git pull --ff-only). In a linked worktree where the default branch is checked out elsewhere, skip the switch and report it. Don't remove the worktree.gh run view <id> --log-failed in the report. The invoking session fixes it, with the failed-run procedure in gh-actions if installed, and runs ship again.Commit SHA(s), branch, PR URL, check result, merge result, and any files left uncommitted. Name the step that stopped the run and why.
What SKILL.md sets; muted values are Claude Code's defaults
shipper:shipper), waits for its resultOther plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin ship