home/claude/skills/pr-review/SKILL.md
Fetch unresolved PR review comments and display analysis
npx skillsauth add lambdalisue/dotfiles pr-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
!git branch --show-current
!gh repo view --json nameWithOwner --jq '.nameWithOwner'
!gh pr view --json number --jq '.number' 2>/dev/null || echo 'NO_PR'
Use the values already resolved in Context section above. Split nameWithOwner by "/" to get OWNER and REPO. If argument was provided, use that as PR_NUMBER instead.
Build the query by replacing OWNER, REPO, PR_NUMBER with actual values. Embed values directly in the query. Do NOT use GraphQL variables.
gh api graphql -f query='{ repository(owner: "OWNER", name: "REPO") { pullRequest(number: PR_NUMBER) { reviewThreads(first: 100) { nodes { id isResolved comments(first: 10) { nodes { id body author { login } path line startLine diffHunk } } } } } } }'
Pipe the result to filter unresolved threads:
| jq '[.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false)]'
Read the relevant source files for each comment to understand the full context before analyzing.
Display unresolved comments as a numbered list. Each finding uses the following structure:
Severity levels (exactly 3 characters using filled and empty stars):
(★★★)(★★☆)(★☆☆)(☆☆☆)Format (follow exactly):
## 未解決のレビューコメント (N件)
---
### 1. 指摘のタイトル (`path/to/file:line`) (★★☆)
> 指摘事項の要約をここに記述する。何が指摘されているのかを簡潔にまとめる。
指摘に対してどう考えるか。対応するべきか、対応不要か、その理由を述べる。
対応する場合は対応方法の概要を簡潔に記述する。
**返信内容** (@reviewer_name へ、レビュワーの言語で):
> Reply content in the reviewer's language here.
> This should be the actual message you would post as a thread reply.
---
### 2. ...
Notes:
Execute the workflow above. Start from Step 1.
tools
Update the title and body of an existing pull request WITHOUT asking for approval
tools
Create a pull request with title and body based on commits WITHOUT asking for approval
tools
Create a Conventional Commit from already staged changes WITHOUT asking for approval
tools
Map staged changes to existing commits and create fixup commits for autosquash WITHOUT asking for approval