| name | pr |
| description | Create pull requests with structured description |
/pr — Pull Request Creation
When to use
When the user runs /pr or asks to create a pull request.
Steps
- Run
git log --oneline main..HEAD to understand all commits
- Run
git diff main...HEAD to see the full diff
- Check if the branch is pushed:
git rev-parse --abbrev-ref --symbolic-full-name @{u}
- If not pushed, push with
git push -u origin HEAD
- Create the PR using
gh pr create with:
Rules
- NEVER force push
- Analyze ALL commits, not just the latest
- Keep the title concise — details go in the body
- Return the PR URL to the user when done