pr
Installation
SKILL.md
Pull Request
Open a pull request with a minimal, structured description. Do not use subagents. Follow these steps in order.
1. Gather context
Run the bundled script in a single Bash call (the skill's base directory is shown when the skill is invoked):
bash <skill-base-dir>/scripts/gather-pr-context.sh
It prints the branch, a JIRA key candidate, uncommitted changes, the detected base branch, push state, commits and diff vs the merge-base (truncated past 400 lines — set MAX_DIFF_LINES to raise), any PR templates found in the repo, and whether a PR already exists for this branch.
Stop early with a clear one-line explanation if:
- The current branch is the base branch — ask the user to create a branch first.
- There are no commits ahead of the base.
ghis unavailable or unauthenticated.