agentleFS
arjunprabhulalarjunprabhulal/agent-skills/skills/docs/pr-descriptions/SKILL.md

pr-descriptions

Skill4 starsChanged 4 months agoMITView on GitHub

Writes a pull request description that gets a change reviewed properly and quickly — what it does, why, what to look at closely, and how it was verified. Use this whenever the user opens a pull request, asks for a PR description or summary of a branch, or has a large change that reviewers will struggle with. For individual commit messages, use commit-messages.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    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:

    No preamble, no history of your investigation.

    line 26
  2. Distinctive:

    If it is large, say why and how to read it:

    line 72
  3. Distinctive:

    Consider whether it should be several PRs, usually it should

    line 75

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Pull request descriptions

A PR description is a request for someone's attention. You are asking a colleague to spend twenty minutes finding your mistakes — the description's job is to make those twenty minutes land where they are most useful.

The most common failure is describing what changed, which the diff already shows, while omitting what to worry about, which only you know.

1. Open with what and why, in two sentences

The reader should know within one screen whether this concerns them.

Fixes scheduled jobs running an hour early during BST by removing a double
timezone conversion. Affects anything reading `jobs.run_at` — the value is now
always UTC.

No preamble, no history of your investigation. If it fixes an issue, link it, but do not make the link the description.

Done when: a reader knows the purpose and the blast radius immediately.

2. Point reviewers at the risk

The highest-value section, and the one almost nobody writes. You know where the bodies are; say so.

**Worth a close look:**
- `scheduler.py:88` — the ordering here matters and I am not certain it is right
  under concurrent writes
- The migration is not reversible. Rolling back needs the backup, not a down-migration

This is not admitting weakness. It directs scarce attention to where it pays, and it is what separates a PR that gets a real review from one that gets an approving glance.

Also say what is safe to skim — "the other 400 lines are a mechanical rename" saves everyone time and prevents the real change getting lost.

Done when: the reviewer knows where to spend their attention.

3. State how you verified it

Be specific and honest. Reviewers calibrate their own effort on this.

**Verified:**
- New test fails on `main`, passes here
- Ran the scheduler locally against a BST timestamp and confirmed a single conversion
- Not tested: the DST transition itself. I could not construct that locally

That last line is the valuable one. "Not tested" is far more useful than silence, which reads as "tested".

Done when: the reader can tell what is proven from what is assumed.

4. Keep the PR small enough to review

The description cannot rescue a 2,000-line diff. Review quality falls off a cliff with size — past a few hundred lines, reviewers stop finding bugs and start approving.

If it is large, say why and how to read it:

  • Split mechanical from meaningful commits and say which is which
  • Suggest a reading order
  • Consider whether it should be several PRs, usually it should

Done when: the diff is reviewable, or you have explained how to read it.

5. Include what the reviewer cannot see

  • Screenshots or a short recording for anything visual. Before and after
  • Migration and rollout notes: does this need a deploy order, a flag, a backfill?
  • Breaking changes, stated plainly and early
  • Follow-ups you deliberately left: with issue links, so they read as decisions rather than oversights

Done when: nothing important requires reading the code to discover.

Template

## What
One or two sentences. What it does and what it affects.

## Why
The problem, and why this approach. Link the issue.

## Worth a close look
Where the risk is. Where you are unsure. What is safe to skim.

## Verified
What you tested and how. What you could not test.

## Notes
Migration, rollout, breaking changes, deliberate follow-ups.

What not to do

  • Do not paste the commit log. It is already in the PR
  • Do not describe every file. The diff does that
  • Do not oversell. "Small refactor" on a 900-line diff destroys the reviewer's trust in the rest of the description
  • Do not leave it empty because "the code speaks for itself". It does not — it cannot say why, and why is the part under review

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.