writing-pr-descriptions

writing-pr-descriptions is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 191 tokens per session (5,745 once invoked), scanned A, original, MIT.

A guide for writing pull request descriptions that explain a code change clearly to reviewers. It focuses on the user-visible effect first, followed by the problem and how the change works.

In plain words
What is it for?
Use it when creating, editing, or improving a PR description, including before creating or updating one with GitHub's command-line tools.
Why use it?
It prevents PRs from becoming code diaries that reviewers must reconstruct from the diff, making the important context easier to find.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

Good fit Use it when creating, editing, or improving a PR description, including before creating or updating one with GitHub's command-line tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/writing-pr-descriptions
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PostHog/posthog-foss --skill writing-pr-descriptions
Clone the repo
git clone --depth 1 https://github.com/PostHog/posthog-foss

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for writing-pr-descriptions

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/posthog-foss/writing-pr-descriptions/github.svg)](https://agentmods.dev/skills/posthog/posthog-foss/writing-pr-descriptions)
Your own site
<a href="https://agentmods.dev/skills/posthog/posthog-foss/writing-pr-descriptions"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/writing-pr-descriptions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for writing-pr-descriptions

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/writing-pr-descriptions"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/writing-pr-descriptions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 191 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,745 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Output Handling · line 242
    Output size or generation rate is not bounded. Unbounded output enables denial-of-service through resource exhaustion, log flooding, or context-window stuffing.
    Fix: Set explicit limits on output length, generation count, and rate. Use max_tokens and truncation to prevent unbounded output.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00191 $0.05745
Opus 5.5 $0.00076 $0.02298
Sonnet 5.5 $0.00038 $0.01149
Haiku 4.5 $0.00019 $0.00575

Measured 14d ago against content hash f1045a11a40c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

writing-pr-descriptions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/count_words.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/writing-pr-descriptions/SKILL.md · 343 lines

How it starts

The opening of the file, as written. The whole thing — 343 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Writing PR descriptions

A reviewer scans a description in seconds and decides where to spend attention. The body is a scanning surface, not an essay, and it has to stand without the diff. A body that narrates the code, or that would fit any PR equally well, teaches its reader to skip the next one.

Order decides whether they understand the change at all. Form and length only decide how fast. So get the order right first, and never buy shape at the cost of it.

Work in five passes: lead, route, cut, shape, check. Run all five. When a body already exists, pass 0 comes first.

Pass 0: keep what the body already holds

gh pr edit --body replaces the whole body, so every part of your draft that has no home is gone the moment you push it. An existing body holds work you cannot recreate: screenshots and recordings a person uploaded, links they collected, a checkbox they ticked, a note to a named reviewer.

Read the current body and edit it, rather than writing a fresh one over the top:

gh pr view <number> --json body --jq .body > pr-body.md
# edit pr-body.md
gh pr edit <number> --body-file pr-body.md

Carry every image, video, link and ticked box into the new body, under the heading it belongs to, and add the heading when your draft has none. Replace one only when the change made it wrong, and say in the body that you replaced it.

Pass 1: lead with the need

The first line is the one line you can count on being read. You just spent an hour inside the mechanism, so the mechanism comes out first. Push it down and spend that line on the need that caused the work.

  • Line 1 of Problem says who is affected and what is wrong for them today. Name the surface or workflow they were on. Four shapes cover almost every PR:
    • A fix: what breaks, and for whom.
    • A feature: what the person is trying to get done, and what stands in the way. "Analysts who join tables in the SQL editor recompute the same derived column in every query."
    • A refactor, a chore or an enabling change: who is blocked, what it costs them, or what class of failure it removes. Nobody sees it, but somebody is waiting.
    • A follow-up or a layer in a stack: what the earlier PR left undone, and what this one adds. Link that PR and assume nobody read it.
  • Problem must stay true if the author picks a different solution. A missing version of your solution is not a problem: "there is no PDF export" is Changes with a "not" in it.
  • Take the need from a source: the request, a linked issue, a thread, a measurement. The writer of a body often has only the diff. Never invent an actor, a cost, or a frequency to make the line read better. When no source gives the reason, say so in one line, so the reviewer knows to ask.
  • If line 1 opens with a symbol, a file path, a class, or a setting, you led with the mechanism. Rewrite it.
  • Size the problem in one clause where you know it: how many teams, how often, since when.
  • The mechanism follows, in the order a reviewer has to check it.
  • The first bullet of Changes is the change itself. Renames, regenerated snapshots and comment fixes go last.
  • Every Changes bullet a person can notice says what they now see or do differently, then the mechanism under it. One user-facing line in Problem does not discharge this.
  • Say in one line which part of Changes is mechanical. A reviewer cannot otherwise tell a purely internal change from a visible one you described as internal.
  • If one part of the diff is riskier than the rest, name that part and say the rest is mechanical.

Read the full file on GitHub · 343 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed · +1 lines f1045a11a40c
  2. 1mo ago Changed 8777be79dfb8
  3. 1mo ago Changed · +27 lines · +8 tokens per session 82f3b0e3958b
  4. 1mo ago Changed · -7 lines · +13 tokens per session 1ef00e4ce860
  5. 1mo ago Changed · +30 lines · -54 tokens per session 956f3509e39b
  6. 1mo ago Changed · +7 lines 40b1c5f72c8d
  7. 1mo ago Changed 34543c968b5d
  8. 2mo ago Changed · +8 lines bd21c2a9dcb5
  9. 2mo ago Changed de98ba23308e
  10. 3mo ago First seen · 277 lines · 224 tokens per session scan A 5943efcdfd3e

Subscribe to this mod's changes

writing-pr-descriptions is a skill published in the GitHub repository PostHog/posthog-foss (736 stars, last pushed today), licensed MIT. It adds 191 tokens to every session and 5,745 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

writing-pr-descriptions compared with skills from other repositories

writing-pr-descriptions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
writing-pr-descriptionsPostHog/posthog-fossSkill736todayMITA191Claude Code, Codex
merge-batchdiegosouzapw/OmniRouteSkill91k5d agoMITA46Claude Code
prowler-commitprowler-cloud/prowlerSkill15ktodayApache-2.0A44Claude Code, Codex
gh-auth-isolationgithub/gh-awSkill5.8ktodayMITA20Claude Code, Codex
github-skillzeenie-ai/OpenCompanySkill1.1k2d agoMITA51Claude Code
comet-githubrpamis/cometSkill3.3ktodayMITA72Claude Code, Codex
re0-mergeLilMGenius/paperthinSkill1.5ktodayMITA51Claude Code, Codex