← ClaudeAtlas

git-pr-createlisted

Open a GitHub pull request for the current branch using `gh` — conventional title, repo-template-aware body, auto-derived labels, push if needed. ALWAYS invoke this skill for ANY PR-creation request, no matter how short or casual. Trigger on every phrasing: "create a PR", "open a PR", "make a PR", "raise a PR", "PR this", "PR please", "let's PR", "send PR", "/git-pr-create", "push and open a PR", "open pull request", "ship this", "ship it", "send for review", "ready for review", "let's merge this", "submit this", "publish this branch", "open a pull request for this branch", or whenever the user signals work on a feature branch should leave their machine and go to GitHub. Do NOT call `gh pr create` directly — this skill owns the entire flow (push, label derivation, title format, body template, safety rules). Even when the request looks like a trivial one-liner, prefer this skill over a raw `gh` call. Pushes the branch and opens the PR immediately without asking for confirmation.
pivoshenko/pivoshenko.ai · ★ 2 · Code & Development · score 76
Install: claude install-skill pivoshenko/pivoshenko.ai
# Create PR Open GitHub PR for current branch. No confirm. ## Flow 1. Parallel: - `git status` - `git branch --show-current` - `git log <base>..HEAD --oneline` (`<base>` = user-named, else `main`, fallback `master`) - `git diff <base>...HEAD` - check repo PR template: `.github/PULL_REQUEST_TEMPLATE.md`, `.github/pull_request_template.md`, `docs/PULL_REQUEST_TEMPLATE.md`, root `PULL_REQUEST_TEMPLATE.md` (first match wins) 2. 0 commits ahead -> stop. Tell user: nothing to PR; commit first via `git-commit`. 3. Not pushed / behind -> `git push -u origin <branch>`. 4. Read **all** branch commits (not just latest). Draft title + body. - Template found -> fill that template's structure (preserve headings, checklist items, comment placeholders). - No template -> use [fallback body](#fallback-body-template) below. 5. Derive labels (always pass `--label`): - Map title `<type>` -> label: `feat`->`enhancement`, `fix`->`bug`, `docs`->`documentation`, `test`->`tests`, `perf`->`performance`, `refactor`->`refactor`, `build`->`build`, `ci`->`ci`, `chore`->`chore`. - Breaking change in commits/body -> add `breaking-change`. - Verify labels exist: `gh label list --json name -q '.[].name'`. Drop any missing; never auto-create. - At least 1 label required -> if all dropped, fall back to `chore`. If `chore` also missing, surface to user and stop. 6. Heredoc body so markdown survives shell: ```bash gh pr create --title "feat(auth): add oauth login flow" --l