git-pr-feedback
БесплатноЗапускает вложенные скриптыНе проверенAddress PR review comments and resolve threads. Use when CHANGES_REQUESTED is set, working through unresolved review threads, or replying to reviewer feedback.
от laurigates★ 61 звезда на GitHubОб этом скилле
Context
- Repo: !
git remote -v - Current branch: !
git branch --show-current - Git status: !
git status --porcelain=v2 --branch
Parameters
Parse these parameters from the command (all optional):
| Parameter | Description |
|---|---|
$1 |
PR number (if omitted, use PR of current branch; if no such PR, list actionable PRs). Mutually exclusive with --all. |
--commit |
Create commit(s) after addressing feedback. |
--push |
Push changes after committing (implies --commit). |
--all |
Address feedback on every actionable open PR. Dispatches one subagent per PR in an isolated worktree; the orchestrator pushes, replies, and resolves. Implies --commit --push unless --dry-run is set. Mutually exclusive with $1. |
--dry-run |
With --all, print the dispatch plan and stop — no subagents spawned, no commits, no pushes. Ignored without --all. |
--limit N |
Maximum concurrent subagents under --all (default 3). Use a small number to stay under GitHub rate limits and avoid API rate-limit cascades from many concurrent subagents — the hazard bites 1M-context sessions, which on Fable is every session, since 1M is its default window (see skill-fork-context.md). |
--include-automation |
With --all, also surface automation-authored PRs (release-please, dependabot, renovate, *[bot], *-bot). Excluded by default because they carry no human review feedback and their CI failures are resolved by automation re-running, not hand edits. |
Mode selection:
| Mode | Triggered when | Flow |
|---|---|---|
| Single-PR | No --all |
Steps 1–7 below operate on one PR. |
| Multi-PR | --all is passed |
Step 1A dispatches subagents; the orchestrator finalises (push, reply, resolve, re-request) and writes a combined summary. Skip Steps 1–6. |
If both $1 and --all are given, error and stop with: --all is mutually exclusive with a PR number argument.
When to Use This Skill
| Use this skill when... | Use another skill instead when... |
|---|---|
| A PR has reviewer comments to address | CI checks are failing with no review comments -> use git-fix-pr |
| You need to systematically work through review feedback | You're creating a new PR -> use git-commit-push-pr |
| A reviewer has requested changes | You want to understand PR workflow patterns -> use git-branch-pr-workflow |
Your Task
Review PR workflow results and reviewer comments, then address substantive feedback.
For feedback categorization, decision trees, commit format, and report templates, see REFERENCE.md.
Step 1: Determine PR and Gather All Data
If
--allis set, skip this step and jump to Step 1A: Multi-PR Mode below.
Parse owner/repo from the git remote URL.
Resolve the PR number in this order:
If
$1was provided, use it.Otherwise, try the PR for the current branch:
gh pr view --json number -q '.number'If step 2 fails (no PR for the branch) or the command is on a detached/default branch, fall back to listing actionable PRs:
bash ${CLAUDE_SKILL_DIR}/scripts/list-actionable-prs.sh <owner> <repo>The script emits a JSON array of open, non-draft PRs that have unresolved review threads, failing/errored CI,
CHANGES_REQUESTED, or top-level feedback (a non-empty conversation comment orCOMMENTEDreview body newer than the latest commit, counted intopLevelFeedback). Handle the result as follows:Result Action Empty array Report "No PRs need attention." and stop. One entry Use that PR number and continue. Multiple entries Print a compact table (number, author, CI, unresolved, topLevelFeedback, reviewDecision, title) ordered as returned, then stop and instruct the user to re-run /git:pr-feedback <number>. Do not guess which PR they meant.
Switch to PR branch if not already on it:
gh pr view $PR --json headRefName -q '.headRefName' git switch <branch-name> git pull origin <branch-name>Fetch ALL PR data using the bundled script (single GraphQL query):
bash ${CLAUDE_SKILL_DIR}/scripts/fetch-pr-data.sh <owner> <repo> <pr-number>For failed checks only, fetch detailed logs:
gh run view $RUN_ID --log-failed
| Check Status | Action |
|---|---|
| All passing | Skip to Step 2 |
| Failed CI | Get logs with gh run view, may need fixes |
| Pending | Note status, focus on comments |
If the GraphQL query fails with a rate limit error, wait 60 seconds and retry once.
Step 1A: Multi-PR Mode (--all)
Reached only when --all i
Установить git-pr-feedback в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(gh pr checks *)Bash(gh pr view *)Bash(gh pr diff *)Bash(gh run view *)Bash(gh run list *)Bash(gh api *)Bash(gh repo view *)Bash(gh issue create *)Bash(git status *)Bash(git diff *)Bash(git log *)Bash(git add *)Bash(git commit *)Bash(git push *)Bash(git switch *)Bash(git pull *)Bash(git fetch *)Bash(pre-commit *)Bash(npm run *)Bash(uv run *)Bash(bash *)ReadEditWriteGrepGlobTaskmcp__github__pull_request_readmcp__github__add_reply_to_pull_request_commentmcp__github__pull_request_review_writemcp__github__issue_writeВложенные файлы
FAQ
Что делает скилл git-pr-feedback?
Address PR review comments and resolve threads. Use when CHANGES_REQUESTED is set, working through unresolved review threads, or replying to reviewer feedback.
Как установить скилл git-pr-feedback?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл git-pr-feedback запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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