create-pull-request
SKILL.md
Create Pull Request
Mode: $ARGUMENTS
If --draft is passed, create as draft PR.
Pre-loaded context
- Branch status: !
git status && git branch -vv - Recent commits: !
git log --oneline -10
Workflow
- Run in parallel:
git diff HEADgit diff [base-branch]...HEAD- Search for PR template (see template-locations.md)
- Read template if found
- Review ALL commits (not just latest)
- Draft title (<70 chars) and body:
- Use template structure if available
- Otherwise: Summary + Test plan
- In parallel:
- Create branch if needed
- Push with
-uif needed - Create PR with
gh pr createusing HEREDOC (add--draftif requested)
See examples.md for output format and gh-flags.md for advanced options.
Rules
- Use PR template if available
- Analyze ALL commits, not just the latest
- Return PR URL when done
- Use
ghCLI only - NEVER force push to main/master
- NEVER push without user confirmation if already on main/master
- NEVER create PR with uncommitted changes — commit first
Error Handling
- If
gh pr createfails with "already exists" → rungh pr viewand return existing PR URL - If branch is not pushed → run
git push -u origin HEADbefore creating PR - If
gh auth statusfails → ask user to rungh auth loginand retry
Weekly Installs
5
Repository
helderberto/skillsFirst Seen
12 days ago
Security Audits
Installed on
mcpjam5
claude-code5
replit5
junie5
windsurf5
zencoder5