A Claude Code slash command for generating PR descriptions from branch changes.
# Clone to your preferred location
git clone git@github.com:claude-commands/command-pr-summary.git <clone-path>/command-pr-summary
# Symlink (use full path to cloned repo)
ln -s <clone-path>/command-pr-summary/pr-summary.md ~/.claude/commands/pr-summary.md/pr-summary # Compare to main/dev (auto-detected)
/pr-summary main # Compare to main
/pr-summary dev # Compare to dev
/pr-summary release/v2 # Compare to release branch
- Analyzes all commits in current branch
- Reviews file changes and full diff
- Groups changes by type (features, fixes, etc.)
- Identifies breaking changes and impacts
- Generates structured PR description with test plan
## Summary
Added user authentication with JWT tokens and rate limiting.
## Changes
### Features
- Added user authentication flow
- Implemented rate limiting for API endpoints
### Bug Fixes
- Fixed memory leak in connection pool (#123)
## Breaking Changes
- `getUserById()` now returns `null` instead of throwing
## Files Changed
| Type | Files |
|------|-------|
| Added | 3 |
| Modified | 8 |
## Test Plan
- [ ] Unit tests pass (`npm test`)
- [ ] Manual testing of login flow
## Related Issues
Closes #123, #456- Smart grouping: Changes grouped by type (feat, fix, refactor)
- Breaking change detection: Highlights API/signature changes
- Issue linking: Extracts
#123,fixes #456references - Test plan generation: Suggests testing based on changes
- File summary: Shows what was added/modified/deleted
- Git repository with commits
- Current branch different from base branch
- Claude Code with Sonnet model access
cd <clone-path>/command-pr-summary && git pull