Forge PR Writing
Write PR descriptions that fellow devs actually want to read. The writing guidance below is forge-agnostic — only the gh commands in the "Updating existing PRs" section are GitHub-specific today. Bitbucket support is tracked in srid/agency#10.
Anti-patterns (what LLMs typically produce)
- Flat bullet lists of every file changed
- Implementation-detail dumps ("added
fooparameter tobarfunction") - Generic titles like "Update configuration" or "Fix bug in module"
- "## Changes" / "## Testing" / "## Summary" boilerplate headers
- Restating the diff in English
- Wall of prose for content that's _actually_ a list, comparison, or flow — five features described in one sentence, two before/after fixes blended into a paragraph, an architecture seam explained in words instead of drawn
What to write instead
Title: Short, specific, interesting. Convey _what changed from a user/dev perspective_, not which files were touched. Use imperative mood. Under 70 chars.
Body: Open with a paragraph. Structure:
- Opening paragraph — What this PR does and _why_, in 2-3 sentences. Bold the key behavioral change. If there's a motivating problem, state it directly.
- Details — paragraph(s), bullet list, table, or fenced diagram, whichever fits the shape of the content (see Use structure when content is structured below). Only include if the approach is non-obvious, has trade-offs worth calling out, or has discrete moving parts that benefit from being shown rather than described. Use _italics_ for subtle points; keep it high-level.
- Anything notable — Breaking changes, migration steps, or things reviewers should pay attention to. Only if applicable. Use
> blockquotefor callouts.
Use structure when content is structured
Narrative is the right tool for the opening "what changed and why" paragraph and for asides — but the moment you find yourself writing _"three loaders"_, _"two refinements landed"_, or _"the data passes through X then Y then Z"_, that's structure asking to be made visible. A comma-separated list of five features in prose is harder to scan than five bullets; a table beats a paragraph that says "previously Foo did X, now it does Y, and Bar previously did Z, now it does W."
Reach for these when they earn their keep:
- Bullet lists — discrete features, keyboard shortcuts, refinements, anything that isn't a narrative
- Tables — before/after fixes, per-variant comparisons (e.g. loader → format → vendor), trade-off matrices
- Fenced ASCII or mermaid diagrams — data flow, architecture seams, anything with shape that's easier to draw than describe
###subheaders — break long bodies into navigable sections (still avoid generic## Summary/## Changes)
The rule is _use structure when content is structured_, not _always add structure_. A small PR with one paragraph of motivation is fine; don't reach for a table just to look thorough.
Style rules
- Write for a dev skimming their PR feed — they should get the gist in 5 seconds
- Bold the most important phrase in each paragraph
- _Italics_ for nuance, caveats, secondary points
- Bullet lists, tables, and fenced diagrams are encouraged when the content is genuinely structured (see Use structure when content is structured). Don't list the diff file-by-file or restate prose as a bulleted dump.
###subheaders are fine to break up long bodies; skip generic## Summary/## Changesheaders- No filler: "This PR...", "In this change...", "As part of..." — start with the substance
- Link to issues/discussions where relevant (
Closes #123,See #456) - If the PR is trivial (typo fix, version bump), a one-liner body is fine
Attribution footer
End every PR body with a one-line italic footer naming:
- the invoking workflow (the slash-command that drove this PR — e.g.
/do), linked to its source repo (https://github.com/srid/agency), - the agent (the harness identity — e.g.
Claude Code,Codex,opencode), and - the model (the specific model id you are running on — e.g.
claude-opus-4-7,gpt-5-codex).
Reviewers should be able to tell at a glance what produced the diff: