agentleFS
oxbshwoxbshw/LLM-Agents-Ecosystem-Handbook/skills/catalog/pr-summarizer/SKILL.md

pr-summarizer

Skill550 starsChanged 7 months agoMITView on GitHub

Use when opening a PR — produces a clean PR description (what / why / how to verify / risks) from a branch diff against base.

  • Reads credentials

1 other project uses 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:

    After force-pushing a substantive update to an existing PR (refresh description)

    line 14
  2. Distinctive:

    Every "why" claim is supported by a commit message or visible in the diff

    line 43
  3. Distinctive:

    No commit messages worth quoting → "Why" sourced from diff only.

    line 47

≈ “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

PR Summarizer

When to use

  • Just before opening a PR
  • After force-pushing a substantive update to an existing PR (refresh description)

When NOT to use

  • Drafts the user is still iterating on (the summary will go stale immediately)
  • Massive diffs (> 1000 lines) — ask the user to scope first

Inputs

NameTypeRequiredNotes
basestringnodefault origin/main
branchstringnodefault current HEAD

Outputs

A markdown PR body with sections: Summary, Why, How tested, Risks, Linked.

Workflow

  1. git diff <base>...HEAD --stat and git log <base>..HEAD --oneline to see scope
  2. git diff <base>...HEAD for content
  3. Group changes by area (one bullet per logical concern, not per file)
  4. Pull "why" from commit messages + linked tickets if mentioned
  5. Identify test artifacts touched; surface as How tested (or flag if none)
  6. Risks: any High-risk paths touched? auth, billing, migrations? mention.
  7. Linked: parse Fixes # / Refs # from commits

References

  • references/pr-template.md

Success criteria

  • Description ≤ 25 lines
  • Every "why" claim is supported by a commit message or visible in the diff
  • Risks section honest about unknowns ("untested in production data shape")

Failure modes

  • No commit messages worth quoting → "Why" sourced from diff only; flag this
  • Diff touches secrets / .env* → STOP and surface; PR shouldn't include them

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.