agentleFS
petekppetekp/claude-code-setup/skills/pr-description/SKILL.md

pr-description

Skill47 starsChanged 3 months agoMITView on GitHub

Write or update a GitHub PR description as a short, skimmable list of key points grounded in the diff and real verification. Use when opening a PR or editing its description.

  • Commits and pushes

44 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use conventional-commits, i-have-adhd and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • metalagmanSkill

    conventional-commits

    Use this skill to write, validate, or generate commit messages that follow the Conventional Commits specification.

    Also in 4 projects that use this

  • PydanticSkill

    i-have-adhd

    Shape every response for an ADHD reader who reviews the work but does not do the coding — the agent does. Use whenever responding to ANY message — coding, debugging, planning, casual. Lead with the result or the decision. Surface anything needing the user's input as a structured question, never buried in prose they'll skim past. No preamble, no recap, no closers. State errors matter-of-factly. Make finished work visible. Trigger even on casual messages and even when brevity wasn't requested.

    Also in 3 projects that use this

  • HashiCorpSkill

    changelog

    Add a `.changelog/<PR_NUMBER>.txt` entry for a GitHub Pull Request, commit, and push.

    Also in 5 projects that use this

  • pproencaSkill

    refactoring

    Code refactoring best practices based on Martin Fowler's catalog and Clean Code principles. This skill should be used when refactoring existing code, improving code structure, reducing complexity, eliminating code smells, or reviewing code for maintainability. Triggers on tasks involving extract method, rename, decompose conditional, reduce coupling, or improve readability.

    Also in 3 projects that use this

  • NVIDIASkill

    testing

    Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    docs

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 41 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write for a teammate who knows the product, hasn't followed the work, and is reading between other tasks.

    line 8
  2. Distinctive:

    Read the actual diff and enough context to establish the problem, the resulting behavior, and the review risks.

    line 10
  3. Distinctive:

    Use the repository's PR template headings when it has them.

    line 14
  4. Distinctive:

    Start each bullet with a bold lead-in that states the point as a full claim.

    line 15
  5. Distinctive:

    Keep the body to one screen, about 300 words including tests.

    line 17
  6. Distinctive:

    When revising, rewrite the whole body within that budget.

    line 18
  7. Distinctive:

    Leave out file-by-file narration, how the problem was found, mechanism the diff already shows, boilerplate, and mannered prose.

    line 31
  8. Distinctive:

    Not text to copy:

    line 39
  9. Distinctive:

    Read Pete's PR workflow during PR preparation.

    line 61

“Common” is measured: kept by at least 6 in 10 of the 41 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

PR description

Write for a teammate who knows the product, hasn't followed the work, and is reading between other tasks. They should get the point from the bold text alone and stop once they have enough. A dense description goes unread even when it's accurate.

Read the actual diff and enough context to establish the problem, the resulting behavior, and the review risks. Don't invent motivation or claim verification you haven't done.

Shape

  • Use the repository's PR template headings when it has them. Under each heading, write bullets, not paragraphs.
  • Start each bullet with a bold lead-in that states the point as a full claim. Add one or two short sentences only when the reader needs the reason or the consequence.
  • One point per bullet, most important first. A bold label can group related bullets, as in the example.
  • Keep the body to one screen, about 300 words including tests. A small change needs one to three bullets. Over budget, cut reasons before points, then the least important points.
  • When revising, rewrite the whole body within that budget. Replace a wrong line instead of appending a section for each new finding.

Content

Cover these in order, skipping any that don't apply:

  1. What was wrong or missing, with its impact as a number when one exists.
  2. What the change does.
  3. What behaves differently after merge, including effects outside the changed code.
  4. Decisions, risks, or known flaws the reviewer should check.
  5. What's not in this PR, only where a reader would assume otherwise.
  6. Tests: what was verified, and what wasn't.

Leave out file-by-file narration, how the problem was found, mechanism the diff already shows, boilerplate, and mannered prose.

Evidence

Link evidence from the bullet it supports, such as docs, a dashboard query, or source lines, instead of collecting it in its own section. Reasoning about a specific line belongs in an inline author note from pr-self-review, not the body. Use evidence selection for screenshots, recordings, and other proof. Reuse verification already done for the current change, and put a material gap beside the claim it limits.

Example shape

Not text to copy:

## What and why

- **Password resets fail for any email address containing `+`.** The reset link puts the address in the query string, which decodes `+` as a space, per the framework's [docs](…).
- **412 resets failed in August,** per the [error dashboard](…).
- **The endpoint now reads the address from the request body.** The body keeps the `+`.

**After merge, a reset for a `+` address works like any other:**

- It sends the reset email.
- It counts toward the hourly reset limit.

## Tests

- **A new test requests a reset for a `+` address.** On main, it finds no account.
- **Not tested with the live email provider.**

Publishing

Read Pete's PR workflow during PR preparation. It covers screenshot and author-note choices, approval, and neutral teammate replies. Prepare and inspect available screenshots before offering attachment, and continue authorized PR work while optional choices are pending.

Publish with gh pr create --body-file or gh pr edit --body-file using actual multiline text in a file. Re-read the raw saved body afterward to verify the intended text.

For any existing or new image or video attachment, read attachment links. Preserve original permanent upload URLs, run the checker before publishing and on the fetched raw body afterward, and inspect the rendered PR. A successful preview alone does not establish URL permanence. Never commit PR screenshots or upload them without approval.

Author self-review notes are a separate optional workflow using pr-self-review. Publishing the description does not authorize review comments or replies to teammates.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.