| name | pr |
| description | Pull Request Creator |
| lifecycle | experimental |
/pr - Pull Request Creator
Create well-formatted pull requests from branch commits.
Usage
/pr # Create PR for current branch
/pr --draft # Create as draft PR
/pr --base develop # Target specific base branch
What This Skill Does
- Analyze Commits - Read all commits on branch vs base
- Generate Title - From branch name or primary commit
- Write Description - Summary, changes, test plan
- Add Labels - Based on commit types (feat, fix, etc.)
- Create PR - Using gh CLI
PR Template
## Summary
Brief description of what this PR does and why.
## Changes
- Change 1
- Change 2
- Change 3
## Test Plan
- [ ] Unit tests pass
- [ ] Manual testing performed
- [ ] Edge cases considered
## Screenshots (if applicable)
## Related Issues
Closes #123
Branch Name Conventions
| Pattern | PR Type | Label |
|---|
feat/* | Feature | enhancement |
fix/* | Bug Fix | bug |
docs/* | Documentation | documentation |
refactor/* | Refactor | refactor |
test/* | Tests | tests |
Commands Used
git branch --show-current
git log main..HEAD --oneline
git diff main..HEAD --stat
gh pr create --title "Title" --body "Description"
gh pr create --draft --title "Title" --body "Description"
Instructions for Claude
When /pr is invoked:
- Get current branch - Ensure not on main/master
- Find base branch - Default to main or master
- Analyze commits - Extract types, scopes, descriptions
- Generate title - From branch name or summarize commits
- Write description - Summary, bullet points of changes
- Identify related issues - From commit messages (#123)
- Add test plan - Based on what changed
- Create PR - Use gh CLI with generated content
- Report URL - Show the created PR link