pull-request
Installation
SKILL.md
Pull Request Creation
Create a GitHub pull request for the current branch. Works in any Git repository with GitHub as the remote.
Pull requests are created at the user's discretion -- this skill is never triggered automatically after commits.
Workflow
Step 1: Readiness Check
Verify the branch is ready for a pull request.
- Check that the current branch has commits ahead of the base branch using
git log <base>..HEAD. - If there are no commits ahead, inform the user there is nothing to create a PR for and stop.
- If the current branch is not pushed to the remote, push it with tracking:
git push -u origin <branch>. - Check if a PR already exists for the current branch using
gh pr view. If one exists, display the existing PR URL and ask the user whether to update it or abort.