pr-summary
Skill3 starsChanged 31 days agoMITView on GitHub
Generate a PR summary with reviewer suggestions based on file ownership. Fetches PR data, summarizes changes, highlights risks, and recommends reviewers from git history. Use when user says "pr summary", "summarize this PR", "who should review this", "generate PR description", when /morning finds a description that drifted from its diff, or wants a reviewer-ready summary of a pull request. For code review, use /review; for creating PRs, use /ship pr; for checking CI status, use /ship checks.
20 other projects use a version of this.
Adopted by
Most recently taken up by
- spencerldixon/skillstheir own version, first seen Nov 8, 2026
- timurgaleev/vibestacktheir own version, first seen Nov 8, 2026
- snuffish/dotfilestheir own version, first seen Nov 1, 2026
- Esi-Abolfazl/skillstheir own version, first seen Oct 20, 2026
- hmj1026/dhpktheir own version, first seen Oct 13, 2026
- mourner/claudefilestheir own version, first seen Oct 13, 2026
Used with
Projects with it also use commit.
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.
SentrySkillcommit
Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.
Also in 3 projects that use this
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 20
- scenario-labs/skills★ 3.5ksame name
- selfxyz/self★ 1.3ksame name
- scenario-labs/blender-plugin★ 962same name
- gittower/git-flow-next★ 458same name
- divinevideo/divine-mobile★ 265same name
- rabble/nostrvine★ 265same name
- sd0xdev/sd0x-dev-flow★ 192same name
- sd0xdev/sd0x-harness★ 192same name
- kjnez/claude-code-django★ 177same name
- gricha/dangerous-skills★ 38same name
10 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository42 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- asideSkill
- assessmentSkill
- auditSkill
- benchmarkSkill
- brainSkill
- checkpointSkill
- cleanupSkill
- concise-modeSkill
- cross-modelSkill
- deploySkill
- designSkill
- explainSkill
- fix-issueSkill
- ganSkill
- guardSkill
- hotfixSkill
- incidentSkill
- infraSkill
- interview-meSkill
- investigateSkill
- migrateSkill
- module-auditSkill
- morningSkill
- onboardSkill
- planSkill
- profileSkill
- readmeSkill
- refactorSkill
- researchSkill
- resolveSkill
- respondSkill
- retroSkill
- reviewSkill
- session-logSkill
- setupSkill
- shipSkill
- skill-newSkill
- spikeSkill
- tddSkill
- testSkill
- zoom-outSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 10 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
10
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
- Distinctive: line 36
If no number is given, detect the current branch and find its PR:
- Distinctive: line 65
Summarize the diff: Read the actual diff to understand:
- Distinctive: line 82
Exclude the PR author: Never suggest the author as a reviewer.
- Very specific: line 94
If the PR description is empty or under 50 characters, generate a reviewer-friendly description following the format in …
- Distinctive: line 100
Breaking changes: if any, with migration steps.
- Distinctive: line 128
Never auto-update the PR description without asking.
- Distinctive: line 130
When the PR has fewer than 3 potential reviewers from git history, show however many are available.
- Distinctive: line 131
All timestamps in GMT.
- Distinctive: line 132
Read the actual diff, not just the file list.
- Very specific: line 144
Stop and resolve the account from the remote when a gh command lacks the GH_TOKEN prefix.
- Distinctive: line 145
Stop and remove the author when they appear in the reviewer suggestions.
- Very specific: line 146
Stop and ask the user when gh pr edit is about to run without their approval.
- Distinctive: line 147
Stop and move the question to the chat when the generated body contains an open question.
- Very specific: line 148
Stop and capture high-resolution Before: and After: screenshots when a visible change has none to show.
- Very specific: line 152
Every gh call carried the GH_TOKEN=$(gh auth token --user <account>) prefix.
“Common” is measured: kept by at least 6 in 10 of the 16 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.
Files
Overview
Generates a reviewer-friendly summary of a pull request and suggests reviewers based on file ownership history.
When to Use
- A PR is open and needs reviewers picked from who actually knows the changed files.
- The PR description is empty, under 50 characters, or has drifted from the diff, including when
/morningflags the drift. - A reviewer wants the risk areas and the Merge Danger call before reading the diff.
- For a line-by-line review, use
/review; for opening the PR, use/ship pr; for CI status, use/ship checks.
Arguments
| Invocation | Action |
/pr-summary | Summarize the PR on the current branch |
/pr-summary <number> | Summarize a specific PR by number |
Process
1. Fetch PR Data
Determine the GitHub account from the git remote using standards/github-accounts.md.
GH_TOKEN=$(gh auth token --user <account>) gh pr view <number> --json title,body,files,additions,deletions,commits,labels,baseRefName,headRefName,author,reviewRequestsIf no number is given, detect the current branch and find its PR:
GH_TOKEN=$(gh auth token --user <account>) gh pr view --json title,body,files,additions,deletions,commits,labels,baseRefName,headRefName,author,reviewRequests2. Analyze Changes
Categorize files. Group changed files by type:
Category File patterns Source code src/,lib/,app/Tests test/,spec/,__tests__/,*.test.*,*.spec.*Configuration *.config.*,.*rc,package.json,tsconfig.jsonDocumentation *.md,docs/Infrastructure Dockerfile,docker-compose.*,.github/,terraform/Database migrations/,prisma/,*.sqlIdentify high-risk areas. Flag files that need careful review:
Risk indicator Why it matters Auth or security files Permission and access control changes Database migrations Schema changes are hard to reverse API route definitions Contract changes affect consumers Shared utilities or core modules High blast radius Environment or config changes Deployment impact Files with > 200 lines changed Large diffs are harder to review - Summarize the diff. Read the actual diff to understand:
- What behavior changed.
- What was added versus modified versus removed.
- Whether tests cover the changes.
3. Suggest Reviewers
For each changed file, find the most frequent contributors:
git log --format='%an' --since='6 months ago' -- <file> | sort | uniq -c | sort -rn | head -3- Aggregate across all files. Count how many changed files each contributor has history with.
- Rank by coverage. The best reviewer is the person with history across the most changed files.
- Exclude the PR author. Never suggest the author as a reviewer.
Present top 3 suggestions:
Reviewer Files with history Coverage Alice 8 of 12 67% Bob 5 of 12 42% Carol 3 of 12 25%
4. Generate Summary
If the PR description is empty or under 50 characters, generate a reviewer-friendly description following the format in ../../rules/git-workflow.md:
- What: one paragraph explaining what changed and why.
- How: key implementation decisions and trade-offs.
- Evidence: a before and an after: the exact test that failed and now passes, or the output that changed. "Tests are green" alone is a claim. A visible change carries high-resolution screenshots labeled
Before:andAfter:; when none exist, capture them perstandards/frontend-render-gate.mdbefore the body is published. - Merge Danger: the Door, one-way or two-way, and the Blast Radius, what breaks if the change is wrong. Always one-way: a migration that drops or rewrites data, an outbound send to users or partners, a deletion, and a public API removal.
- Breaking changes: if any, with migration steps.
The generated body follows ../../rules/no-ai-process-leak.md, is never hard-wrapped, and carries no open questions; those go to the chat.
5. Output
Present the full summary:
- PR title and metadata. Title, author, base branch, head branch, labels.
- Change summary. Categorized file list with line counts.
- Risk areas. Flagged files with explanations, plus the Merge Danger call: Door and Blast Radius, with the one-way trigger named when one applies.
- Test coverage. Whether tests were added or modified for the changes.
- Suggested reviewers. Top 3 with coverage percentages.
- Generated description. If the existing description was thin, provide the generated one and offer to update the PR. Bots such as CodeRabbit append their own blocks to the body, delimited by HTML comment markers, and
--body-filereplaces the whole body, so fetch the live body right before the edit and carry every bot block over unchanged:GH_TOKEN=$(gh auth token --user <account>) gh pr view <number> --json body --jq .body > "$live_body" GH_TOKEN=$(gh auth token --user <account>) gh pr edit <number> --body-file "$new_body"$new_bodyholds the generated text followed by every bot-appended block copied from$live_body. Both are files frommktemp, deleted after the edit.
Rules
- Account token prefixing is mandatory for all
ghcommands perstandards/github-accounts.md. - Never auto-update the PR description without asking. Always present the generated text and let the user decide.
- Reviewer suggestions are based on git history, not organizational hierarchy. State this in the output.
- When the PR has fewer than 3 potential reviewers from git history, show however many are available. Do not pad with guesses.
- All timestamps in GMT.
- Read the actual diff, not just the file list. A file list without context produces shallow summaries.
Common Rationalizations
- "The file list and line counts say enough": a file list produces a shallow summary. Read the diff before writing What and How.
- "
Tests are greencovers Evidence": Evidence is a before and an after, such as the exact test that failed and now passes. - "The description is plainly thin, so updating it saves a round trip": present the generated body and run
gh pr editonly after the user says yes. - "Git history yields two reviewers, the team lead makes a natural third": suggestions come from history alone. Show the two.
- "This migration is easy to reverse, call it two-way": a migration that drops or rewrites data, an outbound send, a deletion, and a public API removal are always one-way.
Red Flags
- Stop and resolve the account from the remote when a
ghcommand lacks theGH_TOKENprefix. - Stop and remove the author when they appear in the reviewer suggestions.
- Stop and ask the user when
gh pr editis about to run without their approval. - Stop and move the question to the chat when the generated body contains an open question.
- Stop and capture high-resolution
Before:andAfter:screenshots when a visible change has none to show.
Verification
- Every
ghcall carried theGH_TOKEN=$(gh auth token --user <account>)prefix. - The summary cites behavior read from the diff, beyond the file list.
- The reviewer table excludes the author, lists at most three people, and states that it comes from git history.
- The Merge Danger call names the Door and the Blast Radius, plus the one-way trigger when one applies.
- A generated body carries What, How, Evidence, Merge Danger, and Breaking changes, with one line per paragraph.
- The PR description on GitHub is unchanged unless the user approved the edit, and after an edit every bot-appended block from the live body is still present.
Related Skills
/review-- Detailed code review of the PR's changes./ship pr-- Create or update a pull request./ship checks-- Monitor CI status for the PR.
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
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.

