address-review
БесплатноЗапускает вложенные скриптыНе проверенRespond to GitHub PR review comments in one pass — fetch, triage (agree or disagree), fix the valid ones, commit, push, reply to all, and resolve only the…
от Positronic-Robotics★ 92 звезды на GitHubОб этом скилле
Address Review Comments
One full cycle of responding to review feedback on the current branch's PR: read every unresolved comment, decide on the merits, fix what is worth fixing, then commit, push, reply, and resolve only the threads you fixed. Declines, defers, and discussion / question comments get a reasoned reply and stay open — closing them is the human's call.
The push-pr skill delegates here when review comments arrive. After each push this skill
watches both CI (GitHub Actions on the pushed commit) and the reviewer's asynchronous
re-review in the background, and loops itself through another pass for each new comment
round or CI failure (Step 7) — so the user can walk away instead of babysitting the cycle,
and gets pinged only when it converges (CI green and the reviewer signs off) or
needs their call. A red build is never "done", no matter what the reviewer says.
Principles
- Only submitted feedback exists. A reviewer's in-progress review is theirs until they send it; its comments are not input, not even to read. See Step 1 — the prescribed REST fetch hides them, and the GraphQL workaround does not.
- Judge every comment on merit. Agree or disagree; never auto-apply. A reviewer —
especially a bot — can be wrong, stale, or missing project context. Check intent before
deciding:
git show <sha>, the surrounding code, and any design docs. The code may be intentional. - Do the research before you decide, not after. Most findings rest on a claim about how something behaves — "a valid backend leaves this field unset", "a custom config could name different cameras". That is a fact, not a matter of taste, and deciding it from what happens to be in front of you is the most common way this skill goes wrong. Go and establish it: read the dependency's own source (vendor forks and third-party packages are usually checked out beside this repo), grep every construction of the type in question, run the thing. A premise you could have checked and did not is not grounds for either a decline or a question — it is unfinished work. Verdicts carry the evidence that settled them.
- Fix → push → reply → resolve, in that order. Reply text references the commit that fixed it, so the fix must land first.
- Every thread you fixed MUST be resolved — and only those. Once a bot comment's fix is pushed and you have replied referencing the commit, resolve its thread: a fixed Codex thread left open reads as still-broken to anyone scanning the PR and leaves the conversation cluttered with items already handled. The two directions are symmetric and both mandatory: fixed → resolve, and declines, defers, and discussion / question comments stay OPEN — those get a reasoned reply, but resolving them closes a conversation that is the human's to close (especially a reviewer's "why…?" or "should we…?", which is an invitation to discuss, not a change request). Never resolve a thread just to clear the queue, and never leave a thread you fixed unresolved. When a comment is on the fence, leave it open.
- Stay scoped to the feedback. Don't sprawl into unrelated refactors.
- Follow the repo's commit conventions (see the
push-prskill). CRITICAL: never addCo-Authored-Byor any AI / Claude / assistant attribution to commits, replies, or PRs.
Step 1: Find the PR and its comments
gh pr view --json number,url,headRefName,baseRefName \
-q '"PR #\(.number) \(.url) (\(.headRefName) -> \(.baseRefName))"' || { echo "No PR for this branch"; exit 1; }
PR=$(gh pr view --json number -q .number)
REPO=$(gh pr view --json url -q .url | awk -F/ '{print $4"/"$5}') # BASE repo from the PR URL — the PR and
OWNER=${REPO%/*}; NAME=${REPO#*/} # its comments live here; gh repo view can
# return the fork in a fork checkout
# The PR's head branch + the repo that hosts it. In a cross-repo (fork) PR the head repo is NOT
# $REPO: the PR lives on the base, its commits belong on the fork. Derive the push target from
# the PR — never hard-code a remote.
HEAD_REF=$(gh pr view --json headRefName -q .headRefName)
HEAD_REPO=$(gh pr view --json headRepositoryOwner,headRepository -q '.headRepositoryOwner.login + "/" + .headRepository.name')
# the local remote whose URL hosts $HEAD_REPO — origin in the standard fork setup; empty only if
# no remote points at the head repo, in which case the Step 4 push fails loudly (add the remote).
# Compare owner/repo literally — normalize `:`→`/`, drop `.git`, take the last two path segments —
# rather than regex-matching $HEAD_REPO, whose `.` would otherwise match the wrong remote.
HEAD_REMOTE=$(git remote -v | awk -v r="$HEAD_REPO" '{u=$2; sub(/\.git$/,"",u); gsub(/:/,"/",u); n=split(u,p,"/"); if (n>=2 && p[n-1]"/"p[n]==r){print $1; exit}}')
REPO (base) is where every gh api repos/$REPO/... read below goes; `HEAD_
Установить address-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(git add:*)Bash(git commit:*)Bash(git push:*)Bash(git diff:*)Bash(git rev-parse:*)Bash(git remote:*)Bash(awk:*)Bash(gh api:*)Bash(gh pr:*)Bash(gh repo:*)Bash(gh run:*)Bash(uv run:*)Bash(bash .claude/skills/address-review/watch.sh:*)EditWriteSkill(check-rules)TaskВложенные файлы
FAQ
Что делает скилл address-review?
Respond to GitHub PR review comments in one pass — fetch, triage (agree or disagree), fix the valid ones, commit, push, reply to all, and resolve only the threads you fixed (declines, defers, and discussion questions stay open for the human). Use when a PR has reviewer or bot (e.g. Codex) comments to address.
Как установить скилл address-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл address-review запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic