creating-pr — скилл для Claude Code: пул-реквесты под ревью
Скилл проводит агента по шагам создания пул-реквеста: подготовка ветки, заголовок, описание, самопроверка и запрос ревьюеров.
npx skills add spencerpauly/awesome-cursor-skills --skill creating-pr -a claude-codeЧто делает creating-pr
Скилл описывает рабочий процесс из шести шагов. Сначала ветка приводится в актуальное состояние относительно базовой: git fetch origin, затем rebase или merge по конвенции проекта, потом просмотр коммитов и статистики диффа. Fixup-коммиты можно сквошить, если в проекте любят чистую историю, а можно оставить раздельными.
Заголовок пишется в формате <type>: <short description>, где тип — feat, fix, refactor, docs, test, chore или perf. Описание собирается из трёх блоков: Summary на 1–3 предложения с Closes #123, список изменений и Test Plan с чекбоксами. Перед запросом ревью скилл требует прочитать дифф целиком, убрать отладочный код и прогнать тесты, проверку типов и линтер.
Сам PR создаётся через git push -u origin HEAD и gh pr create с телом из heredoc. Дальше — ревьюеры, метки и, если дифф больше 400 строк, комментарий с порядком просмотра файлов. Для этого нужен установленный gh и настроенная авторизация в GitHub, иначе шаг создания PR не пройдёт. Скилл советует держать изменения в пределах 300 строк: крупные PR разбивают на стеки.
Какие задачи решает
- собрать описание пул-реквеста по шаблону с Summary, Changes и Test Plan
- привести ветку в актуальное состояние перед открытием PR
- выбрать тип заголовка из feat, fix, refactor и остальных
- прогнать тесты, типы и линтер до запроса ревью
- разбить большой дифф на стек пул-реквестов
Примеры запросов агенту
- создай PR по текущей ветке
- подготовь пул-реквест с описанием и тест-планом
- проверь дифф перед ревью и убери отладочный код
Как установить creating-pr
1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill creating-pr -a claude-code2Вручную: положить файлы
~/.claude/skills/creating-pr/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/creating-pr/
1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill creating-pr -a codex2Вручную: положить файлы
.agents/skills/creating-pr/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill creating-pr -a cursor2Вручную: положить файлы
.cursor/skills/creating-pr/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install spencerpauly/awesome-cursor-skills creating-pr2Вручную: положить файлы
.github/skills/creating-pr/SKILL.md1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill creating-pr -a gemini-cli2Командой платформы
gemini skills install https://github.com/spencerpauly/awesome-cursor-skills --path resources/creating-prВручную: положить файлы
.devin/skills/creating-pr/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill creating-pr -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора59
Похожие
Рядом в теме «Git и GitHub»
Всё по теме «Git и GitHub» →Вопросы о creating-pr
Как установить creating-pr в Claude?
Выполните npx skills add spencerpauly/awesome-cursor-skills --skill creating-pr -a claude-code. Скилл появится в ~/.claude/skills/creating-pr/SKILL.md.
Что делает creating-pr?
Проводит агента по шагам создания пул-реквеста: подготовка ветки, заголовок с типом, структурированное описание, самопроверка диффа и запрос ревьюеров.
Что нужно для работы скилла?
Шаги создания PR используют gh pr create, поэтому нужен установленный GitHub CLI с настроенной авторизацией.
Исходный текст
SKILL.md · CC0-1.0
--- name: creating-pr description: Create a clean, review-ready pull request with a good title, structured description, linked issues, and appropriate reviewers. user-invocable: true --- # Creating a PR Package work into a pull request that's easy to review and merge. ## Workflow ### 1. Prepare the Branch Before creating the PR: ```bash # Ensure branch is up to date with base git fetch origin git rebase origin/main # or merge, depending on project convention # Check what will be in the PR git log origin/main..HEAD --oneline git diff origin/main --stat ``` Squash fixup commits if the project prefers clean history. Keep logical commits separate if the project prefers granular history. ### 2. Write the Title Format: `<type>: <short description>` | Type | When | |------|------| | `feat` | New feature | | `fix` | Bug fix | | `refactor` | Code change that neither fixes a bug nor adds a feature | | `docs` | Documentation only | | `test` | Adding or fixing tests | | `chore` | Build, CI, deps, or tooling | | `perf` | Performance improvement | Examples: - `feat: add dark mode toggle to settings page` - `fix: prevent duplicate form submissions on checkout` - `refactor: extract auth middleware into shared module` ### 3. Write the Description Use this structure: ```markdown ## Summary 1-3 sentences explaining what this PR does and why. Closes #123 ## Changes - Added `ThemeToggle` component with system/light/dark options - Updated `Layout` to read theme from context - Added theme persistence to localStorage ## Test Plan - [ ] Toggle between light/dark/system themes - [ ] Refresh page — theme persists - [ ] Check no flash of unstyled content on load ``` ### 4. Self-Review Before requesting review: - Read every line of the diff yourself - Remove debug code (`console.log`, `TODO`, commented-out code) - Verify tests pass: `npm test` - Verify types: `npx tsc --noEmit` - Verify lint: `npm run lint` - Check for files that shouldn't be committed (`.env`, lockfile conflicts) ### 5. Create the PR ```bash git push -u origin HEAD gh pr create --title "<title>" --body "$(cat <<'EOF' ## Summary ... ## Changes ... ## Test Plan ... EOF )" ``` ### 6. Request Review - Tag the appropriate reviewers (code owners, domain experts) - If the PR is large (>400 lines), add a comment explaining the best order to review files - If the PR depends on another PR, note it in the description - Label the PR appropriately (feature, bug, breaking change, etc.) ## Tips - Small PRs get reviewed faster — aim for <300 lines changed - If a PR is too big, split it into stacked PRs - Screenshots/recordings for UI changes make review much faster - Draft PRs are useful for early feedback before the work is complete
© spencerpauly · CC0-1.0 · spencerpauly/awesome-cursor-skills