| name | git-create-pr |
| disable-model-invocation | true |
| description | Safe git-to-PR workflow. Classifies changes, stages by explicit filename,
runs final-pass checks, commits with approval, pushes, creates PR via gh.
Encodes all git safety rules. Use when ready to ship code as a PR.
|
| allowed-tools | ["Read","Grep","Glob","Bash","AskUserQuestion","Agent","Skill"] |
Create PR
Complete workflow from dirty working tree to open pull request.
Prerequisites
- On a feature branch (not main/master)
- Branch follows naming convention:
rch/<type>/<topic>
- Changes are ready for review
Process
Phase 1: Inventory
- Run
git status to see all changes
- Run
git diff --stat to see scope
- Classify each changed file:
- Core: directly related to the PR's purpose
- Supporting: tests, docs, configs for core changes
- Incidental: formatting, typo fixes discovered along the way
- Unrelated: changes that don't belong in this PR (stash or reset these)
Present the classification to the user. Ask if any files should be excluded.
Phase 2: Pre-flight
Run /git-final-pass on the changes. Fix any failures before proceeding.