agentleFS
jalbarrangjalbarrang/skills/write-pr/SKILL.md

write-pr

Skill2 starsChanged 3 months agoMITView on GitHub

Write a PR description that states the problem and what changed. Use when opening a PR, writing or improving a PR body, or running `gh pr create`.

  • Commits and pushes

8 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. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 3

    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:

    Every line traces to a hunk in the diff.

    line 32
  2. Distinctive:

    Read the diff itself, not just the stat.

    line 42
  3. Distinctive:

    Write the problem, the change, the bullets, the blurb.

    line 45

“Common” is measured: kept by at least 6 in 10 of the 7 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

Write PR

A PR body carries two things. The problem the PR solves, and what changed to solve it. Everything else is noise a reviewer has to read past.

Shape

<the problem, one or two sentences>

<what changed to solve it, one or two sentences>

- `path/to/module.ts`: what it does now
- `path/to/gone.ts`: deleted, callers moved to `module.ts`

---
Written by <model> using <harness>.

Bullets name load-bearing files. A file a reviewer can skim past gets no line.

Nothing else goes in the body. No summary of the summary, no test counts, no "this PR adds", no section that restates the title.

Rules

  • Every line traces to a hunk in the diff. Describe what the code does now, not what it enables or unlocks.
  • Name the problem concretely. "Threads over 200 messages froze the sidebar for ~4s" beats "performance issues in threads".
  • Deletions and renames count as changes. They are the ones reviewers miss.
  • Apply the unslop skill to the body before creating the PR.

Process

  1. git log --oneline <base>..HEAD and git diff <base> --stat.
  2. Read the diff itself, not just the stat. Behavior changes, deletions, and renames hide inside small line counts. Done when every file in the stat is either in a bullet or judged noise.
  3. Write the problem, the change, the bullets, the blurb.
  4. Cut. Done when every remaining line is one of those four things.
  5. gh pr create --title "<prefixed>" --body-file <file> --base <base>.

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.