# pr-summary

pr-summary reviews the current branch against main and drafts a pull request body with changed files, breaking changes, and a test checklist.

- command · `type=command` · Claude Code, Codex, GitHub Copilot, Gemini CLI · ★ 6091 repo stars
- Author: ChrisWiles
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ChrisWiles/claude-code-showcase/tree/HEAD/.claude/commands/pr-summary.md
- Updated: 2026-01-06
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/commands/pr-summary

## What it does

This slash command inspects the current branch against `main`. It reads the commit list with `git log main..HEAD --oneline`, then checks diff statistics through `git diff main...HEAD --stat`.

The result is a Markdown pull request body with a short overview, notable file changes, possible breaking changes, and testing notes. Its tool access is limited to `Bash(git:*)`, so the workflow is built around Git commands.

The base branch is hard-coded as `main`; a project using another base branch will produce a different review range. In Claude Code, place the command at `.claude/commands/pr-summary.md`.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/commands/pr-summary.md` — Call it with /pr-summary. For all projects use ~/.claude/commands/

### Codex

**Manually: put the files in place**
- File: `~/.codex/prompts/pr-summary.md` — Call it with /prompts:pr-summary. Codex marks this format deprecated in favour of skills

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/prompts/pr-summary.prompt.md`

### Gemini CLI

**Manually: put the files in place**
- File: `.gemini/commands/pr-summary.toml` — Gemini stores commands as TOML: the prompt text goes into the prompt field

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ChrisWiles/claude-code-showcase/tree/HEAD/.claude/commands/pr-summary.md

## When to use it
- review commits on the current branch
- list changed files and diff statistics
- flag breaking changes in a pull request
- draft a testing checklist
- format a pull request body in Markdown

## Example prompts
- Run `/pr-summary` for the current branch.
- Use `/pr-summary` to draft a pull request description from the changes against `main`.
- Create a Markdown pull request body with a test plan using `/pr-summary`.

## Similar
- [command-explain-pr-changes](https://affpapa.org/en/nevibecode/plugins/command-explain-pr-changes.md) — plugin · ★ 2707 repo stars
- [load-pr-comments](https://affpapa.org/en/nevibecode/skills/load-pr-comments.md) — skill · 592 installs
- [write_pull-request](https://affpapa.org/en/nevibecode/prompts/write-pull-request.md) — prompt · ★ 44690 repo stars
- [pr](https://affpapa.org/en/nevibecode/skills/pr.md) — skill · 167125 installs
- [code-review](https://affpapa.org/en/nevibecode/commands/code-review.md) — command · 5537 installs
- [gh-stack](https://affpapa.org/en/nevibecode/skills/gh-stack.md) — skill · 21500 installs

From the same set: [chriswiles/claude-code-showcase](https://affpapa.org/en/nevibecode/by/chriswiles/claude-code-showcase.md) — 11 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
