pr
Installation
SKILL.md
When asked to create a pull request, follow these steps:
Phase 1: Pre-flight checks
-
Run
git status. If any of the following conditions apply, stop and report the errors:- There are unstaged changes
- There are untracked files
- The current branch is the default branch (
main)
-
Check if this is a stacked PR:
- Run
git merge-base main HEADto find the common ancestor with main - Run
git log --oneline <merge-base>..HEADto see commits since diverging from main - Check if any parent commits are on another feature branch (not main)
- If so, run
gh pr list --head <parent-branch>to check if that branch has an open PR - If a parent branch has an open PR, this is a stacked PR
- Run
-
Run
git log main..HEAD --onelineto see the commit history.