Create Pull Request
Safe PR creation workflow. Follow these steps exactly.
Pre-flight
- •Run
git branch --show-currentto confirm you are NOT onmain. If on main, STOP and tell the user to create a feature branch first. - •Run
gh pr listto check for existing open PRs on this branch. - •Run
git statusto see all staged, unstaged, and untracked changes. - •Run
git diffto review what will be committed.
Stage and Commit
- •Stage relevant files by name (never
git add -Aorgit add .unless the user explicitly asks). - •Run
git log --oneline -5to match the repo's commit message style. - •Create a commit with a descriptive message following the repo's style. End with
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>.
Push and Create PR
- •Push the branch:
git push -u origin <branch-name>. - •Create the PR with
gh pr create --title "..." --body "...". Use this body format:
code
## Summary <1-3 bullet points> ## Test plan - [ ] <verification steps> Generated with [Claude Code](https://claude.com/claude-code)
STOP
- •Show the user the PR link.
- •DO NOT merge the PR. Do not run
gh pr merge. Do not push to main. - •Wait for the user to explicitly tell you to merge before taking any further action.