PR Summary Refresher
Rewrites the current branch's pull request description from its net diff, follows the repo's PR template, and applies it through the GitHub REST API.
Dev & CodingIntermediate★ 4,019⑂ 360AI score 9/10Last updated: Nov 24, 2026
What it does
- Locates the PR and its real base branch with
gh pr view(develop, main, or a stacked PR's recorded base), never hardcoding it. - Describes the net change from
git diff --stat origin/$BASE...HEADinstead of retelling the commit history. - Finds
pull_request_templatecase-insensitively and keeps every heading in order, filling unused sections withN/A. - Preserves human-written content: issue links, Sentry/Slack/Pylon links, screenshots, "Known bugs", plus bot-managed blocks such as
<!-- CURSOR_SUMMARY -->. - Ticks checkboxes only when it ran the command this session or the diff proves it, and never attests to human review or approvals.
- Patches the body via
gh api --method PATCH ... -F body=@filerather thangh pr edit, and fixes the Conventional Commits title when the diff no longer matches. - Adds safeguards for untrusted/fork PRs and for public repositories (no internal hostnames, customers or credentials).
Who it's for
- Developers on GitHub teams with enforced PR templates and commitlint.
- Anyone tired of hand-writing reviewer-friendly PR descriptions.
- Teams dealing with stacked PRs, fork contributions, or public repos.
Examples
- "Update this PR description" after a refactor: stale bullets are dropped and only what the diff shows remains.
- Trusted PR with a Test plan section: runs the repo's cheap check, captures the exit code and last log lines, and reports the real result.
- A test-only PR titled
fix:gets retitledtest:so release tooling doesn't emit a bogus changelog entry.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/scenario-labs/skills/HEAD/.agents/skills/pr-summary/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on AI Skill Mart. Copy the .agents/skills/pr-summary folder from the GitHub repo scenario-labs/skills into my ~/.claude/skills/pr-summary/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/scenario-labs/skills.git /tmp/scenario-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scenario-skills/.agents/skills/pr-summary ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Confirm GitHub CLI is installed:
gh --version(install withbrew install ghor your package manager if missing). - Authenticate:
gh auth login. - Clone the skills repo:
git clone https://github.com/scenario-labs/skills.git /tmp/scenario-skills - Create the skills directory:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r /tmp/scenario-skills/.agents/skills/pr-summary ~/.claude/skills/ - Restart Claude Code, check out a branch that already has an open PR, and ask it to "update the PR summary".
View source on GitHub ↗License: MIT