PR
Process
Analyze branch context:
- Current branch:
git branch --show-current - Base branch:
git remote show origin | grep 'HEAD branch' - Commits since divergence:
git log --oneline <base>..HEAD - Full diff:
git diff <base>...HEAD
- Current branch:
Determine Problem scope:
- All commits relate to one issue → single Problem statement
- Commits address distinct issues → numbered list, matching Solution numbers
Generate PR description in Problem/Solution format:
## Problem {problem statement - describe the issue being solved} ## Solution {plain language overview of the changes}For multiple problems, use numbered lists with matching numbers in both sections.
- If
$ARGUMENTSprovided, use as context for the Problem statement - If not, infer Problem from commits and diff
- Be terse — no filler words
- Problem is human-readable English explaining the issue
- Solution is plain language overview of changes, not implementation details
- Can include links to logs/docs or error output if relevant
- Ignore any PR templates in the repo
- If
Generate PR title:
- Short, descriptive, lowercase, no type prefixes, no emojis
Create PR with gh CLI:
- Write body to
.tmp/pr-body.md, thengh pr create --title "title" --body-file .tmp/pr-body.md - If branch not pushed:
git pubfirst
- Write body to
Return PR URL
What NOT to Include
- NO "Generated with Claude Code" footer
- NO attribution text or co-authorship
- NO emojis in titles or body
- NO PR template boilerplate (Summary/Test Plan/etc)
- NO checkbox test plans