pull-request
Installation
SKILL.md
Contains Shell Commands
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Pull Request Skill
Create a GitHub pull request from the current branch. See REFERENCE.md for branch naming, title format, and examples.
Context
- Current branch: !
git branch --show-current - Default branch:
main - Commits ahead of base: !
git log --oneline origin/main..HEAD - Full diff from base: !
git diff origin/main...HEAD - Push status: !
git status -sb
Steps
- Verify branch — if on the default branch (
mainor the detected default): a. Readdocs/agents/git-workflow.mdand look fordirect-commits-to-default: yes/nob. Setting found —no: warn the user that direct commits to the default branch are not allowed for this project and stop c. Setting found —yes: skip PR creation; push commits directly withgit pushand report done d. No setting found: ask the user — "Direct commits have been made to<branch>(the default branch). Is this allowed in this project?" — then save their answer todocs/agents/git-workflow.md: