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 Pr?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/rpvsilva-ship-pr)
---
name: ship-pr
description: Take the current changes to a merged PR by the repo's own branch, commit, check and merge rules.
disable-model-invocation: true
---
Ship the current changes as one PR, the way this repo wants PRs shipped. The repo's rules win over every default below.
## Steps
1. **Learn the rules** ([how](../_shared/conventions.md#learn-the-rules); notes file `.agents/ship-pr-notes.md`). Besides the identity, note:
- **Commit convention** (e.g. Conventional Commits), else match `git log`.
- **Checks**: the local command that runs what CI runs.
- **Merge rule**: whether an agent may merge, and how (a merge script, required checks, approval tiers). With no rule, the agent does not merge.
Done when you can name the identity and each of the three, or know the repo is silent on it.
2. **Branch.** If on the default branch, `git switch -c <type>/<short-name>`. Done when HEAD is a new branch holding only the changes for this PR. When unrelated changes are mixed in, ask which ones belong.
3. **Check.** Run the checks from step 1 and fix what fails. Done when they all pass.
4. **Commit and push.** Commit with the repo's convention, then `git push -u origin <branch>`. Done when the branch is on the remote.
5. **Open the PR** with the identity from step 1, titled by the commit convention: a squash merge makes the title the commit on the default branch. Fill every section of the template from this PR's own diff: under testing, the commands you ran and their results; under risk, what this change could break, each claim traceable to a changed file. When the branch already has an open PR (`gh pr view` on GitHub), update its body (`gh pr edit <n> --body-file <file>`), set its title when it differs (`gh pr edit <n> --title <title>`), and mark it ready for review (`gh pr ready <n>`) instead of opening a new one; where the host has no drafts, drop a `WIP:` title prefix instead. Done when the PR URL exists, the PR is not a draft, and no template section is empty.
6. **Get it green.** Inside a `build-epic` run, read the `ci:` line of the run's `decisions.md` first (its `setup.py` wrote it): with `ci: off`, no CI runs on this PR, so skip the watch; the step 3 checks are its proof, and the report says so. Otherwise `gh pr checks <n> --watch`. On a **red** check, start the PR fixer agent if your harness defines one, otherwise follow [fix-pr](../fix-pr/SKILL.md) yourself; then watch again. When the PR still lists no checks a few minutes after its push (CI is off, or no workflow runs on its base), the step 3 checks are its proof: say so in the report. Done when every check passes, the PR has no checks (or the run says `ci: off`) and step 3 passed, or a failure remains that needs a human (a secret, an approval).
7. **Merge** only when the merge rule from step 1 lets an agent merge this PR, using exactly the method it names. Done when the PR shows `MERGED`, or is green and waiting on a named person.
8. **Clean up** after a merge: `git switch <default-branch> && git pull --ff-only`, delete the local branch.
## Report
The PR URL and its state: **merged**, or **waiting** and on whom (approval, a failing check you could not fix and why).