[Adam''s Skills] Ship the work done in this conversation the way this repository says shipping works. Reads GIT_WORKFLOW.md at the repo root, the repo''s single source of truth for branching and releases, which says where a ship ends (an open pull request, a merge, staging, production), the review and merge rules, what agents may do, and each environment and how to verify it. If the file is missing it runs /setup-git-workflow to write it first. Grounds itself in the branches written during th...
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 Ship It?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/adamlinscott-ship-it)
---
name: ship-it
description: '[Adam''s Skills] Ship the work done in this conversation the way this repository says shipping works. Reads GIT_WORKFLOW.md at the repo root, the repo''s single source of truth for branching and releases, which says where a ship ends (an open pull request, a merge, staging, production), the review and merge rules, what agents may do, and each environment and how to verify it. If the file is missing it runs /setup-git-workflow to write it first. Grounds itself in the branches written during this session and the open and closed PRs behind them, then lands the work, deploys it as far as the file says, and verifies each environment is running the commit. If the release would carry other people''s unreleased changes into production, summarises whose work rides along and asks for confirmation first. Takes no arguments by default; an optional scope override such as "only staging" or "just the PR" stops it earlier. Invoke with /ship-it.'
disable-model-invocation: true
allowed-tools: Bash, Read, Grep, Glob, Write, Edit, AskUserQuestion, Agent
---
# Ship It
The work of this conversation is finished, or the user thinks it is. Your job is to take it as
far as this repository says shipping goes, which `GIT_WORKFLOW.md` defines, and to prove it got there
rather than assume it did.
Two failure modes to hold in mind. The first is stopping early: when the file says shipping ends
in an environment, a merged PR is not a shipped change, and a green deploy job is not proof the
environment is running your commit. The second
is shipping more than the user knows about: on most repos a release carries everything sitting
unreleased on the target branch, which can include work by other people and other agent
sessions. Section 4 exists entirely for that.
## 0. Read GIT_WORKFLOW.md
Read `GIT_WORKFLOW.md` at the repository root (`git rev-parse --show-toplevel`). It is the
team's source of truth for branches, reviews, releases and deploys, so follow it over anything
this skill would otherwise assume. `Ship it ends at` in its Summary is where a ship stops:
`pull request` (open and ready for review), `merged` (in the default branch), or the name of an
environment in its Environments table. Below, "the end point" means that value.
**If it is missing**, or is not in the setup template's format, read `../setup-git-workflow/SKILL.md`,
relative to this file, follow it to write the file, then continue here. If that skill is not
readable from here, stop and tell the user to install `/setup-git-workflow`, or to write
`GIT_WORKFLOW.md` themselves. Do not guess a route. A file created this way is not part of the
work being shipped: leave it uncommitted, and say so in the report.
## 1. Ground yourself before doing anything
Take no action until you can name, from evidence, all four of these. Read; do not recall.
**The work.** What this session actually produced — the branches you created or committed to,
and the commits on them. If the session is long or compacted and you cannot reconstruct it
confidently, do not guess: check `git log --author` for the configured user, recent branches
(`git branch --sort=-committerdate`), and the current branch, and state which of it you are
treating as "the work" so the user can correct you.
**The PRs.** For each branch: is there a PR, is it open, merged, or closed-unmerged? A branch
whose PR was closed without merging is a trap — the work looks done and is not.
`gh pr list --state all --head <branch>` and `gh pr view` settle it.
**The environments.** The Environments table in `GIT_WORKFLOW.md`: what each one deploys from, what
triggers it, and how to verify it.
**The route.** The ordered path from the branch to the end point, built from the file. For example
`branch → PR → main → auto-deploy staging → tag → production`.
Check that the file still matches the repo where it names something concrete: the base branch
exists, and the workflows it cites still exist and still trigger the way it says. If they do not,
and the difference changes the route, stop and ask with AskUserQuestion: follow the file, follow
what the repo now shows, or cancel and fix the file with `/setup-git-workflow`. Do not quietly
follow either one.
## 2. Scope
Default: **the file's end point.** When it is `pull request` or `merged`, nothing is
deployed by this skill, and sections 4 and 5 apply only to deploys that a merge itself triggers.
The user may pass an override, such as `only staging`, `skip prod`, `just the PR` or
`--env=dev,staging`. Honour it literally, as an earlier stop on the same route. An override
never adds a stop past the end point and never changes how the file says to get there. If the user
asks for that, tell them it needs a change to `GIT_WORKFLOW.md`. Say in your final report which stops
were deliberately left out, so a partial ship never reads as a finished one.
## 3. Land the work
Bring each branch in, in dependency order, as the file's Pull requests section says. Where a
pull request is required, open it if there isn't one, and mark it ready for review if it is a
draft. If a PR was closed unmerged, ask before reopening it, because that closure may have been
deliberate. Where none is required, push to the branch the file names. Name and base new
branches as Working branches says.
Keep the branch current with its base the way `Keep current with base` says. On conflict, apply
the policy in section 6.
Wait for the `Required checks` to pass. If a check fails on your own work, fix it; that is part
of shipping. If it fails on something you did not touch, stop and report. Do not merge around it.
If the end point is `pull request`, stop here and report.
Merge only as the Agents section's `May merge pull requests` allows, with the file's
`Merge method`. If it is `no`, or it is `after approval` and the required `Approvals` are not in
yet, stop at the PR that is ready for review and report what it is waiting on. Never use an admin override or a bypass to merge
past a review or a protection rule.
## 4. The confirmation gate — what rides along
Before anything reaches production, work out what else is going with it: everything on the
target branch (or between the last release and the new one) that is not yours. Use
`git log <last-released-ref>..<target> --format='%h %an %s'` — the release tag, the currently
deployed SHA, or the last production deploy, whichever this repo makes knowable.
**If everything in the release is this session's work**, no gate. Proceed.
**If it is not**, stop and ask. First a **very short** summary — a few lines, not a changelog:
each other author, and in plain terms what their change does. Have the `reviewer` agent read
those commits for it (Agent tool, `subagent_type: reviewer`; `general-purpose` if it is not
installed, and say so in a line): give it only the commit range and ask what each author's change
does, judged from the code rather than the commit messages. You write the summary from its report. Then ask with the
**AskUserQuestion tool** — a real "are you sure?", not a sentence in prose. Offer:
- Ship everything (recommended when the extra work is small and routine)
- Cancel — do not deploy
If the repo genuinely supports releasing only your commits, offer that as a third option. Do
not offer it otherwise; a cherry-pick invented on the spot is worse than an honest question.
Never bypass this gate on your own judgement. If the user wants it skipped, that is `/ship-it-now`,
which is their decision to make and not yours.
## 5. Deploy, then verify
Deploy to each in-scope environment in the file's order, lowest first, stopping at the end point.
Deploy only as the Agents section's `May deploy` allows; where it does not, stop and report the
environment as left for a person. Trigger each deploy the way its row and the Releases section
say: merge, tag, release, or `gh workflow run`. If a deploy needs an approval the file names, ask
for it or wait for it, never go around it. Watch each run to completion (`gh run watch`); a queued job is not a
deployed one.
Then **verify** each environment with its Verify column, and prefer proof over inference:
the deployed SHA from a health or version endpoint, `gh api .../deployments`, the platform's own
CLI, or the release tag on the environment. If an environment cannot be verified from here, say
exactly that. Do not upgrade "the job went green" into "it is live".
If a deploy fails, stop the chain there. Report what failed, what is already live, and what
your recommended next step is. Never quietly retry into production.
## 6. Merge conflicts
Resolve conflicts yourself, at low effort, when the resolution is obvious: both sides added to
the same list, formatting or import churn, a lockfile, one side is a strict superset. Keep both
intentions. Then make sure it still builds.
**Stop and ask the operator** — with AskUserQuestion — only when the conflict signals something
a merge cannot decide:
- The two sides want different behaviour from the same code. A genuine divergence of intent.
- Resolving either way removes or breaks behaviour the other side deliberately added.
- The conflict is in something structural — schema, migrations, config, a security or access
rule — where a wrong guess is expensive and quiet.
When you stop, describe the two intentions in one line each and name who wrote each side.
Everything else: resolve, note it in the final report, and keep moving.
## 7. Report
Close with a short report: what shipped and where it stopped against the end point, which PRs merged
or are waiting on review, which environments are confirmed running which commit, anything
deliberately skipped, any conflict you resolved on your own judgement, and anything still
outstanding. If `GIT_WORKFLOW.md` was written during this run, say that it is uncommitted and needs
review. If the work did not reach the end point, say so in the first line rather than the last.
## 8. Close-out check, after the ship (optional)
Once the report is out and the environments are confirmed, run `/are-we-done` if it is
installed. Skip this silently if it is not: never a prerequisite, never installed on the fly.
**After, not before.** `/ship-it` is often used deliberately to push work that is still in
testing, with a dirty tree and known gaps. A close-out sweep run before landing would flag every
one of those as undecided and argue with a user who has already decided — the fastest way to
make both skills annoying. Run afterwards, the same sweep is information rather than an
obstacle: the release is out, and the question changes from *may I ship?* to *what is left, now
that shipping is no longer the thing occupying you?*
It never gates the ship and never reverses one. Anything it surfaces is next session's work, or
the user's call — including a blocker, which by this point is a known-shipped defect to decide
about, not a reason to hold a release that has already gone.
If the ship was clean and `/check-skill-updates` is installed, run it last and append its one line.
Skip it after a ship that did not fully land: the user has something real to deal with.