update-pr
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when the user asks to "update the PR", "update PR body", "update PR title", "sync PR description", "update pull request", or wants…
от richin13★ 15 звёзд на GitHubОб этом скилле
Update PR
Analyze the current branch's changes and update the associated pull request's title and body to accurately reflect what was done.
Prerequisites
- The current branch must have an open PR (both
gh pr viewandgh pr editwork without a PR number when on the associated branch) ghCLI is authenticated
Workflow
1. Gather Context
Run these commands in parallel to understand the current state:
gh pr view --json number,title,body,headRefName,baseRefName
gh pr diff
git log <baseRefName>..HEAD --oneline
Use baseRefName from the PR view output as the base branch for the log and diff commands.
2. Analyze Changes
Review ALL commits and the full diff, not just the latest commit. Identify:
- The nature of each change (new feature, bug fix, refactor, cleanup, etc.)
- Group related changes into coherent bullet points
- Note any files or areas of the codebase affected
3. Draft Title and Body
Title rules:
- Under 70 characters
- Summarize the overall intent, not individual changes
- Use imperative mood ("Add X" not "Added X")
- Accurate verb choice: "add" for new features, "fix" for bugs, "update" for enhancements, "remove" for deletions, "refactor" for restructuring
Body format:
## Summary
- <bullet points describing changes>
## Test plan
- [ ] <verification steps>
---
> Drafted by <your name> 🤖
Keep bullet points concise. The summary should focus on "why" not "what" when possible. Test plan items should be actionable verification steps.
4. Present and Confirm
Show the drafted title and body to the user. Wait for explicit approval before applying.
5. Apply
Use the REST API directly to avoid a known GraphQL error where gh pr edit fails because it queries the deprecated "Projects (classic)" projectCards field:
gh api repos/<owner>/<repo>/pulls/<number> -X PATCH -f title="<title>" -f body="$(cat <<'EOF'
<body>
EOF
)" --jq '.html_url'
Always use a HEREDOC for the body to preserve formatting. Extract owner/repo from gh repo view --json nameWithOwner --jq .nameWithOwner.
After applying, return the PR URL from the output.
Установить update-pr в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл update-pr?
This skill should be used when the user asks to "update the PR", "update PR body", "update PR title", "sync PR description", "update pull request", or wants the pull request title and body to reflect the actual changes on the current branch.
Как установить скилл update-pr?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл update-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