write-pr
Write a concise GitHub pull request body with five headings. The headings are Background, Design Decisions, Changes, Verification Performed, and Post-Merge…
by lvlup-sw★ 19 GitHub stars
Install write-pr in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Write a Pull Request
Fill PULL_REQUEST_TEMPLATE.md. Write in Simple English. Keep the body short.
When this skill applies
When you create, open, submit, or update a pull request, use this skill.
Use it for gh pr create, GitHub MCP create_pull_request, and body edits.
Do not use a different heading set. Do not add a Summary or a Test Plan.
Before you write
- Read the full diff against the base branch.
- Read the commit subjects on this branch.
- If linked issues or design docs add facts the diff does not show, read them.
Hard limits
Use only these headings, in this order:
- Background
- Design Decisions
- Changes
- Verification Performed
- Post-Merge Operations
Keep the whole body under 250 words.
If a heading has no content, write None. under it.
Do not add a sixth heading.
Do not leave HTML comments in the submitted body.
Do not add a "Made with" or "Generated with" footer.
Simple English
Apply the simple-english skill in pragmatic mode.
If that skill is not in context, apply these rules:
- Descriptive text uses simple present or simple past.
- Descriptive sentences stay under 25 words.
Post-Merge Operationsis a procedure. Use the imperative.- Procedural sentences stay under 20 words.
- One instruction per sentence.
- Put
IfandWhenat the start of the sentence. - Use only the modals
can,will, andmust. - Do not use
should,would,may,might, orcould. - Do not use contractions or semicolons.
- Do not use
e.g.,i.e., oretc. - Pick one name per thing and keep it.
- Delete filler that adds no fact.
Then run the simple-english self-check on the draft.
Section rules
Background (descriptive)
State why the change exists.
Name the problem, the constraint, or the linked issue.
Use two to four sentences.
Put GitHub close keywords on their own line, for example Closes #123.
Do not restate the diff.
Design Decisions (descriptive)
State only the choices a reviewer cannot infer from the diff.
Use a short bullet list.
If you made no such choice, write None.
Do not narrate the design history.
Changes (descriptive)
State what landed, at component level. Bold the component. Then write one short clause. Do not list files. Do not paste commit messages. Three to seven bullets is enough.
Verification Performed (descriptive, simple past)
State what you ran and the result. Name the command and the outcome. If you did not run the test suite, say that. Do not write an unchecked future checklist. Do not invent runs.
Post-Merge Operations (procedural)
State the steps a human must do after merge.
Put a required condition before the command.
If no step is required, write None.
Do not tell the reader to merge the pull request.
Title
Write a conventional title of the form type-colon-what.
Keep the title under 72 characters.
Use the imperative: Add, Fix, Pin, Remove.
How to submit
Write the body to a file. Then pass that file to the create command.
Do not rely on GitHub to fill the template. Your --body replaces it.
Example
Before: extra headings, a future checklist, and a generator footer.
After:
## Background
`codeql.yml` and `dependency-review.yml` did not take the `enabled:` input.
The other PR-time gates already have that input.
A docs-only pull request still ran a full CodeQL job.
This change unblocks lane targeting in `lvlup-sw/hierophant`.
Tracking: lvlup-sw/.github#38.
## Design Decisions
- Add `enabled:` in the same shape as the other four gates.
- Use `if: ${{ inputs.enabled != false }}` so a bad value still runs the job.
- Leave `update-baseline` unchanged. Consumers call it only on the default branch.
## Changes
- **`dependency-review.yml` and `codeql.yml`** — accept `enabled:` (default `true`).
- **`canary-enabled-input.yml`** — cover both new callers.
- **Consumer guide** — name which reusables accept the input.
## Verification Performed
- `actionlint` was clean on the three changed workflows.
- `pytest actions/ci-lanes/tests` — 39 passed, 164 subtests.
- The canary asserts that a skipped inner job still reports the two-part check name.
## Post-Merge Operations
None.
Anti-patterns
- Do not add extra headings such as Summary, Test Plan, Checklist, Docs, Proof, or Related Issues.
- Do not add a bullet for every file.
- Do not repeat the same fact in two sections.
- Do not name classes and methods that the diff already shows.
- Do not write unchecked boxes for work you plan to do later.
- Do not add ritual
N/Achecklists. - Do not narrate the work phase by phase.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the write-pr skill do?
Write a concise GitHub pull request body with five headings. The headings are Background, Design Decisions, Changes, Verification Performed, and Post-Merge Operations. When you create, open, submit, or update a pull request, use this skill. Use it for a PR description or for gh pr create. Do not use this skill for commit messages alone.
How do I install the write-pr skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the write-pr skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…