Skip to main content
ClaudeWave
Slash Command6k repo starsupdated 5mo ago

pr-summary

The pr-summary command analyzes git differences between the current branch and main, then generates a formatted pull request description including a summary of changes, modified files list, breaking changes identification, and testing notes. Use this command to quickly create PR documentation when preparing to merge feature branches or bug fixes.

Install in Claude Code
Copy
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/ChrisWiles/claude-code-showcase/HEAD/.claude/commands/pr-summary.md -o ~/.claude/commands/pr-summary.md
Then start a new Claude Code session; the slash command loads automatically.

pr-summary.md

# PR Summary

Generate a pull request summary for the current branch.

## Instructions

1. **Analyze changes**:
   ```bash
   git log main..HEAD --oneline
   git diff main...HEAD --stat
   ```

2. **Generate summary** with:
   - Brief description of what changed
   - List of files modified
   - Breaking changes (if any)
   - Testing notes

3. **Format as PR body**:
   ```markdown
   ## Summary
   [1-3 bullet points describing the changes]

   ## Changes
   - [List of significant changes]

   ## Test Plan
   - [ ] [Testing checklist items]
   ```