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..HEADto understand all commits - Run
git diff main...HEADto 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 createwith:-
Title: short, under 70 chars
-
Body using the template:
Summary
<1-3 bullet points>
Test plan
- Tests pass
- Manual verification
-
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