create-pull-request
БесплатноБез исполняемых скриптовНе проверенCreate a GitHub pull request the user's preferred way. Use whenever opening, creating, or raising a PR with gh.
от motlin★ 20 звёзд на GitHubОб этом скилле
Create Pull Request
Use the code:cli, git:git-workflow, and git:commit skills when available. Only create a PR when the user has explicitly asked for one.
Confirm the Branch Is on Upstream Main
git fetch "${UPSTREAM_REMOTE:-upstream}"
git merge-base --is-ancestor "${UPSTREAM_REMOTE:-upstream}/${UPSTREAM_BRANCH:-main}" HEAD
A non-zero exit means the branch is behind. Offer to rebase with the git:git-rebase skill rather than opening a stale PR.
Title
Count the commits the branch adds with git rev-list --count "${UPSTREAM_REMOTE:-upstream}/${UPSTREAM_BRANCH:-main}..HEAD".
- One commit: the title is that commit's message. Never type it from memory; read it from git in a subshell,
"$(git log -1 --pretty=%s)", so it matches exactly. - More than one: write a one-line summary in commit message style.
Create the PR
Always pass an explicit empty body so gh doesn't prompt or auto-fill. When a browser is available, use --web to open the prefilled page for final review. On a headless system, drop --web.
For a single-commit branch, read the title from git:
gh pr create --web --title "$(git log -1 --pretty=%s)" --body ""
For a multi-commit branch, pass the summary title you wrote:
gh pr create --web --title "Summary of the branch in commit message style" --body ""
Установить create-pull-request в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл create-pull-request?
Create a GitHub pull request the user's preferred way. Use whenever opening, creating, or raising a PR with gh.
Как установить скилл create-pull-request?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл create-pull-request запускает скрипты?
Нет, скилл состоит только из инструкций (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