pr-review-check

Check Pull Request on current branch, and obtain unresolved review comments. `gh` command is required. Use this when user instructed with `PR review comment` `PR レビューコメント` etc.

⭐0stars🔀0forks📁View on GitHub🕐Updated Jan 9, 2026⬇️1downloads

When & Why to Use This Skill

This Claude skill automates the retrieval of unresolved review comments from GitHub Pull Requests directly within the development environment. By leveraging the GitHub CLI (gh) and GraphQL, it enables developers to quickly identify pending feedback on their current branch, streamlining the code review cycle and ensuring no critical discussions are overlooked before merging.

Use Cases

  • Streamlined Feedback Loop: Quickly list all outstanding review comments to address developer feedback without manually navigating the GitHub web interface.
  • Pre-merge Verification: Run a final check to ensure all discussion threads are resolved and all reviewer concerns have been addressed before merging a branch.
  • AI-Assisted Refactoring: Provide the AI agent with the context of unresolved comments so it can suggest specific code changes or fixes based on reviewer suggestions.
  • Daily Standup Preparation: Use the tool to summarize pending tasks and feedback on active PRs for team sync-ups.
namepr-review-check
descriptionCheck Pull Request on current branch, and obtain unresolved review comments. `gh` command is required. Use this when user instructed with `PR review comment` `PR レビューコメント` etc.
allowed-toolsRead, Bash(cat:*), Bash(gh:*), Bash(jq:*)

Get Unresolved Review Comments for Current Branch's PR

# Save query to a temp file
cat > /tmp/query.graphql << 'EOF'
query($owner: String!, $repo: String!, $number: Int!) {
  repository(owner: $owner, name: $repo) {
    pullRequest(number: $number) {
      reviewThreads(first: 100) {
        nodes {
          isResolved
          comments(first: 10) {
            nodes {
              body
              author { login }
              path
              line
            }
          }
        }
      }
    }
  }
}
EOF

# Execute
gh api graphql \
  -f query="$(cat /tmp/query.graphql)" \
  -f owner="$(gh repo view --json owner --jq '.owner.login')" \
  -f repo="$(gh repo view --json name --jq '.name')" \
  -F number="$(gh pr view --json number --jq '.number')" \
  | jq '.data.repository.pullRequest.reviewThreads.nodes | map(select(.isResolved == false))'