Create Pull Request
Give the reviewer what the diff cannot: the problem the change solves and what it does about it. 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.
Context
- Remote URL: !
git remote get-url origin - Review bot: !
bun "${CLAUDE_PLUGIN_ROOT}/scripts/detect-bot.ts" - PR Template: !
bun "${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"
Arguments
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.
Title
Match the repo's commit style, read from the log in the context above:
- subject (default):
${subject}: ${summary}, as inapi: add timeout to request. - conventional:
${type}: ${summary}, as infix: 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.