ship-pr
Skill1 starsChanged 30 days agoMITView on GitHub
Use when the user wants to commit their work, write commit messages, ship a branch, push, or open or prepare a pull request (PR/MR) and its description.
- Reads credentials
- Commits and pushes
26 other projects use a version of this.
Adopted by
Most recently taken up by
- devcules/devculestheir own version, first seen Nov 8, 2026
- simonwong/skillstheir own version, first seen Nov 6, 2026
- mattbutlerengineering/mattbutlerengineeringtheir own version, first seen Nov 1, 2026
- labsai/EDDItheir own version, first seen Oct 27, 2026
- gymcoach-app/gymcoachtheir own version, first seen Oct 26, 2026
- Julien-Au/gymcoachtheir own version, first seen Oct 26, 2026
Used with
Projects with it also use ideate, triage and 7 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 4 projects that use this
Google CloudSkilltriage
Gather context on a change or bug and plan the implementation.
Also in 4 projects that use this
GoogleSkilldiagnosing-bugs
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.
Also in 3 projects that use this
GoogleSkilldomain-modeling
Build and sharpen a project's domain model. Use when the user wants to pin down domain terminology or a ubiquitous language, record an architectural decision, or when another skill needs to maintain the domain model.
Also in 3 projects that use this
Hugging FaceSkillimplement
Make tests pass. Invoke after /write-tests produces failing tests.
Also in 3 projects that use this
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 3 projects that use this
- +3 more from google
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- kentcdodds/kentcdodds.com★ 2.5ksame name
- kentcdodds/kody★ 926same name
- pedronauck/skills★ 649same name
- labsai/EDDI★ 389same name
- openbootdotdev/openboot★ 277same name
- gymcoach-app/gymcoach★ 182same name
- Julien-Au/gymcoach★ 182same name
- kentcdodds/kcd-skills★ 64same name
- svyatov/supermatt★ 20same name
- devcules/devcules★ 17same name
16 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 repository12 other files it gives its agents.
- brag-docSkill
- design-docSkill
- fix-bugSkill
- incidentSkill
- one-on-oneSkill
- postmortemSkill
- refactorSkill
- review-prSkill
- standupSkill
- start-ticketSkill
- weekly-updateSkill
- whats-nextSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 5 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 26 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 26
If <base> comes back empty (no origin/HEAD and no main or master), ask the user which branch is the base before going on.
- Very specific: line 30
On the base branch with changes: create a branch first, git switch -c <type>/<short-slug>, named after the change.
- Very specific: line 32
Incident notes stay out: leave incident-*.md and postmortem-*.md unstaged unless the user asks to commit them.
- Distinctive: line 33
Stage by explicit path: Never git add -A, git add ., git add --all, or git commit -a.
- Distinctive: line 34
Run the project's tests or lint if it has them.
- Distinctive: line 42
Use the repo's template if there is one.
- Very specific: line 69
If the remote is not GitHub (e.g.
- Very specific: line 76
If git push fails with "Repository not found" or a 403, retry it with that account's token: git -c credential.helper= -c …
- Distinctive: line 80
Never push or open a PR without an explicit yes.
- Distinctive: line 81
Never commit to the base branch unless the user explicitly asks to.
- Very specific: line 82
Never stage secrets; never use add -A, add ., or commit -a.
“Common” is measured: kept by at least 6 in 10 of the 26 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
Turn the working tree into clean commits and a PR description a reviewer can read in a minute.
1. Look
base=$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's|^origin/||')
[ -n "$base" ] || base=$(git branch --list main master | head -1 | tr -d ' *')git status --short --branch
git diff --stat; git diff --cached --stat; git diff --cached --name-only
git log --oneline <base>..HEAD
git log -10 --format=%s <base><base> is the remote's default branch (snippet above), falling back to main or master. Also look for a PR template: .github/pull_request_template.md or .github/PULL_REQUEST_TEMPLATE/.
If <base> comes back empty (no origin/HEAD and no main or master), ask the user which branch is the base before going on.
2. Guard
- On the base branch with changes: create a branch first,
git switch -c <type>/<short-slug>, named after the change. Never commit to the base branch unless the user explicitly asks to commit to it. - Never stage secrets or junk:
.env*,*.pem,*.key, credential files,node_modules/, build output, large binaries. If any are untracked, leave them out, tell the user, and suggest a.gitignoreline. If one is already staged (checkgit diff --cached --name-only), unstage it withgit restore --staged <file>, tell the user, and suggest.gitignore. - Incident notes stay out: leave
incident-*.mdandpostmortem-*.mdunstaged unless the user asks to commit them. - Stage by explicit path. Never
git add -A,git add .,git add --all, orgit commit -a. - Run the project's tests or lint if it has them; report failures before committing.
3. Commit
One concern per commit. Follow the repo's message style from step 1; default to conventional commits: type(scope): imperative summary, max 72 characters, with a body explaining why when it is not obvious.
4. PR description
Use the repo's template if there is one. Otherwise:
## What
- <what changes for users or callers>
## Why
<the problem, or the ticket link>
## How to test
<steps or commands>
## Risk
<what could break: migrations, flags, config>The title follows the commit style.
5. Hand off
Show the commits made and the PR draft, then ask: "Push and open the PR?" Only after a yes:
git push -u origin <branch>
gh pr create --title "<title>" --body-file <file>If the remote is not GitHub (e.g. GitLab) or gh is missing, give the push command and the compare/MR URL or paste-ready text instead of gh pr create.
gh account: the user may have several gh accounts, and the active one may not see this repo. Before the first gh call, list each account's access:
for u in $(gh auth status 2>&1 | sed -n 's/.*account \([^ ]*\).*/\1/p'); do echo "$u $(GH_TOKEN=$(gh auth token --user "$u") gh repo view --json viewerPermission -q .viewerPermission 2>/dev/null)"; done; truePick the first account with ADMIN, MAINTAIN or WRITE, else one with READ or TRIAGE. If none shows a permission, skip every gh call. Run every gh call as that account, GH_TOKEN=$(gh auth token --user <account>) gh ..., with 2>/dev/null. Never run gh auth switch.
If git push fails with "Repository not found" or a 403, retry it with that account's token: git -c credential.helper= -c 'credential.helper=!f(){ echo username=<account>; echo "password=$(gh auth token --user <account>)"; }; f' push -u origin <branch>.
Rules
- Never push or open a PR without an explicit yes.
- Never commit to the base branch unless the user explicitly asks to.
- Never stage secrets; never use
add -A,add ., orcommit -a.
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.

