pull-request:create
БесплатноБез исполняемых скриптовНе проверенCreate a pull request, merge request, or change request (PR, MR, CR). Use when the user asks to open one, including right after committing changes, and when…
от bendrucker★ 18 звёзд на GitHubОб этом скилле
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-bot-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.--review <reviewer>, repeatable: review the work before the PR opens.clauderuns Claude's own review of the diff before pushing.humanholds the PR until the user approves its body and diff, as Human Review below says. Passhumanwhen the user, or the prompt that dispatched this session, asks to review the work before the PR opens. With both,clauderuns first. Default: none, and the PR opens with no review before it.
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.
Body
Before drafting, load references/sections.md and apply every rule in it.
- Use the
Entitiesblock in the context above to judge what the change did, and write the intent behind those entries in place of the list. - Reference the motivating issue on the body's last line:
Closes #N,Fixes #N, or a bare#Nwhen the PR doesn't close it. A tracker key the session names (ABC-123) takes the same form:Closes ABC-123. On a repo you own, keep a link to the motivating task from another tracker (anOriginal Task:Things link) as the last line, even in a one-paragraph body. Leave the issue itself untouched: no comments, labels, milestones, or assignees. - Wrap code identifiers in backticks. Leave bare anything the platform auto-links: commit SHAs and issue or MR refs (
#N,!N,owner/repo#N). Backticked refs don't auto-link. - Write one line per paragraph and one line per list item. The body soft-wraps when it renders.
Load the writing skill and cut the tropes it lists.
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.
Workflow
- When the current branch is a default branch (main or master), stop and ask the user to switch to a feature branch.
- Stage any unstaged changes:
git add . - When the branch carries no commits yet, commit in the same format as the PR title.
- Local bot review: the Review bot line above reports repo config, CLI presence, and any cooldown. On a config hit with no cooldown, apply the gate in follow-up's SKILL.md to decide whether the diff needs a metered review, and run
pull-request:follow-up --localbefore pushing when it does. With no config, decide from the hosted signals in follow-up'slocal.md. Skip it when a local bot pass already ran on this branch this session, the gate says skip, the provider is paused, detection finds nothing, or the user declines. - Under
--review claude, invokecode-reviewthrough theSkilltool atloweffort, or the effort the user named. Fix each finding it confirms and commit the fixes in the same format as the PR title. - Push the branch:
git push -u origin HEAD - Resolve every label against the repo before creating: each `--l
Установить pull-request:create в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
mcp__githubAgentSkill(pull-request:follow-up)Skill(github:stack)Skill(gitlab:merge-request)Skill(github:attach)Bash(git add:*)Bash(git commit:*)Bash(git push:*)Bash(git remote get-url:*)Bash(gh pr:*)Bash(gh stack:*)Bash(glab mr:*)Bash(bun ${CLAUDE_PLUGIN_ROOT}/scripts/*)Bash(bun "${CLAUDE_PLUGIN_ROOT}/scripts/*)Вложенные файлы
FAQ
Что делает скилл pull-request:create?
Create a pull request, merge request, or change request (PR, MR, CR). Use when the user asks to open one, including right after committing changes, and when the user asks to review the work before the PR opens.
Как установить скилл pull-request:create?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pull-request:create запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic