AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

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...HEAD instead of retelling the commit history.
  • Finds pull_request_template case-insensitively and keeps every heading in order, filling unused sections with N/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=@file rather than gh 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

  1. "Update this PR description" after a refactor: stale bullets are dropped and only what the diff shows remains.
  2. 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.
  3. A test-only PR titled fix: gets retitled test: 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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download 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.

  1. Confirm GitHub CLI is installed: gh --version (install with brew install gh or your package manager if missing).
  2. Authenticate: gh auth login.
  3. Clone the skills repo: git clone https://github.com/scenario-labs/skills.git /tmp/scenario-skills
  4. Create the skills directory: mkdir -p ~/.claude/skills
  5. Copy the skill: cp -r /tmp/scenario-skills/.agents/skills/pr-summary ~/.claude/skills/
  6. Restart Claude Code, check out a branch that already has an open PR, and ask it to "update the PR summary".