Take finished work through to merge. Commits in topical pieces, opens the pull request with a description that links the session, then binds this session to the pull request so review comments, failing checks and a stale branch wake it until the merge lands. Use when asked to ship, open a PR, or handle review feedback; "feedback" works the open threads on the current PR.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Cast Ship?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/codecast-sh-cast-ship)
---
name: cast-ship
description: Take finished work through to merge. Commits in topical pieces, opens the pull request with a description that links the session, then binds this session to the pull request so review comments, failing checks and a stale branch wake it until the merge lands. Use when asked to ship, open a PR, or handle review feedback; "feedback" works the open threads on the current PR.
argument-hint: "[feedback]"
---
Other tools poll a pull request. A shepherded pull request wakes this session
when something happens to it, and the session sleeps in between.
## Before committing
Run the checks the repository defines (typecheck, tests, lint) and fix what
they find. Read `git status` for changes that belong to other sessions and
leave those out. Group the rest into topical commits with short messages that
say what changed and why; never one commit for unrelated work.
## Shipping everything in a shared checkout
When the work to ship is everything the sessions in a shared checkout left
uncommitted, not just this session's, use `cast ship checkout` rather than
committing by hand. `cast ship checkout --dry-run --json` freezes the tree and
groups the changed files by the session that wrote them, with each session's
state and last words. Judge every group before it goes: hold one whose session
is mid-change or says it is not finished (`--hold <group>`), rewrite messages
to say what changed (`--message <group>=<text>`), and split a group that holds
two changes by moving paths between groups in the plan file.
`cast ship checkout --plan` with those flags then ships exactly the frozen
tree; `--commits-only` re-pushes the checkout's own commits and holds every
group. When it stops (a check failing in a
shipped file, a shipped file importing a held one, a conflict), fix the cause
and plan again. The repo's `[ship]` table in `.codecast/workspace.toml` says
whether it pushes the default branch or opens a pull request, and what
deploys.
## Open the pull request
Keep the description short and in a fixed shape: why the change exists, in
one sentence; one to three things the reviewer should know before reading
(a risk, a choice they may question, where to look first); an outline of
the change by area, a line each; how it was verified, briefly (screenshots
via `cast image`); and the session link from `cast link`. Push and open
with `cast pr create -t "<title>" -b -` (it runs `gh pr create`; `--dry-run`
shows the description first). When the bound task has a change
guide from its handoff, the description ends with it as a walkthrough, so
don't retell the change file by file. If the work is bound to a task, comment
the PR url on it.
## Shepherd it
```bash
cast pr shepherd on # the branch's PR; a ref or url for another
cast state --status dormant "Shepherding PR #<n>; wakes on review, checks and merge"
```
The bound session is woken on a review, a failing check, a stale branch, a
conflict and the merge. On each wake:
- Review threads: `cast pr threads`, fix or answer each, push, then `cast pr
resolve <thread>` for the ones you settled. Do not resolve a thread you
disagreed with; reply on it and leave it open.
- Failing checks: `gh run view <id> --log-failed`, fix, push.
- Behind or conflicted: `git fetch origin main && git rebase origin/main`,
resolve, force push with lease.
- Approved and green: merge only when the human asked for it or the plan
says the agent merges; otherwise pin `--status blocked` naming the merge as
theirs.
- Merged: `cast pr shepherd off`, close the task with `cast task done`,
pin `--status done`.
## `feedback`
Skip the commit and open steps: run the review threads step on the current
pull request, once, and report which threads were fixed, answered or left
open with the reason.