my-pr-comments

Loads the pr review comments for the current branch.

⭐5stars🔀1forks📁View on GitHub🕐Updated Jan 11, 2026

When & Why to Use This Skill

This Claude skill streamlines the software development lifecycle by automatically retrieving Pull Request (PR) review comments for the current branch. By integrating with the GitHub CLI, it extracts structured data including file paths, specific line numbers, and reviewer feedback, allowing developers to consolidate and address code review comments without leaving their AI-powered workflow.

Use Cases

  • Efficient Feedback Resolution: Quickly list all pending PR comments to create a comprehensive checklist of required changes, ensuring every piece of reviewer feedback is addressed.
  • AI-Assisted Refactoring: Provide the retrieved comments as context to Claude to automatically generate code fixes or refactorings based on specific reviewer suggestions.
  • Code Quality Auditing: Aggregate and analyze review comments across the branch to identify recurring patterns or technical debt that needs to be prioritized.
  • Seamless Context Switching: Access detailed line-level feedback directly within the terminal or chat interface, reducing the need to toggle between the browser and the code editor.
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}'