ship-pr
Skill2 starsChanged 4 months agoMITView on GitHub
Ship a single change through a worktree -> branch -> PR -> squash-merge -> cleanup workflow - pick the right branch type (feat/fix/chore/docs/hotfix), implement, verify with this repo's real build/typecheck/test commands, open the PR, check CI, merge, and clean up. Use for any single PR-sized change in any git repo with a GitHub remote - a bug fix, a small feature, a doc edit, a dependency bump. For 3+ independently shippable PRs from one analysis pass, see parallel-ship. For sequential phases where each PR builds on the last, see epic-ship.
- Reads credentials
- Commits and pushes
13 other projects use a version of this.
Adopted by
Most recently taken up by
- gymcoach-app/gymcoachtheir own version, first seen Oct 5, 2026
- kentcdodds/kcd-skillstheir own version, first seen Oct 1, 2026
- Julien-Au/gymcoachtheir own version, first seen Sep 30, 2026
- labsai/EDDItheir own version, first seen Sep 29, 2026
- martinappberg/chimaeratheir own version, first seen Sep 28, 2026
- svyatov/supermatttheir own version, first seen Sep 23, 2026
Used with
Projects with it also use ideate, orchestrate and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
OpenAISkillideate
Generate image-based alternatives, remixes, or new design directions from a Product Design brief. Use when the user asks for design variants, visual exploration, remixes, or image-generated approaches from provided context.
Also in 3 projects that use this
blas0Skillorchestrate
Also in 3 projects that use this
Google CloudSkilltriage
Gather context on a change or bug and plan the implementation.
Also in 3 projects that use this
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- pedronauck/skills★ 633same name
- labsai/EDDI★ 383same name
- kentcdodds/kcd-skills★ 47same name
- gymcoach-app/gymcoach★ 31same name
- Julien-Au/gymcoach★ 31same name
- Upsolve-Labs/upstack★ 17same name
- azents/azents★ 16same name
- simonwong/skills★ 8same name
- martinappberg/chimaera★ 4same name
- sevenschulte/agentic-harness★ 2same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- criticSkill
- epic-shipSkill
- parallel-shipSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
If unsure between feat/ and fix/: did this behavior exist and work correctly before?
- Distinctive: line 36
Implement: do the actual work. Implement directly rather than just writing a plan, unless the user asked for a plan.
- Very specific: line 37
Verify - do not skip, do not just document it: check package.json (or the repo's equivalent - Makefile, Cargo.toml, etc.) for what's …
- Very specific: line 48
Ship: commit, push, gh pr create --fill.
- Distinctive: line 65
Never push directly to the default branch.
“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Ship PR
A repo-agnostic worktree -> branch -> PR -> squash-merge -> cleanup workflow. Works in any git repo with an origin remote and gh configured; the scripts detect the package manager and default branch rather than assuming pnpm/Turborepo/main.
This is the atomic unit of the ship stack: parallel-ship and epic-ship both call this skill internally (per fanned-out agent and per phase respectively). Invoke it directly for anything that is one PR-sized change.
Naming note: if a repo you work in defines its own project-level
ship-prskill (tuned to that repo's quirks), rename this personal-level copy (e.g.ship-pr-global) - in Claude Code's skill resolution, a personal-level skill overrides a project-level one of the same name, so an identical name would silently shadow the tuned version.
Step 1: Pick the branch type
| Change scope | Prefix |
Docs only (markdown, docs/**) | docs/ |
| New behavior | feat/ |
| Bug correction (behavior existed, broke) | fix/ |
| Tooling/refactor, no behavior change | chore/ |
| Production is broken right now | hotfix/ |
If unsure between feat/ and fix/: did this behavior exist and work correctly before? Correcting it is fix/. Adding something new is feat/.
Step 2: Worktree -> implement -> verify -> ship -> merge -> cleanup
- Worktree:
bash ${CLAUDE_SKILL_DIR}/scripts/worktree-new.sh <prefix>/<slug>. Run from anywhere inside the target repo. It fetches the remote default branch (detected locally viarefs/remotes/origin/HEAD, falling back to agit remote show originnetwork call only if that's unset, then tomain), creates.worktrees/<slug>/at the repo root (added to.gitignoreautomatically if missing), installs dependencies with whatever package manager the repo's lockfile indicates, and copies untracked.env*files from the repo root if present. - Implement: do the actual work. Implement directly rather than just writing a plan, unless the user asked for a plan. For large files (200+ lines), make incremental targeted edits rather than rewriting the whole file in one shot.
Verify - do not skip, do not just document it: check
package.json(or the repo's equivalent -Makefile,Cargo.toml, etc.) for what's actually available and run it:- A build script (
build,compile) if present. - A typecheck script (
typecheck,tsc, ortsc --noEmitdirectly) if the repo is TypeScript. - The test suite (
test). - Lint (
lint) if configured. - UI/visual change: run the app, take a screenshot, and actually look at it (use a screenshot-verification skill if you have one).
- Deps added/updated: install with
--frozen-lockfile/ci(not a plain install) to catch a drifted lockfile the way CI would. - Markdown touched: the skill-scoped hook on this skill greps added lines in every touched
.mdfile for em-dashes beforegit push/gh pr createand blocks if it finds any. Note this checks the diff, not the whole file - if this repo's CI whole-file-scans touched markdown (verify by checking the CI config), pre-existing em-dashes you didn't write can still fail CI even though this hook passed. - If the repo has branch protection requiring CI to pass, wait for it. If it doesn't (check repo settings or just try merging), CI is a second-opinion signal - don't sit and wait on a slow/queued run when the manual checks above already cover it.
Recommended CI job naming, if this repo is setting up checks from scratch:
docs-checkfor doc-only PRs (link/em-dash checks),code-qualityfor lint,unit-testsfor the test suite - scoped by changed-path so doc-only PRs skip the code checks.- A build script (
- Ship: commit, push,
gh pr create --fill. Merge: note that on private repos under GitHub's free plan there is no branch protection at all - nothing platform-side stands between a green PR and the default branch, so this skill's rules are the actual merge gate. The policy:
Change Merge behavior Why Docs-only Self-merge immediately Trivial verification, nothing platform-side to wait for feat / fix / chore Self-merge after verification Same default; step 3 just has more to clear first Payments, auth, data-integrity Leave PR open for human review The one exception - never self-merge, even on green CI Glance at
gh pr checks <PR#>. Still running/queued and not required to merge -> proceed, don't block on it. Red for something step 3 already predicted and fixed -> proceed. Red for something unpredicted -> stop and investigate before merging, don't merge blind. Otherwise:gh pr merge --squash --delete-branch, thenbash ${CLAUDE_SKILL_DIR}/scripts/worktree-close.sh <slug>immediately, not "later" - don't batch cleanup.
Model economics
This skill runs as a fork (context: fork), and a forked skill always inherits the invoking session's model - the Skill tool has no model parameter. Invoked from a frontier-tier session, every run costs frontier rates (~180k tokens per full implement-verify-merge cycle observed). For a mechanical, fully-specified change - and especially when fanning out several at once via parallel-ship - spawn Agent(model: sonnet) (or the cheapest tier that can do the job) with this skill's workflow steps written into the prompt instead of forking this skill. Reserve same-tier forks for changes needing real judgment. Five parallel frontier-tier forks once burned ~1M tokens and hit a session usage cap mid-epic; the Sonnet-agent rerun did equal-quality work at roughly 40% of the cost.
Hard rules
- Never push directly to the default branch. Every change is its own PR.
- Fork fresh from the remote default branch (
worktree-new.shdoes this automatically) - never build on top of another unmerged branch. - Close the worktree immediately after merge.
- One PR-sized change per invocation. If what you're doing is several independently shippable PRs from one analysis pass, use
parallel-shipinstead. If it's sequential dependent phases (PR N+1 builds on PR N), useepic-ship- it calls this skill once per phase in order. - High-risk changes (payments, auth, data-integrity, anything a human should eyeball before it goes live) should not self-merge on green CI - leave the PR open for human review instead of completing step 5 automatically.
Enforcement
The skill-scoped hook (scripts/check-em-dashes.sh) fires on every git push/gh pr create while this skill is active and blocks on em-dashes added to touched markdown. It cannot catch everything CI might check (lockfile drift, lint, types, whole-file em-dash scans) - the manual verify step above still matters.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

