ship-pr
Skill2 starsChanged 7 days agoMITView on GitHub
Open or update a PR, watch CI and review, address review threads, and merge only with explicit --merge.
- Commits and pushes
38 other projects use a version of this.
Adopted by
Most recently taken up by
- wafflebase/wafflebasetheir own version, first seen Nov 30, 2026
- altisvc/claude-skillstheir own version, first seen Nov 29, 2026
- ritmillio/skillstheir own version, first seen Nov 29, 2026
- kaiitunnz/claude-skillstheir own version, first seen Nov 29, 2026
- scottwater/skillstheir own version, first seen Nov 29, 2026
- vzakusylo/victrontheir own version, first seen Nov 29, 2026
Used with
Projects with it also use ideate, review-diff and 10 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
thunderkdsSkillreview-diff
Generate a Markdown review file with C4 architecture diagrams and code walkthrough for the current git changes
Also in 3 projects that use this
tekumaraSkillbabysit-pr
Monitor a pull request through review and CI, enabling GitHub auto-merge by default. Use when the user asks to monitor, watch, or babysit a PR.
Also in 3 projects that use this
jaydubya818Skillwhy
Use when design rationale must be recovered from source history and available records.
Also in 3 projects that use this
Hugging FaceSkillimplement
Make tests pass. Invoke after /write-tests produces failing tests.
Also in 6 projects that use this
Google CloudSkilltriage
Gather context on a change or bug and plan the implementation.
Also in 4 projects that use this
Other versions38 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 38
- Expensify/App★ 5.1ksame name
- kentcdodds/kentcdodds.com★ 2.5ksame name
- kentcdodds/kody★ 1ksame name
- labsai/EDDI★ 393same name
- gymcoach-app/gymcoach★ 200same name
- Julien-Au/gymcoach★ 200same name
- TabbyML/pochi★ 128same name
- kentcdodds/kcd-skills★ 72same name
- wafflebase/wafflebase★ 70same name
- svyatov/supermatt★ 41same name
28 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 repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- customize-harnessSkill
- test-hygiene-scannerSkill
- batchSkill
- connectSkill
- editSkill
- genSkill
- historySkill
- modelsSkill
- progressSkill
- security-reviewSkill
- statusSkill
- troubleshootingSkill
- workflowSkill
- workflowsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 12 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 38 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
2
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
- Distinctive: line 26
Read: PR metadata, checks, unresolved review threads, and the diff only when a thread needs it.
- Distinctive: line 28
Do not read: the whole repository or unrelated PRs.
- Distinctive: line 44
Update the body only when scope or verification changed.
- Distinctive: line 45
Watch: Run the watcher in the background:
- Very specific: line 86
If branch protection needs a human approval, stop and report it.
- Distinctive: line 91
Use judgment only for:
- Distinctive: line 97
Do not invent CI results or resolve a thread you did not handle.
- Distinctive: line 110
Stop if the worktree is dirty, the branch is unpushed, or preflight fails.
- Distinctive: line 111
Stop if the watcher times out or the PR is blocked on a human approval.
- Distinctive: line 112
Stop after three review cycles and report the remaining threads.
- Very specific: line 113
Never merge without the caller's explicit --merge.
- Distinctive: line 117
Default: read PR metadata, checks, and unresolved threads.
- Distinctive: line 120
Do not re-fetch the same threads after a push.
- Distinctive: line 122
Do not dump full review threads or CI logs.
“Common” is measured: kept by at least 6 in 10 of the 38 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
<!--
contract: .claude/rules/doctrine/skill-execution.md
version: 2.0.0, owner: John D
invokes: ship-pr/scripts/watch_pr.py
-->Open or update a PR, watch CI/review, address threads, and merge only when the
caller asked for --merge.
Inputs
- Required: a PR number/URL or the current branch; explicit
--mergeto allow merging. - Read: PR metadata, checks, unresolved review threads, and the diff only when a thread needs it.
- Do not read: the whole repository or unrelated PRs.
Deterministic Steps
- Preflight. Require
git statusclean and the branch pushed. Confirm the PR body links an issue (Closes #Nor a link). Run/preflight; fix failures, never bypass a hook. - Find the PR.
gh pr view --json number,url,state 2>/dev/null - Open if missing. Compose the body from the real change: what/why, verified
commands, risks/rollback, issue link. Then:
Update the body only when scope or verification changed.gh pr create --base main --title "<type>(<scope>): <summary>" --body-file <file> - Watch. Run the watcher in the background:
Exit codes:gitdir=$(git rev-parse --git-dir) watcher=.claude/skills/ship-pr/scripts/watch_pr.py [[ -f $watcher ]] || watcher=templates/_shared/skills/ship-pr/scripts/watch_pr.py python3 "$watcher" "$PR" --timeout 1200 > "$gitdir/ship-pr-watch.log" 2>&1 &0settled,10CI failed,20changes requested,30blocked/draft/conflict,40timeout,50merged/closed. It never merges. - Fetch unresolved threads.
The script owns the GraphQL query, repo lookup, and resolved/outdated filter.python3 .claude/skills/ship-pr/scripts/pr_threads.py --pr "$PR" - Triage each. Real defect → fix + test + rerun preflight + push. Misread → reply with evidence. Separate concern → linked follow-up issue + reply. Ambiguous → leave open and list for the human.
- Reply and resolve.
Resolve only what was handled or rebutted:gh api graphql -f query=' mutation($thread: ID!, $body: String!) { addPullRequestReviewThreadReply(input: {pullRequestReviewThreadId: $thread, body: $body}) { comment { id } } }' -F thread="$THREAD" -F body="$BODY"gh api graphql -f query=' mutation($thread: ID!) { resolveReviewThread(input: {threadId: $thread}) { thread { isResolved } } }' -F thread="$THREAD" - Loop cap. Repeat watch/fix at most three cycles; then report what remains.
- Merge only with
--merge. Require preflight green, watcher0,mergeStateStatus=CLEAN, noCHANGES_REQUESTED, no unresolved blocking thread, and nodo-not-mergelabel. Then:
This repo squash-merges (seegh pr merge "$PR" --squash --delete-branch.claude/rules/enforcement.mdrule 26). If branch protection needs a human approval, stop and report it. Do not use--adminor bypass hooks.
LLM Judgment
Use judgment only for:
- classifying a review comment as defect, misread, or separate concern;
- writing the reply/rebuttal;
- deciding whether an ambiguous thread needs the human.
Do not invent CI results or resolve a thread you did not handle.
Output
PR: <url>
CI: <final state> Review: <state> Merge: <commit or not merged>
Threads: <fixed> fixed, <rebutted> rebutted, <open> open
Follow-ups: <links or none>Stop Conditions
- Stop if the worktree is dirty, the branch is unpushed, or preflight fails.
- Stop if the watcher times out or the PR is blocked on a human approval.
- Stop after three review cycles and report the remaining threads.
- Never merge without the caller's explicit
--merge.
Token Budget
- Default: read PR metadata, checks, and unresolved threads; open the diff for a thread only when needed. Read the full thread when a truncated body would make the triage a guess.
- Do not re-fetch the same threads after a push; watch once, then fetch.
- Target ≤ 250 words; use a compact table if there are more than five threads.
- Do not dump full review threads or CI logs.
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.

