pr-review
Handles PR review cycles, including fetching comments and resolving issues.
Install
mkdir -p .claude/skills/pr-review-kazuki19992 && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16741" && unzip -o skill.zip -d .claude/skills/pr-review-kazuki19992 && rm skill.zipInstalls to .claude/skills/pr-review-kazuki19992
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use when reviewing a pull request with inline comments, or when fetching and resolving review comments on an existing PR. Triggers include PRレビュー, コードレビュー, レビューコメント, コメントを取得して修正, resolve.Key capabilities
- →Fetch PR overview and diff
- →Post inline comments in CodeRabbit format
- →Retrieve unresolved review threads
- →Determine valid review points for correction
- →Commit and push corrections for comments
- →Resolve corrected review threads
How it works
The skill provides procedures for both reviewing a PR by posting inline comments in a specific format and for resolving comments by fetching threads, making corrections, and marking them as resolved.
Inputs & outputs
When to use pr-review
- →Conduct inline code reviews
- →Resolve PR review comments
- →Fetch PR review threads
About this skill
PRレビュー
PRへの CodeRabbit 風インラインレビューと、レビューコメント対応・resolve の定型手順。
A. レビューする側(インラインコメントを付ける)
-
差分取得:
gh pr view <PR番号>で概要、gh pr diff <PR番号>で差分を取得。必要に応じて変更ファイルの全体を読む -
観点: 正当性(バグ・境界条件)、AGENTS.md / DESIGN.md /
.ai/context/conventions.mdへの準拠、テスト有無、ドキュメント更新漏れ -
コメント形式(CodeRabbit風。種別プレフィクス+指摘+提案):
⚠️ **Potential issue** | 🔴 Critical(または 🟠 Major / 🟡 Minor / 🧹 Nitpick) <問題点の説明(日本語)> <提案コード(diffブロック)> <理由・影響範囲> -
インラインコメント付きレビュー投稿: 1回のレビューにまとめて投稿する
gh api repos/{owner}/{repo}/pulls/<PR番号>/reviews \ -f event=COMMENT -f body='レビュー全体のサマリー' \ -f 'comments[][path]=src/foo.ts' -F 'comments[][line]=42' \ -f 'comments[][side]=RIGHT' -f 'comments[][body]=<コメント本文>'※
lineは diff に含まれる行のみ指定可能。複数コメントはcomments[]を繰り返す
B. レビューされる側(コメント対応 → resolve)
AGENTS.md §10.1「コメントを取得して修正」の実装手順。
-
未解決スレッド取得:
gh api graphql -F owner=':owner' -F name=':repo' -F pr=<PR番号> -f query=' query($owner: String!, $name: String!, $pr: Int!) { repository(owner: $owner, name: $name) { pullRequest(number: $pr) { reviewThreads(first: 50) { nodes { id isResolved path line comments(first: 10) { nodes { author { login } body } } } } } } }' -
有効性判断:
isResolved: falseのスレッドのうち、まだ有効な指摘だけを修正対象にする。対応しない指摘はユーザーの承認を得る(nits含め全コメント対応が原則) -
修正: 指摘ごとに修正し、意味単位でコミット・push
-
返信: 各スレッドに対応内容を返信(修正コミットのハッシュを添える)
-
resolve: 修正が完了したスレッドを解決する
gh api graphql -f query='mutation { resolveReviewThread(input: {threadId: "<thread id>"}) { thread { id isResolved } } }' -
確認: 手順1を再実行し、未解決スレッドが残っていないことを確認
注意
- 修正していないスレッドを resolve しない
- レビュー承認(APPROVE)や変更要求(REQUEST_CHANGES)はユーザーの指示がある場合のみ
When not to use it
- →When the user does not want to review a pull request with inline comments
- →When the user does not want to fetch and resolve review comments on an existing PR
- →When the user wants to approve or request changes without explicit instruction
Limitations
- →The `line` for comments must be within the diff.
- →Unresolved threads should not be resolved without correction.
- →Review approval or change requests are only made with user instruction.
How it compares
This skill standardizes the PR review and comment resolution process with specific comment formats and steps, ensuring consistency and clear communication, unlike an ad-hoc review approach.
Compared to similar skills
pr-review side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| pr-review (this skill) | 0 | 1mo | Review | Intermediate |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| dependency-upgrade | 26 | 5mo | Review | Intermediate |
| git-commits | 21 | 4mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
dependency-upgrade
wshobson
Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.
git-commits
bonny
Create well-structured git commits in logical chunks following best practices
git-advanced-workflows
wshobson
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.
github-multi-repo
ruvnet
Multi-repository coordination, synchronization, and architecture management with AI swarm orchestration
git-workflow-enforcer
CrazyDubya
Ensures commits follow conventional commits, branch naming conventions, and PR templates. Use when creating commits, branches, or PRs, or when user mentions git workflow.