From github
Creates a GitHub pull request using the gh CLI. Automatically extracts the title from recent commit messages, confirms the branch is up-to-date with main, and keeps the body empty.
How this skill is triggered — by the user, by Claude, or both
Slash command
/github:create-pull-requestThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use the `code:cli`, `git-workflow`, and `git-commit` skills when available. Only create a PR when the user has explicitly asked for one.
Use the code:cli, git-workflow, and git-commit skills when available. Only create a PR when the user has explicitly asked for one.
Fetch first, then test whether the branch already contains the tip of origin/main:
git fetch origin
git merge-base --is-ancestor origin/main HEAD
origin/main before creating the PR rather than opening a stale PR.Never type the title from memory. Read it from git in a subshell so it matches exactly.
First count the commits the branch adds over origin/main:
git rev-list --count origin/main..HEAD
if one commit, then the title is that commit's message.
git log -1 --pretty=%s
More than one: write a short one-sentence summary title — same style as a commit message (present-tense verb, one line, no trailing paragraphs).
Always pass an explicit empty string for the body so gh does not prompt or auto-fill.
--body ""
When a browser is available, open the prefilled page for final review:
gh pr create --web --title "$(git log -1 --pretty=%s)" --body ""
On a headless system without a browser, drop --web:
gh pr create --title "$(git log -1 --pretty=%s)" --body ""
npx claudepluginhub motlin/claude-code-plugins --plugin githubCreates a pull request using the repo's PR template. Use when the user wants to open or submit a PR without immediately merging it. SKIP for end-to-end ship flows; use `ship` instead.
Creates a pull request from the current branch with unpushed commits, auto-detecting the base branch and using PR templates when available.