agentleFS
assawalhyassawalhy/awesome-agent/skills/pr-description/SKILL.md

pr-description

Skill3 starsChanged 18 days agoMITView on GitHub

Generate a pull request description for the current branch's changes, output as copy-paste-ready markdown. Use this whenever the user asks to "write a PR description", "describe these changes for a PR", "summarize this branch", "PR summary/writeup", or wants text to paste into a pull request — even if they don't say the literal words "PR description". Writes short, factual bullets with light code references, plus show-me style visuals (flows, diffs, tables, mermaid) and, for UI changes, screenshots of the running screen attached to the PR.

  • Commits and pushes

110 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use ao-desktop-dev, commit-message 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.
  • agentlab-inSkill

    ao-desktop-dev

    Launch, restart, or troubleshoot the real AO Electron desktop app from this repository; run a checkout against isolated or real local AO data; combine PR branches for local UI review; and diagnose stale Electron processes, port conflicts, or preload bridge mismatches. Use whenever asked to run, open, show, or visually verify AO frontend changes in the actual desktop app rather than ao preview, dev:web, or mock data.

    Also in 4 projects that use this

  • GitHubSkill

    commit-message

    Generate conventional commit messages - use when creating commits, writing commit messages, or asking for git commit help

    Also in 13 projects that use this

  • jMertaSkill

    bug-triage

    Use when the user reports a bug, regression, runtime error, failing build, or broken test and wants reproduction, diagnosis, root-cause analysis, or an authorized fix. Isolates the shared cause and verifies the smallest relevant change.

    Also in 4 projects that use this

  • AnthropicSkill

    incident-postmortem

    Write the postmortem for an incident, in its incident channel, once it is mitigated or resolved. Use on "write up this incident", "postmortem", "incident summary", "what happened here for people who weren't around", "draft the retro", or when the oncall memory says incidents of this severity get one. Reads the incident channel (and the alert thread it came from), the investigation findings and the data behind them, and writes a one-screen, zero-context write-up: what happened, impact with numbers, detection, timeline with durations, why it happened, what fixed it, follow-ups with proposed owners, and one before/during/after chart. Posted and pinned in the incident channel as its final pinned post, with edit requests updating that one pinned post in place — unless the person or the team's conventions say write-ups live elsewhere, in which case it is written there and only a link is posted, nothing pinned. A person edits and publishes it; never assigns blame.

    Also in 4 projects that use this

  • LangChainSkill

    api-docs

    OpenAPI documentation and REST API design patterns

    Also in 3 projects that use this

  • saffron-healthSkill

    address-review

    Address PR review comments systematically. Use when responding to code review feedback on a pull request.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 11 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 104 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check the draft against the diff before handing it over, and remove any attribution line the agent adds.

    line 9
  2. Distinctive:

    Read the branch diff first rather than the conversation — work a later commit reverted never happened.

    line 17
  3. Distinctive:

    Don't mention the ticket number or the branch name, and don't include any "this PR" or "these changes" phrasing.

    line 21
  4. Distinctive:

    Every heading states what changed or what was fixed, not a generic section label.

    line 26
  5. Distinctive:

    Write in this style:

    line 35
  6. Distinctive:

    Prefer plain wording such as "the Shopify webhook controller" or "the push product use case".

    line 47
  7. Distinctive:

    Do not explain the change through variable names, field names, method names, helper classes, exception classes, or config keys.

    line 48
  8. Distinctive:

    Use inline code sparingly, only for a name the reader needs to find or recognise, such as an endpoint path or a client-facing error code.

    line 50
  9. Distinctive:

    Do not put logic or expressions in prose.

    line 52
  10. Distinctive:

    When the reason is not obvious from the bullet, add one short sentence stating the cause or the effect.

    line 53
  11. Distinctive:

    When the branch changes anything a person sees — a page, a dialog, a table, a form, a state — capture it and attach it.

    line 60
  12. Very specific:

    Run the app if it is not already running (Bond CRM: bun run dev.

    line 63

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

Delegate to a fast low-cost agent like sonnet or deepseek v4 flash or similar to get the result. Check the draft against the diff before handing it over, and remove any attribution line the agent adds.

Output raw markdown to copy in a fenced block. Use a four-backtick outer fence so that inner code fences do not end the block early.

Source of truth

Read the branch diff first rather than the conversation — work a later commit reverted never happened. For a stacked change, diff against the branch below it, not master, and say what it sits on.

Don't mention the ticket number or the branch name, and don't include any "this PR" or "these changes" phrasing.

Headings name the change

Every heading states what changed or what was fixed, not a generic section label.

  • Good: ## Shopify errors are reported instead of a decoding failure
  • Bad: ## Summary, ## What changed, ## Details

Open with one sentence under the title line that says what the branch does overall.

Prose: short factual bullets

Write in this style:

Added validation of incoming Shopify orders in the webhook controller.
Stopped retrying Shopify errors that cannot succeed on a retry.
Returned a specific error when the Shopify authorization code is expired or already used.
Redacted secrets from outgoing request logs.
  • One fact per bullet. Past tense verb first: Added, Removed, Changed, Fixed, Moved, Renamed.
  • Refer to parts of the system by names a reader recognises and remembers: a controller, a use case, an endpoint, an external API operation, an error code returned to clients. Prefer plain wording such as "the Shopify webhook controller" or "the push product use case".
  • Do not explain the change through variable names, field names, method names, helper classes, exception classes, or config keys. Describe what the code does instead.
  • Use inline code sparingly, only for a name the reader needs to find or recognise, such as an endpoint path or a client-facing error code. A handful in the whole description at most.
  • Do not put logic or expressions in prose.
  • When the reason is not obvious from the bullet, add one short sentence stating the cause or the effect. Do not tell a story.
  • Plain, literal English: no metaphor, no idiom, no narrative voice, no filler words, no emojis.

Screenshots (UI changes)

When the branch changes anything a person sees — a page, a dialog, a table, a form, a state — capture it and attach it. A screenshot is evidence a diff cannot give and prose cannot replace.

  1. Run the app if it is not already running (Bond CRM: bun run dev; web :3100, api :4100).
  2. Seed real-looking data so the screen is not empty (Bond CRM: bun run db:seed, or db:seed:demo). Synthetic data only — never a real client's record (rules 5.3, PDPL).
  3. Open the exact page and state, focus the tab, and capture it. In OpenCode that is browser.screenshot (full page for a whole screen, element for one control); it returns a server-local file path.
  4. Capture both locales (ar and en) and a 375px width. An RTL-only or phone-only break is a bug, not a detail (rule 5.6, docs/08-i18n-rtl.md). Capture before/after when the change alters what is shown.
  5. Attach it with gh: gh pr create --attach './shot.png#login, Arabic' (or gh pr edit, gh pr comment, or gh issue comment). If the body references the file as ![login, Arabic](./shot.png), gh uploads it and rewrites the reference to the hosted URL.

One or two screenshots, both locales, is usually enough. Do not attach a screenshot of a screen the branch did not change.

Visuals (show-me style)

For a UI change the screenshots above are the visual. For everything else, use these to make the change reviewable at a glance. Pick the ones that fit, keep each small:

  • A before/after flow as ASCII or a mermaid block, when behaviour or a request path changed.
  • A short diff block (up to about 10 lines) for the one or two lines that carry the fix.
  • A table when comparing cases, for example two error types and where each is handled.

Label diagrams and tables with plain words or recognisable component names, not class, method, or field names. A diff block is the only place for code; keep it to the lines that carry the fix. No full payloads, no stack traces.

Tests

A short bullet list of the scenarios the new tests cover. Name the test class once if useful.

Length

Roughly 25–60 lines including visuals; attached screenshots do not count against it.

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.