/ratchet-github:pull-requestsfrom ratchet-github
Use when deciding what to do with review comments, when saying a pull request is ready or can be merged, when opening, stacking, closing, or merging one, when bringing a branch up to date or taking work from another branch, or when posting a body with gh. States what a finished pull request looks like, how to answer review, scope, stack, and when a merge needs approval.
Ships in ratchet-github. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read every applicable AGENTS.md first. Repository-local policy overrides these defaults. It
owns branch names, the merge method, required reviews, and who may merge.
This skill states outcomes: what must be true of a pull request, not the commands that make it
true. Where the repository has a pull request tool, such as pr-shepherd, use it for the
mechanics (waiting on checks, hiding stale bot comments, resolving threads, the merge command)
and follow its instructions. For the title and body, use the pr-description skill. For a rebase
or force push, use git-commit-checklist.
Commit, push your branch, and open or update a pull request as the work warrants, without asking first. Each is reversible and is how the work gets reviewed. Merging is not; see "Merge" below.
Two open pull requests that change the same files or the same contract will conflict, and the second to merge pays for it.
gh stack (a gh extension). Never open a
pull request against the default branch with a hand-written "Stacked on #N", "Depends on #N" or
"Base: " note, and never point gh pr create --base at another unmerged branch by hand
outside a stack tool. A hand-made base is not retargeted or kept in order when the parent
merges or is abandoned. With no stack tool installed, install one or ask; do not fall back.git-commit-checklist skill has the steps.--force-with-lease; the
git-commit-checklist skill has the steps. Merge the base in only when the repository says to,
or when someone else also pushes to the branch.This holds for a pull request, an issue, and a comment.
mktemp makes in the
session's scratch directory. Put that literal path in the write, any append, and
--body-file, or do all of them in one command. A shell variable set in one tool call is empty
in the next, and $TMPDIR can differ between a sandboxed call and one outside the sandbox. A
fixed name such as body.md or /tmp/body.md can hold another session's body, and gh posts
whatever the file holds.gh pr or gh issue create or edit, fetch the body back
(gh pr view N --json title,body) and check the title, the body, and any closing reference.
After gh pr comment or gh issue comment, read the comment back the same way and check its
body. Fix a wrong one with an edit, not a second pull request, issue, or comment.Read review response before acting on review comments. In short: read the whole round first, give every item exactly one disposition, and push once.
A pull request is ready to hand off or merge when all of these hold. Check each one against the pull request as it is now, not from memory of the work, and fix what does not hold before saying it is ready.
pr-description skill.If one cannot be made true, say which and why in the handoff. Do not report the pull request as ready with a gap unstated.
Close a pull request without asking when either holds:
A closed pull request says why and links its replacement, such as "Superseded by #47, which moves the retry into the worker." One closed with no comment leaves the next reader to work out whether the work was lost.
Fixes #12).Closing an issue as superseded is in the github-issue skill.
Merging is the one step that needs a person's approval for each pull request, unless repository policy grants standing authority, such as "merge once checks and reviews pass".
Opening, updating, stacking, tidying, and closing a pull request are normal steps of the work. Do them without asking.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jongleberry/ratchet-stack --plugin ratchet-github11 skills in this plugin
/dependabotUse when writing or reviewing dependabot.yml or a workflow that runs on Dependabot pull requests, when asked to trigger, re-run, or force a Dependabot run, or when a Dependabot pull request has a conflict, a stale lockfile, or a failing bump. Configures coverage, grouping, cooldowns, and secrets, starts an update check on demand, and repairs a Dependabot pull request./git-commit-checklistUse before every git commit, before a rebase, reset, or force push of a branch another person or agent may push to, when a rebase or merge conflicts in a lockfile, a generated file, or source, when a stacked branch's base has merged, and when git fails on a .lock file. Check scope, staged content, and message, resolve conflicts without taking a side, and force-push or clear a lock safely./github-actions-authoring