Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 --all is set, skip this step and jump to Step 1A: Multi-PR Mode below.

  1. Parse owner/repo from the git remote URL.

  2. Resolve the PR number in this order:

    1. If $1 was provided, use it.

    2. Otherwise, try the PR for the current branch:

      gh pr view --json number -q '.number'
      
    3. 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 or COMMENTED review body newer than the latest commit, counted in topLevelFeedback). 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.
  3. 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>
    
  4. Fetch ALL PR data using the bundled script (single GraphQL query):

    bash ${CLAUDE_SKILL_DIR}/scripts/fetch-pr-data.sh <owner> <repo> <pr-number>
    
  5. 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

Полный SKILL.md на GitHub

Установить 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 *)
Read
Edit
Write
Grep
Glob
Task
mcp__github__pull_request_read
mcp__github__add_reply_to_pull_request_comment
mcp__github__pull_request_review_write
mcp__github__issue_write

Вложенные файлы

REFERENCE.mdreferences/commands.mdreferences/multi-pr-mode.mdscripts/fetch-pr-data.shscripts/list-actionable-prs.shworkflows/pr-feedback-wave.workflow.js

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить git-pr-feedback с