/writing-prs:writing-prsfrom writing-prs
Use when drafting a pull request title or description, a reply to a maintainer or review bot (CodeRabbit, Greptile, Copilot), or a PR comment after a rebase or fix, especially for contributions to open-source projects maintained by others
Ships in writing-prs. 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.
A PR description is evidence for a busy maintainer: what changes, why it is correct, what was run, and what was not. It is sized to the change and contains nothing the diff already says.
examples.md shows the target shape and density. Read it before the first draft in a session.
git fetch upstream, gh pr list --search). If it has, report that instead of drafting.AGENTS.md, CLAUDE.md): sign-off identity, maintainer preferences, CI quirks.<TODO: …> in the draft, never an invented command or result.type(scope): <imperative, user-visible outcome>, lowercase, no period. Name the effect, not the mechanism.
fix(query): reject non-finite rates instead of reporting them as zerofix(build): compile the PNG test only when PNG support is enabledThe body is, in order:
Fixes #N. / Follow-up to #N. if one exists, then one paragraph saying what the PR changes. No heading above it.## Incremental queries, ## Affected platforms).120/120 byte-identical).**Trade-off:** behaviour that changes; Not measured: what was not exercised; what CI cannot catch; follow-ups as "I will send that as its own PR."Size follows the change. A one-line build fix is the opening paragraph plus two Testing bullets, with no headings (example 1). A multi-part fix gets the sections it needs and no more (example 2). Target: under ~350 words unless the cause truly needs more.
Voice: first person, plain declaratives, past tense for what was run. State facts and let the maintainer decide. When a decision belongs to them, offer the options in one line ("Happy to split it — just say the word").
If the repo requires descriptions in the contributor's own words, present the result as a draft for the user to rewrite.
Fixed in \`:` + what changed + how it was verified, in 1–4 sentences.Draft every description or comment longer than a sentence for the user's approval. Never post or edit a PR without it.
| Draft does this | Do this instead |
|---|---|
## Summary, ## Changes headings | Opening paragraph, no heading |
| Lists functions/files touched | Explain what the diff cannot show |
| Retells earlier PRs or the debugging story | One link: Follow-up to #N |
| Commands guessed from CONTRIBUTING | Session commands only, or <TODO> |
| "I think this is the right call" | **Trade-off:** + the fact |
| Headings on a 3-line fix | Paragraph + bullets |
🤖 Generated with … footer | One sentence of AI-use disclosure |
| Mechanism in the title | Outcome in the title |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub danilogr/writing-prs-skill --plugin writing-prs