| name | pr |
| description | Create a pull request for the current branch using the project's PR template |
| user-invocable | true |
| disable-model-invocation | true |
| allowed-tools | ["Read","Grep","Glob","Bash(git status)","Bash(git diff:*)","Bash(git log:*)","Bash(git push:*)","Bash(gh pr create:*)","Bash(gh issue view:*)"] |
/pr — Pull Request Creation
Create a pull request for the current branch.
Steps
git status and git diff to understand all changes
- Check if the current branch has a remote; push with
-u if needed
git log and git diff <base>...HEAD to understand ALL commits
- Look up the related GitHub Issue from branch name or commit messages
- Read
.github/pull_request_template.md if it exists
- Generate changelog entry from commits (see below)
- Create PR with
gh pr create, include changelog entry in body
Changelog Generation
From step 3 commits, generate a changelog entry categorized by type:
### Changelog
- **Added**: {new features}
- **Changed**: {modifications to existing features}
- **Fixed**: {bug fixes}
- **Removed**: {removed features}
Include this in the PR body after the description. If a CHANGELOG.md exists in the project root, prepend the entry under the ## [Unreleased] section.
Rules
- Title:
#{Issue} {concise description} (under 70 chars)
- If no issue: omit the number
- Description: bullet points summarizing changes
- Other template sections: leave as-is
- No AI stamps, no Co-Authored-By
- Always set base branch explicitly
- Link issues with
Closes #XX in body if applicable