/pull-request:create [--draft] [--[no-]auto] [--base <ref>] [--label <name>] [--no-review] [--[no-]review-body]from pull-request
Creates pull requests, merge requests, or change requests with proper titles, bodies, base branches, labels, and draft/auto-merge flags. Follows repo conventions from templates, commit log, and review-bot config.
Ships in pull-request. 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.
Read when SKILL.md points to them.
Give the reviewer what the diff cannot: why the change exists, the decisions behind it, and how you know it works. Open the PR in the state the repo's workflow expects, so review starts without the user first fixing the title, the body, the base, or the labels.
The commit log, PR template, CONTRIBUTING notes, and review-bot config in the context below record conventions this document does not anticipate. Follow them over the defaults here.
git remote get-url originbun ${CLAUDE_PLUGIN_ROOT}/scripts/detect-bot.tsbun ${CLAUDE_PLUGIN_ROOT}/scripts/pr-template.ts!bun ${CLAUDE_PLUGIN_ROOT}/scripts/git-context.ts
!bun ${CLAUDE_PLUGIN_ROOT}/scripts/sem-context.ts --stack-file "${user_config.stack_file}"
!bun ${CLAUDE_PLUGIN_ROOT}/scripts/contributing.ts
Parse $ARGUMENTS for these flags. With no flags, open a PR/MR ready for review.
--draft: open the PR/MR as a draft. Default: ready for review.--[no-]auto: set or skip auto-merge on a repo you own. Default: ${user_config.auto_merge}. Off on a third-party repo and under --draft.--base <ref>: parent branch to target. Default: the repo's default branch. A branch whose parent is another topic branch is a stack layer, identified only by this flag or by the user. The upstream ref tracks the branch's own remote copy, so it cannot identify the parent.--label <name>: apply a label, repeatable. Default: none.--no-review: skip the hosted review request. Default: on a repo that gates its hosted bot on a label, request the review when the diff clears the metered-review gate and no local pass ran.--[no-]review-body: review the drafted body with ${user_config.body_review_skill} before creating. Default: on when the Remote URL above names an owner other than you, off on your own repos. Off when that skill name is empty.Match the repo's commit style, read from the log in the context above:
${subject}: ${summary}, as in api: add timeout to request.${type}: ${summary}, as in fix: add timeout to request.Name the primary change. A title that needs a serial comma names several: name the shared theme or the largest change, and put the rest in the body. Keep it under 50 characters by cutting scope rather than truncating words. Use the imperative mood and lowercase every word except proper nouns.
Lead with intent: why the change exists, the decisions a reviewer cannot reconstruct from the diff, and how you know it works. Leave out what the diff, the git log, and the status checks already show.
Entities block in the context above to judge what the change did, and write the intent behind those entries in place of the list.Closes #N, Fixes #N, or a bare #N when the PR doesn't close it. On a repo you own, keep a link to the motivating task from another tracker (an Original Task: Things link) as the last line, even in a one-paragraph body. Leave the issue itself untouched: no comments, labels, milestones, or assignees.#N, !N, owner/repo#N). Backticked refs don't auto-link.## sections once the body's substance, not the diff size, needs them.Load the writing skill and cut the tropes it lists.
Past one paragraph, load references/sections.md and apply every rule in it.
When the context above shows a detected PR template, load references/template.md and follow the template's structure in place of the default body format.
git add .pull-request:follow-up --local before pushing when it does. With no config, decide from the hosted signals in follow-up's local.md. Skip it when a local bot pass already ran on this branch this session (/ship runs one), the gate says skip, the provider is paused, detection finds nothing, or the user declines.git push -u origin HEAD--label value, plus the review label when the gate warranted a metered review that no local pass already spent. Load references/labels.md for the lookup and for a label that doesn't resolve.--review-body applies, write the body to tmp/pr-body-<branch>.md, run ${user_config.body_review_skill} --doc tmp/pr-body-<branch>.md --kind pr-body --summary "<repo> <branch>: review the PR body", and fold the feedback into the file before creating. This step reviews the body alone.--draft when set, --base <parent> when the branch is a stack layer, and --label <name> for each label that resolved:
gh pr create --title "..." --body-file tmp/pr-body-<branch>.mdglab mr create --title "..." --description-file tmp/pr-body-<branch>.mdgithub:attach, then pass --attach ./shot.png per file on gh pr create, which rewrites the reference to the uploaded asset. GitLab: pass --attach ./shot.png per file on glab mr create.cat > tmp/pr-body-<branch>.md <<'EOF') in the same call as the create command works, because the validation hook reads the heredoc directly.github:stack for the gh stack link forms, the detection query that picks between them, and what an exit code 9 means.--[no-]auto resolves on, enable auto-merge per references/merge.md.references/reviewers.md for the visibility gate, the ranking script (${CLAUDE_PLUGIN_ROOT}/scripts/suggest-reviewers.ts), and username resolution.Done when the PR/MR exists on the remote, every step above has either run or been skipped for a condition that step names, and you have reported the URL to the user along with any step that did not complete and why.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub bendrucker/claude --plugin pull-request4 skills in this plugin
/babysitpull-request:babysitMonitor a PR's CI, fix trivial failures, and self-cancel when green; --merge drives to merged, --reviews hands off to AI-review triage./follow-uppull-request:follow-upFollow up as the author on review feedback on your PR/MR: triage and draft replies, catch silent resolves, and drive bot reviewers to a passing score. Triggers: "address reviewer feedback", "make the bot reviewer pass", "greptile/coderabbit review", "bot review before pushing".
/updatepull-request:updateUpdate a pull request or merge request body to reflect the current state of changes.
Use when a PR/MR has evolved through additional commits and the body needs to reflect what will be merged.
Other plugins' skills for the same job