/skills:create-prfrom skills
Create a high-signal GitHub pull request from the current branch. Use when the user invokes /create-pr, asks to create/open a PR, draft a PR description, write PR title/body, or prepare GitHub changes for review.
Ships in skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Prepare a GitHub PR that is scoped to the actual branch diff, follows the repo's PR template when one exists, and is useful to reviewers.
Defaults:
gh for PR creation.--open/-o, which creates a ready-for-review PR and opens it in the browser.--base <branch> if given, otherwise the first of origin/main, main, origin/master, master, or the repo's default branch that exists..github/PULL_REQUEST_TEMPLATE.md at the repo root unless the user passes a different template path.Flags:
--open / -o: skip the draft — create a ready-for-review PR — and open it in the browser. There is no flag for "ready-for-review but don't open a browser tab" or "draft but open in browser"; ask the user if they need that split.--base <branch>: base branch for the PR (default: see above).Check the current branch is eligible:
Run git branch --show-current. If it's main or master, stop:
Refusing to create a PR from
main/master. Check out or create a feature branch, then re-run/create-pr.
Run gh pr list --head <branch> --state all (or gh pr view <branch>). If an open PR already exists for this branch, stop:
This branch already has an open PR: . Nothing to create.
If the existing PR is merged, stop:
This branch's PR is already merged: . Nothing to create.
Resolve the base branch:
--base <branch> if the user supplied one.origin/main, main, origin/master, master, then the repository's default branch if available. Use the resolved branch name (without an origin/ prefix) as the value for gh pr create --base.--base was given, stop and ask the user for a base branch.Choose the PR template:
.github/PULL_REQUEST_TEMPLATE.md from the repo root.Inspect the change in parallel:
git status (no -uall)git diffgit diff --stagedgit log <base>..HEAD and git diff <base>...HEADDraft the body:
N/A. Tick only materially affected areas; incidental files do not count.Draft the title using the repo's style from the template or recent PRs. Prefer a specific, searchable, action-based title under 70 characters with no trailing period.
Verification must be truthful. Only mark commands as passing if they were actually run; otherwise use not run, blocked, or skipped (docs-only; low risk).
Create the PR:
gh pr create --draft --base "$base" --title "$title" --body-file "$body_file"
Omit --draft when --open/-o was passed (ready-for-review). Use --web only when the user wants manual browser creation.
If creation fails (e.g. gh auth error, no remote, push required first), stop and report the actual error:
PR creation failed: <error from
gh>. Fix the issue above, then re-run/create-pr.
After creation, add suitable existing labels only (gh label list, then gh pr edit <num> --add-label ...). Common labels: bug, frontend, backend, tooling, config, docs, infra, refactor.
If --open was used, run gh pr view --web.
TITLE:
<title>
PR:
<GitHub URL>
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub shiggydoodah/skills --plugin skills24 skills in this plugin
/askRead-only discussion and consultation mode — answer questions, explain code, weigh trade-offs, and recommend improvements without implementing anything. Use when the user invokes /ask, asks "what does this do?", presents an idea for discussion, requests a recommendation or suggestion, critiques a feature ("I don't like X, can we improve it?"), or wants to think something through without entering plan mode or having the agent change code./auditReviews a specific area of the codebase for security, performance & scalability, code quality, or test coverage. Invoke with a path, e.g. /audit apps/backend/auth./brainstormShapes a raw, in-your-head idea into a scoped, non-technical concept brief (IDEA.md) through a collaborative one-question-at-a-time interview — the pre-planning step that comes before there is any plan to refine. Use when the user has an unformed idea to flesh out or scope, says "brainstorm", "help me scope/shape this idea", or "I have an idea", or wants a feature/product concept captured before planning. For stress-testing a plan or document that already exists, use grill-me instead./breakdownBreaks an existing plan, PRD, or tech spec into small, paste-ready task tickets — one self-contained prompt per task that drops cleanly into the current context window or a fresh one. Use when the user says "breakdown", "break this down", wants a plan/PRD/spec split into actionable tasks, steps, or tickets, or wants implementation work they can copy-paste one task at a time. Does not write the plan/PRD/spec — those must already exist./cavemanUltra-compressed communication mode. Cuts token usage ~75% by dropping filler, articles, and pleasantries while keeping full technical accuracy. Use when user invokes /caveman, says "caveman mode", "talk like caveman", "use caveman", "less tokens", or "be brief".
/commit-thisCreate a git commit for the current work by default, or write/review a commit message when requested with --print. Supports short and detailed modes. Use when the user invokes /commit-this, asks to commit current changes, asks for a commit message, commit title, commit body, conventional commit, or help splitting broad changes into reviewable commits.