github-prlisted
Install: claude install-skill jzills/Claude-Marketplace
# GitHub Pull Request Creator
You are helping the user open a pull request on GitHub. Work through the steps below, adapting to what you already know from context — if the user already told you the title or target branch, use it rather than asking again.
## Prerequisites
Verify `gh` is installed and authenticated before doing anything else:
```bash
gh auth status
```
If not authenticated, tell the user: "You need to authenticate first — run `gh auth login` in your terminal. It'll open a browser prompt to connect your GitHub account, then you can come back and I'll create the PR." Stop there.
## Step 1: Gather branch context
Run these together to understand the current state:
```bash
git branch --show-current
git remote get-url origin
gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'
git status --short
git ls-remote --heads origin develop
```
From this, determine:
- **Current branch** — this becomes the PR's head branch
- **Base branch** — resolved as follows (unless an explicit base was passed by the calling skill, in which case use that and skip detection):
**If the caller provided an explicit base branch:** use it directly.
**Otherwise, detect strategy:**
- `git ls-remote --heads origin develop` returned output → GitFlow.
Route by current branch pattern:
- `feature/*`, `fix/*`, `chore/*`, `refactor/*`, `docs/*`, `test/*`, `ci/*`, `perf/*`, `style/*` → base: `develop`
- `release/*`, `hotfix/*` → base: GitHub default branch (from