my-pr-comments

Loads the pr review comments for the current branch.

⭐0stars🔀1forks📁View on GitHub🕐Updated Jan 3, 2026

When & Why to Use This Skill

This Claude skill automates the retrieval of GitHub Pull Request (PR) review comments directly for the current working branch. By leveraging the GitHub CLI (gh), it extracts structured data including file paths, specific line numbers, and reviewer feedback, allowing developers to consolidate and address code quality suggestions without switching between their terminal and browser.

Use Cases

  • Streamlining Revisions: Quickly aggregate all active PR comments into a single view to create a checklist for addressing reviewer feedback efficiently.
  • AI-Assisted Debugging: Provide the retrieved comments to Claude as context so the AI can suggest specific code fixes based on the reviewer's requirements.
  • PR Status Monitoring: Check the latest feedback on the current branch to ensure all concerns have been addressed before requesting a final merge.
  • Contextual Code Analysis: Map reviewer comments to specific files and lines to understand the historical context of changes and decisions made during the development cycle.
namemy-pr-comments
descriptionLoads the pr review comments for the current branch.
allowed-toolsBash(gh pr view:*), Bash(gh api:*)

Get the current pr number:

gh pr view --json "url" | jq '.url'

Now you can run this command to get all the pr comments in JSON

gh api repos/corpaxe/{reponame}/pulls/{prnumber}/comments --paginate --jq '.[] | {file: .path, line: .line, body: .body, author: .user.login}'

Example:

gh pr view --json "url" | jq '.url'

# outputs
"https://github.com/corpaxe/External.Frontend/pull/2972"

gh api   repos/corpaxe/External.Frontend/pulls/2976/comments | jq '.[] | {file: .path, line: .line, body: .body, author: .user.login}'