create-pull-request
О программе
Этот навык автоматизирует создание и управление пул-реквестами на GitHub с использованием GitHub CLI, включая подготовку веток, описания PR и процессы ревью кода. Он предназначен для разработчиков, предлагающих изменения из функциональных веток, запрашивающих ревью кода и выполняющих слияние завершённой работы. Навык охватывает весь жизненный цикл пул-реквеста: от создания через этап обратной связи до финального слияния и очистки.
Быстрая установка
Claude Code
Рекомендуетсяnpx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/create-pull-requestСкопируйте и вставьте эту команду в Claude Code для установки этого навыка
Документация
Create Pull Request
Create GitHub pull request with clear title, structured description, proper branch setup.
When Use
- Proposing changes from feature or fix branch for review
- Merging completed work into main branch
- Asking for code review from collaborators
- Documenting purpose and scope of set of changes
Inputs
- Required: Feature branch with committed changes
- Required: Base branch to merge into (usually
main) - Optional: Reviewers to request
- Optional: Labels or milestone
- Optional: Draft status
Steps
Step 1: Ensure Branch Is Ready
Verify branch is up to date with base and all changes committed:
# Check for uncommitted changes
git status
# Fetch latest from remote
git fetch origin
# Rebase on latest main (or merge)
git rebase origin/main
Got: Branch ahead of origin/main with no uncommitted changes, no conflicts.
If fail: Rebase conflicts? Resolve them (see resolve-git-conflicts skill), then git rebase --continue. Branch diverged far? Consider git merge origin/main instead.
Step 2: Review All Changes on the Branch
Examine full diff and commit history going into PR:
# See all commits on this branch (not on main)
git log origin/main..HEAD --oneline
# See the full diff against main
git diff origin/main...HEAD
# Check if branch tracks remote and is pushed
git status -sb
Got: All commits relevant to PR. Diff shows only intended changes.
If fail: Unrelated commits present? Consider interactive rebase to clean history before creating PR.
Step 3: Push the Branch
# Push branch to remote (set upstream tracking)
git push -u origin HEAD
Got: Branch shows on GitHub remote.
If fail: Push rejected? Pull first with git pull --rebase origin <branch> and resolve conflicts.
Step 4: Write PR Title and Description
Keep title under 70 characters. Use body for details:
gh pr create --title "Add weighted mean calculation" --body "$(cat <<'EOF'
## Summary
- Implement `weighted_mean()` with NA handling and zero-weight filtering
- Add input validation for mismatched vector lengths
- Include unit tests covering edge cases
## Test plan
- [ ] `devtools::test()` passes with no failures
- [ ] Manual verification with example data
- [ ] Edge cases: empty vectors, all-NA weights, zero-length input
🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
For draft PRs:
gh pr create --title "WIP: Add authentication" --body "..." --draft
Got: PR created on GitHub with URL returned. Description clearly tells what changed and how to test.
If fail: gh not authenticated? Run gh auth login. Wrong base branch? Specify with --base main.
Step 5: Handle Review Feedback
Respond to review comments. Push updates:
# View PR comments
gh api repos/{owner}/{repo}/pulls/{number}/comments
# View PR review status
gh pr checks
# After making changes, commit and push
git add <files>
git commit -m "$(cat <<'EOF'
fix: address review feedback on input validation
EOF
)"
git push
Got: New commits show on PR. Review comments addressed.
If fail: CI checks fail after pushing? Read check output with gh pr checks. Fix issues before asking for re-review.
Step 6: Merge and Clean Up
After approval:
# Merge the PR (squash merge keeps history clean)
gh pr merge --squash --delete-branch
# Or merge with all commits preserved
gh pr merge --merge --delete-branch
# Or rebase merge (linear history)
gh pr merge --rebase --delete-branch
After merge, update local main:
git checkout main
git pull origin main
Got: PR merged, remote branch deleted, local main updated.
If fail: Merge blocked by failing checks or missing approvals? Fix those first. Do not force-merge without clearing blockers.
Checks
- PR title concise (under 70 chars) and descriptive
- PR body has summary of changes and test plan
- All commits on branch relevant to PR
- CI checks pass
- Branch up to date with base branch
- Reviewers assigned (if required by repo settings)
- No sensitive data in diff
Pitfalls
- PR too large: Keep PRs focused on single feature or fix. Big PRs harder to review, more merge conflicts.
- Missing test plan: Always describe how changes can be verified, even for docs PRs.
- Stale branch: Base branch moved far ahead? Rebase before creating PR to cut merge conflicts.
- Force-pushing during review: Dodge force-pushing to branch with open review comments. Push new commits so reviewers see incremental changes.
- Not reading CI output: Check
gh pr checksbefore asking for re-review. Failing CI wastes reviewers' time. - Forgetting to delete branch: Use
--delete-branchwith merge to keep remote clean.
See Also
commit-changes- creating commits for PRmanage-git-branches- branch creation and naming conventionsresolve-git-conflicts- handling conflicts during rebase/mergecreate-github-release- releasing after merge
GitHub репозиторий
Frequently asked questions
What is the create-pull-request skill?
create-pull-request is a Claude Skill by pjt222. Skills package instructions and resources that Claude loads on demand, so Claude can perform create-pull-request-related tasks without extra prompting.
How do I install create-pull-request?
Use the install commands on this page: add create-pull-request to Claude Code as a plugin, or clone its repository into your skills directory, then restart Claude so it picks up the skill.
What category does create-pull-request belong to?
create-pull-request is in the Meta category, tagged word, ai and automation.
Is create-pull-request free to use?
Yes. create-pull-request is listed on AIMCP and free to install. It runs inside Claude, so no separate service account is required to use the skill itself.
Похожие навыки
Этот навык предоставляет проверенную в продакшене настройку для Content Collections — TypeScript-ориентированного инструмента, который преобразует файлы Markdown/MDX в типобезопасные коллекции данных с валидацией Zod. Используйте его при создании блогов, сайтов документации или контентных приложений на Vite + React для обеспечения типобезопасности и автоматической проверки содержимого. Он охватывает всё: от настройки плагина Vite и компиляции MDX до оптимизации развертывания и валидации схем.
Этот навык позволяет разработчикам создавать приложения на платформе прогнозных рынков Polymarket, включая интеграцию с API для торговли и получения рыночных данных. Он также обеспечивает потоковую передачу данных в реальном времени через WebSocket для отслеживания текущих сделок и рыночной активности. Используйте его для реализации торговых стратегий или создания инструментов, обрабатывающих обновления рынка в реальном времени.
Этот навык помогает разработчикам создавать плагины OpenCode, которые подключаются к более чем 25 типам событий, таким как команды, файлы и операции LSP. Он предоставляет структуру плагина, спецификации API событий и шаблоны реализации для модулей на JavaScript/TypeScript. Используйте его, когда вам нужно перехватывать, отслеживать или расширять жизненный цикл ассистента OpenCode AI с помощью пользовательской событийно-ориентированной логики.
SGLang — это высокопроизводительный фреймворк для обслуживания больших языковых моделей (LLM), специализирующийся на быстрой структурированной генерации JSON, regex и рабочих процессов агентов с использованием кэширования префиксов RadixAttention. Он обеспечивает значительно более высокую скорость вывода, особенно для задач с повторяющимися префиксами, что делает его идеальным для сложных структурированных результатов и многократных диалогов. Выбирайте SGLang вместо альтернатив, таких как vLLM, когда вам требуется ограниченное декодирование или вы создаете приложения с интенсивным совместным использованием префиксов.
