/skills:writing-pull-requestsfrom skills
How a GitHub pull request body is written and kept true. Load BEFORE every gh pr create or gh pr edit, even when it was loaded earlier in the session.
Ships in skills. 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.
Write a pull request body a reviewer can act on. The reviewer, person or agent, reads it as the contract for the change: what it does, what it leaves alone, and what was shown to work. A claim the diff does not bear out costs a round of review, or a wrong finding.
gh pr create --body bypasses the repository template: GitHub applies
.github/PULL_REQUEST_TEMPLATE.md to the web UI only. Read that file and use
the sections that have something worth saying, under its headings and no
others. Where the project has none, use templates/PULL_REQUEST_TEMPLATE.md
beside this file.
The template is the only copy of the structure. Change the section list there, not here.
Write from git diff <base>...HEAD, not from memory of the work or from the
brief. The brief says what was meant; the diff says what the change does.
State what the code does, as the diff does it.
Not this: the upload's timeout now covers the whole request.
This: the upload's timeout now runs from the first byte sent to the last byte of the response; connecting is not counted.
The first is what the change set out to do. A reviewer checks the code against it, finds a mismatch, and raises a finding on the description. "Every", "each" and "all" are claims too: "every request now retries" is false while the health check still calls the client directly. Bound the word to what the diff touches.
A claim that nothing else is affected names the search behind it, run over
the whole repository, docs included. "Nothing else calls the old flag" is
false while a README still shows it. Search with git grep, and fix what it
finds or name it. Quote the command as it ran, with its paths and
exclusions: the claim reaches no further than that search did.
Find the risk in the diff. Ask what the changed code now does in its worst case. A timeout added to each of several calls in a loop bounds each call, not the loop; the worst case is their sum. A failure the change already stops on and reports, such as a build step that fails when its input moves, is what the change does: say it once, in What changed, not again as a risk.
squiz status still takes no argument" in What did not change tells the
reader nothing they would have doubted.Closes #N sits in Intent, and only where this change finishes the
issue. Otherwise "Part of #N", and what is left.go test was not run" tells the reader nothing.Each push can make the body false. Before pushing a fix, read the body against the new diff and rewrite the lines it changed, in place. Replace a stale claim; do not append the history of how it changed. What a review round found goes in the thread replies, not the body.
gh pr create --title "<one line, imperative>" --body "$(cat <<'EOF'
<the sections worth keeping, from the template, comments removed>
EOF
)"
gh pr edit <number> --body "$(cat <<'EOF'
<the whole body, rewritten against the new diff>
EOF
)"
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
12 skills in this plugin
/cutting-releasesFor a project that has shipped and tracks releases in GitHub milestones. How a release's GitHub milestone becomes a version bump, a tag and a GitHub Release. Load BEFORE cutting a release./executing-milestonesFor a project built from nothing, planned in docs/specs/milestones.md — not one that tracks releases in GitHub milestones. How a planned milestone's issue tree yields the issues ready to work, which working-issues then dispatches. Load BEFORE executing a milestone./planning-milestonesFor a project built from nothing, planned in docs/specs/milestones.md — not one that tracks releases in GitHub milestones. How a named milestone there becomes an epic issue and one sub-issue per subtask. Load BEFORE planning a milestone or filing its issues.npx claudepluginhub jacygao/skills --plugin skills