Skip to main content
command CX Codex

pr-summary — Claude Code command: what it does, how to install

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

no license ★ 6,091 updated 2026-01-06

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/pr-summary.md
Open on GitHub

What pr-summary 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.

What it helps with

  • 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 for the agent

  • 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.

How to install pr-summary

Manually: put the files in place

.claude/commands/pr-summary.md

Call it with /pr-summary. For all projects use ~/.claude/commands/

Questions about pr-summary

How do I install pr-summary in Claude Code?

Create .claude/commands/pr-summary.md and place the command content in that file.

What does pr-summary do?

It reviews commits and diff statistics for the current branch against main, then drafts a Markdown pull request body.

Which base branch does pr-summary use?

It uses main through git log main..HEAD --oneline and git diff main...HEAD --stat. A different project base branch will change the comparison range.

Similar slash commands

All slash commands for Git and GitHub →

From the same set11

The whole set →
onboard onboard — a command that prepares an agent to work on a project. It explores the codebase, asks clarifying questions, and records context for the next session. CX Codex +1 ★ 6,091repo stars pr-review pr-review inspects pull requests through the GitHub CLI against project standards and posts tiered review notes. CX Codex +1 ★ 6,091repo stars code-quality code-quality reviews TypeScript files in a chosen directory, runs npm checks, and groups findings by severity. Use it before a code change or review. CX Codex +1 ★ 6,091repo stars docs-sync docs-sync is a Claude Code command that compares documentation with recent code changes and flags inconsistencies. It catches outdated examples, incorrect API signatures, and mismatched parameter types. CX Codex +1 ★ 6,091repo stars github-workflow github-workflow manages Git branches, Conventional Commits, and pull requests according to team conventions. Helpful for keeping repository history structured and tidy. CX Codex ★ 6,091repo stars ticket Handles the full ticket workflow: fetch task details from JIRA or Linear, explore related code, implement changes, and create a linked PR. Reduces manual sync between issue tracker and repository. CX Codex +1 ★ 6,091repo stars code-reviewer code-reviewer — a subagent for Claude Code that checks newly written or modified code against project standards, TypeScript strict mode, and security patterns. CX Codex ★ 6,091repo stars systematic-debugging systematic-debugging enforces a four-phase troubleshooting protocol rooted in root cause analysis. Ideal for tracking down broken test suites or runtime errors without trial-and-error edits. CX Codex +1 ★ 6,091repo stars

More in the catalog

Project sponsors

Companies that keep this analytics open