Guide · Agent skill
How to use the Address GitHub PR Comments agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
The Address GitHub PR Comments skill (address-github-comments) teaches an AI agent how to work through feedback on an open GitHub pull request: read the comments, fix the code, run your checks, and then reply on GitHub. It is for developers who want an agent to clear reviewer comments on their own PR. After this guide you will know what the skill does, how to install it, how to ask for it in plain language, and what to check before letting it post to GitHub.
Quick start
- 1Install the GitHub CLI and log in. Make sure gh is installed, then run gh auth status. If you are not logged in, run gh auth login.
- 2Download the skill ZIP. Download the ZIP from this page and unzip it so the address-github-comments folder with SKILL.md is in place.
- 3Place the skill in a skills folder. Move the folder into ~/.claude/skills/ for personal use, or into .claude/skills/ in a project. Alternatively, upload it in Claude under Settings → Capabilities → Skills.
- 4Check out the PR branch. Switch to the branch that belongs to the open pull request so the agent inspects the right comments.
- 5Ask for a plan first. Request that the agent list the comments and propose a fix for each before changing code.
- 6Review fixes and checks. Read the code changes and the check results the agent reports against the updated head commit.
- 7Authorize replies deliberately. Approve posting replies and resolving threads only after you have read the drafts.
What the skill makes the agent do
An agent skill is a folder with a SKILL.md file that gives an AI agent step-by-step instructions for one kind of task. When a request matches the skill's description, the agent follows its workflow.
This skill follows four stages. First it inspects comments on the current branch's pull request. Then it categorizes the feedback and proposes a fix for each item. Next it applies the changes, reads the surrounding code, and runs the repository's relevant checks. Finally, when you authorize it, it replies to comments with the commit and test result that addressed them.
- Inspects conversation comments and inline review threads, including file and line anchors and resolution state.
- Asks you only when feedback conflicts, expands the scope, or needs a significant decision.
- Preserves unrelated edits in your code.
- Does not treat a conversation comment as closing an inline review thread.
Install the skill from the ZIP or the Claude apps
Option 1: download the ZIP from this page and unzip it into your personal skills folder, ~/.claude/skills/, or into a project's .claude/skills/ folder if you want the skill available only in that repository.
Option 2: in the Claude apps, open Settings, go to Capabilities, and upload the skill under Skills.
The skill's own files are a single SKILL.md. The folder you unzip should contain the address-github-comments skill folder with that file inside.
- Personal install: ~/.claude/skills/
- Project install: .claude/skills/ inside the repository
- Claude apps: Settings → Capabilities → Skills
Set up GitHub CLI before you start
The skill uses the GitHub CLI (gh). Check that you are logged in before asking for any work. The skill itself tells the agent to run gh auth status first, and to run gh auth login if you are not logged in.
You also need a GitHub account that can access the repository and the pull request, and the repository's own build and test tooling so the agent can run the checks it needs.
- Install the GitHub CLI (gh) on your machine.
- Check login with gh auth status.
- If you are not logged in, run gh auth login.
- Confirm you have write access to the repository.
gh auth statusTrigger the skill with natural requests
You do not need a special command. Describe the job in plain language, mentioning the pull request and the kind of feedback. The skill's description covers review or issue comments on an open GitHub pull request using the gh CLI, so requests like these should match.
Be specific about what you want replies to do. If you want the agent to post replies or resolve threads, say so, because the skill asks for authorization before it posts or resolves anything.
- "Address the review comments on my open PR for this branch."
- "Go through the inline review threads on this PR, propose a fix for each, and wait for my approval before changing code."
- "Fix the feedback on PR 42 and reply to each comment with the commit SHA and the test result."
- "Look at the comments on the current branch's pull request and list which ones you think are unresolved."
What the workflow looks like in practice
The agent starts by fetching the conversation with gh pr view --comments. The skill notes that this flag shows conversation comments only and does not list every inline review thread. For inline comments, the agent uses the GitHub connector or the GraphQL reviewThreads connection with pagination, and records the repository, PR number, head SHA, thread IDs and requested changes.
After it proposes fixes, it applies them and runs the relevant repository checks. It reports a fix only after binding the result to the updated head commit. Replies follow the pattern in the skill: they cite the commit and the verification.
- Read the surrounding code of each comment before changing anything.
- Fix only the comments in scope, and keep unrelated edits intact.
- Reply with the commit SHA and the check that passed.
- Leave a proposed reply for you if resolving a thread is not authorized.
gh pr comment <PR_NUMBER> --body "Addressed in <commit SHA>; verified with <check and result>."Safety notes: scripts, network and GitHub writes
This skill does not run scripts of its own, but it does use the network, because it talks to GitHub. Once you authorize it, it can write to GitHub under your account: posting replies and resolving review threads. Use it only on pull requests where you are allowed to make those changes.
Its risk level is marked critical in the skill file, so review the proposed replies before you grant permission to post. Do not use it on other people's PRs without their review, and do not use it on repositories where you have not authenticated gh or lack write access.
- Runs scripts: no. Uses network: yes.
- Writes to GitHub only after you authorize posting or resolving.
- Resolve threads only after the request is addressed and you have authorized resolution.
- Keep your gh credentials under your control.
Tips for better results
Give the agent the PR number or make sure the right branch is checked out, so it inspects the correct pull request. Ask it to list the comments and its planned fixes first if you want to review before any code changes.
Keep requests scoped. The skill is designed to address feedback that falls within your requested scope and to ask when feedback conflicts with it. Check the verification it reports, since the skill itself says it is not a substitute for testing or expert review.
- Start with a planning request before a fix-and-reply request.
- Name the PR number to avoid ambiguity.
- Read each proposed reply before authorizing posting.
- Make sure your repository's checks run locally so the evidence is meaningful.
What people use it for
- Clearing a backlog of reviewer comments on your own open pull request.
- Going through inline review threads, proposing a fix for each, and waiting for your approval.
- Replying to each comment with the commit SHA and test result that addressed it.
- Listing which conversation or inline comments still look unresolved before a re-review.
Frequently asked questions
How do I install the address-github-comments skill?
Download the ZIP from this page and unzip it into ~/.claude/skills/ for personal use, or into .claude/skills/ inside a project. You can also upload it in the Claude apps under Settings → Capabilities → Skills.
Is the address-github-comments skill free?
The skill is published under the MIT licence. The source does not state any price, so check the directory page for any terms that apply to how you get it.
What do I need to use this skill?
You need the GitHub CLI (gh) authenticated with gh auth login, a GitHub account with access to the repository and pull request, and the repository's build and test tooling for the checks the agent runs.
Does the skill post comments on GitHub automatically?
No. The skill says to respond only when you authorize posting replies, and to resolve a thread only after it is addressed and resolution is authorized. Otherwise it leaves a proposed reply for you.
Why does gh pr view --comments not show all my inline comments?
The skill notes that --comments shows conversation comments and does not enumerate every inline review thread. For inline threads, the skill uses the GitHub connector or the GraphQL reviewThreads connection with pagination.
How does this compare with just asking an agent to fix PR comments?
This skill adds a fixed workflow: it inspects threads, proposes fixes, runs checks bound to the updated head, and replies with evidence while asking before it writes to GitHub. A general request may skip some of those steps, so the skill is more structured but still needs your review.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Use this skill if you are a developers or team who wants an agent to work through reviewer comments on your own pull request, with fixes checked by your tests and replies that cite evidence. Pick something else if you cannot authenticate gh or lack write access to the repository, or if you want an agent to comment on other people's PRs without their review.
Download the skill