create-pr
БесплатноБез исполняемых скриптовНе проверенUse when the user asks to prepare, publish, or open a GitHub pull request from a local checkout. Verifies branch and diff scope, runs relevant checks, creates…
Об этом скилле
Create a pull request
Tool routing
- Use local Git for repository identity, branch, diff, staging, commits, and push.
- Prefer the GitHub connector for repository and PR context and for PR creation after the branch is pushed.
- Use
ghfor authentication checks, Actions logs, current-branch PR discovery, forked-head syntax, or PR creation when connector coverage is insufficient.
Prepare the branch
- Read repository instructions and resolve the repository root, current branch, remotes, upstream, and remote default branch.
- Inspect
git status --short --branch, the merge base,git log --oneline <base>..HEAD,git diff --stat <base>...HEAD, and the full diff. - Confirm scope only when the worktree mixes unrelated changes. Preserve user changes outside the requested scope.
- Stay on an existing feature branch. If currently on the default branch, create a descriptive branch using the repository or host convention.
- Fetch the target remote when current remote state matters. Rebase or merge only when requested or required by repository policy.
Validate and commit
- Run the relevant focused checks and any required repository gates. Separate regressions from baseline or environment failures.
- Create the fewest reviewable commits. Follow repository message conventions and inspect the staged diff before every commit.
- Recheck the final range and worktree. Do not include unrelated commits, local-only files, credentials, or generated artifacts by accident.
Write the PR
- Build the title from the actual outcome. Follow the repository's title convention; do not copy a vague branch name.
- Start from
references/pr-description-template.mdor the repository's own pull request template. - State what changed, why, validation with real results, user or operational impact, risk, migrations, rollout, and related issues.
- Delete empty optional sections. Never claim unrun checks, nonexistent screenshots, or future work as completed.
- Reuse relevant, current, and safe screenshots or recordings already produced during implementation or validation. Do not omit useful existing evidence merely because it was not created specifically for the PR.
- When visual evidence would materially help review and is easy to capture, create it. Do not block the PR or manufacture low-value media when evidence is irrelevant, impractical, redundant, or unsafe. Follow
references/evidence-attachments.md.
Publish and open
- Push only when the user requested or confirmed publication. For a new remote branch, use
git push -u <remote> <branch>. - Never force-push without separate explicit approval. If approved, use
--force-with-leaseagainst the intended remote branch. - Resolve repository, base, and head explicitly, especially for forks.
- Open a ready-for-review PR by default. Use draft only when the user explicitly asks for a draft. Carry that decision into the exact API field or CLI flags.
Preferred connector fields:
repository_full_name: <owner/repo>
base: <target-branch>
head: <source-branch or owner:branch>
title: <reviewed title>
body: <reviewed Markdown>
draft: <false by default; true only when a draft was explicitly requested>
gh fallback for the same repository or a user-owned fork:
# Ready for review (default)
gh pr create --repo <owner/repo> --base <base> --head <branch-or-user:branch> --title "<title>" --body-file <prepared-body.md>
# Draft (only when explicitly requested)
gh pr create --repo <owner/repo> --base <base> --head <branch-or-user:branch> --title "<title>" --body-file <prepared-body.md> --draft
gh pr create --head does not support an organization as the head owner. For a cross-repository PR whose base and fork belong to the same organization, use a connector that accepts the head repository or GitHub's REST endpoint:
gh api --method POST repos/<base-owner>/<base-repo>/pulls -f title="<title>" -F body=@<prepared-body.md> -f base="<base>" -f head="<organization>:<branch>" -f head_repo="<fork-repo>" -F draft=false
Use -F draft=true only when a draft was explicitly requested. Verify the base and head repositories before sending the request.
Prefer explicit title and body over unreviewed --fill. --body-file publishes Markdown text; it does not upload files referenced by local paths.
Attach and verify evidence
- Inventory relevant screenshots, recordings, previews, logs, or other evidence already created during the work. Use them when they still represent the final change and pass the safety checks.
- If useful evidence does not exist, capture it only when doing so is easy and proportionate to the review value.
- Create the PR with the textual evidence section first.
- Upload local screenshots or recordings through GitHub's attachment UI, or through a connected tool only if it supports user-attachment uploads.
- Replace placeholders with GitHub-generated URLs, add accessible labels and context, then save the descri
Установить create-pr в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл create-pr?
Use when the user asks to prepare, publish, or open a GitHub pull request from a local checkout. Verifies branch and diff scope, runs relevant checks, creates needed commits, pushes only when authorized, and opens a truthful draft or ready PR.
Как установить скилл create-pr?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл create-pr запускает скрипты?
Нет, скилл состоит только из инструкций (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