agentleFS
ku5icku5ic/claude-kit/skills/pr-description/SKILL.md

pr-description

Skill2 starsChanged 14 days agoMITView on GitHub

Draft your PR's title and body from the branch's diff, in the project's template

110 other projects use a version of this.

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

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

  • 0

    Common

    Most of the 104 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check for a project PR template: resolve the project root via kit project-root, then check these exact paths in order, using the first that …

    line 31
  2. Very specific:

    Test each exact path (e.g.

    line 34
  3. Distinctive:

    If one exists, read it: its sections replace the default Structure below.

    line 41
  4. Distinctive:

    Read any referenced issue number in recent commit messages, but do not fetch external data.

    line 46
  5. Distinctive:

    Every heading in the template appears in the output, spelled and ordered exactly as the template spells and orders it.

    line 57
  6. Very specific:

    No heading is added. Not ## Summary, not ## Notes for reviewer, not anything from the default structure below.

    line 58
  7. Very specific:

    No heading is removed. A section with nothing to say gets N/A or the template's own placeholder, never deletion.

    line 59
  8. Distinctive:

    Use this default structure:

    line 66
  9. Very specific:

    If a section would only restate the diff or the tests, cut it (default structure only).

    line 99
  10. Distinctive:

    If the diff is empty, say so and stop.

    line 102

“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

Generate a pull request title and description from the current diff.

Loading this skill isn't enough. Before the step a row names, read its file.

BeforeRead
Writing the title or the bodyreference/description-practice.md

Procedure

  1. Check for a project PR template: resolve the project root via kit project-root, then check these exact paths in order, using the first that exists:
    • the code host's PR template paths in skills/code-host-patterns, under <root>, in their order

Test each exact path (e.g. test -f <path>); do not run a keyword/substring search like fd -i pull_request_template across the tree. Two failure modes make that unsafe:

  • .github and .gitlab are hidden directories that fd silently excludes unless you pass -H, so a template living there gets missed entirely.
  • .github commonly holds several unrelated *_pull_request_template.md variants (per-team or per-change-type templates, e.g. ds_pull_request_template.md), and a substring match sorted alphabetically will confidently pick the wrong one instead of the actual default.

Exact-path checks sidestep both.

If one exists, read it: its sections replace the default Structure below. This is mandatory, not a preference, even for a one-line diff. Never substitute the default Structure when a project template exists. If none exists, fall back to the default Structure.

  1. Resolve the base: kit git-base. If $ARGUMENTS is a valid single-word git ref (no spaces, not a sentence), use it as the explicit base instead by running kit git-base "$ARGUMENTS" via Bash.
  2. Pull the diff: kit git-base --diff
  3. Pull the log (last 20): kit git-base --log -20
  4. Read any referenced issue number in recent commit messages, but do not fetch external data.
  5. Build the risk map. List the changed files with kit git-base --diff --name-only (plus the explicit base from step 2, if any). Run kit blast-radius <file> on each one that isn't a test file; it exits 2 for a file type it can't scan, so skip those. A file qualifies when it has 5 or more consumers, or when it has consumers and none of them is a test (test 0).

Output

Write the PR description to the path kit scratch-dir pr-description <branch> prints. It opens with the draft header from skills/pr-publish/SKILL.md, Head: being git rev-parse HEAD and PR: the branch's open PR, else Branch:. Under the header, a Title: <title> line, a blank line, then the body below; publish posts everything after the Title: line as the body.

If step 1 found a project PR template

Reproduce the template verbatim and fill it in. This branch is mandatory and exclusive:

  • Every heading in the template appears in the output, spelled and ordered exactly as the template spells and orders it.
  • No heading is added. Not ## Summary, not ## Notes for reviewer, not anything from the default structure below; that structure does not exist on this branch.
  • No heading is removed. A section with nothing to say gets N/A or the template's own placeholder, never deletion.
  • Non-heading template scaffolding (checklists, HTML comments, instructional italics, blockquotes) is preserved as-is. Tick a checkbox only when the diff establishes it; otherwise leave it unticked.
  • The Rules below govern the prose you write inside a section. They never govern which sections exist.
  • Risk-map lines from step 6 go in the section closest to reviewer notes, never under a new heading.

Only if step 1 found no template

Use this default structure:

## Summary

<Why this change, now. Lead with motivation or context the diff itself can't convey; do not restate what changed. One short paragraph, no bullet list.>

## Changes

<Grouped by concern, not by file. Concise bullets. Focus on intent, not mechanics.>

## Accessibility

<Only if markup, interaction, or visual change present. Otherwise omit.>

## Testing

<Only manual verification the reviewer cannot already see from the diff or the test files themselves - e.g. env-dependent behavior, a step that needs prod-like data. If the tests in the diff already cover it, omit this section.>

## Risk

<One bullet per file step 6 qualified: `path` - N consumers (S source, T test), and "no test imports it" when T is 0. Omit when nothing qualifies.>

## Notes for reviewer

<Tradeoffs made, intentional omissions, deferred work, uncertainty. Omit if empty.>

Rules

  • Title: one line in the shape the step 4 log uses (Conventional Commits, ticket prefix, plain), naming the change's purpose, per reference/description-practice.md.
  • Why, not what. This is a hard rule. The reviewer already has the diff for what changed and the test files for what's covered. Never restate either. A bullet that only narrates the diff ("renamed X to Y", "added a null check") earns no place in the description; only the bullet's reason for existing does.
  • An impact or failure mode goes in only when the diff, the log, or a linked issue establishes it (skills/kit-rules/reference/evidence.md section 1). Otherwise describe the change and say nothing on severity.
  • If a section would only restate the diff or the tests, cut it (default structure only). Under a project template, an empty section keeps its heading and gets N/A.
  • Length and tone: skills/kit-rules/reference/output.md sections 0 and 4.
  • Signatures and footers: skills/kit-rules/reference/workflow.md section 1.
  • If the diff is empty, say so and stop.
  • Post nothing. Posting the approved draft is /pr-publish.

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.