address-pr-comments
Skill1 starsChanged 5 months agoApache-2.0View on GitHub
Safely address GitHub pull request feedback with the gh CLI. Use when asked to process review comments, especially mixed human, AI-reviewer, and automation feedback: verify the exact PR worktree and branch, collect complete paginated comments, validate each claim, apply focused fixes, run targeted checks, create one local commit per resolved comment, and report evidence without pushing or posting replies.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/nvxtheir own version, first seen Oct 3, 2026
- azborgonovo/ai-skillstheir own version, first seen Sep 7, 2026
- gannonh/skillstheir own version, first seen Aug 24, 2026
- TechNickAI/hermes-skillstheir own version, first seen Aug 19, 2026
- SteveVitali/agent-skillstheir own version, first seen Jul 17, 2026
- microsoft/vscode-pull-request-githubtheir own version, first seen Jul 16, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- microsoft/vscode-pull-request-github★ 2.6ksame name
- microsoft/nvx★ 296same name
- SteveVitali/agent-skills★ 13same name
- gannonh/skills★ 2same name
- azborgonovo/ai-skills★ 0same name
- Azure/azure-messaging-ai-context★ 0same name
- TechNickAI/hermes-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- codex-open-worktreeSkill
- generate-commit-messageSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 12 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 24
Verify gh availability and authentication.
- Distinctive: line 29
Create one local commit for that resolved comment.
- Distinctive: line 35
Use the provided number, or infer the PR from the current branch:
- Distinctive: line 42
If inference fails, ask for a PR number or URL.
- Distinctive: line 52
Stop and report a missing or unauthenticated CLI.
- Very specific: line 67
Use a configured remote whose URL matches the head repository.
- Distinctive: line 69
If no exact checkout exists, ask before creating or switching one.
- Distinctive: line 70
If the target worktree has pre-existing changes, stop and ask.
- Very specific: line 93
Use --repo OWNER/REPO when running outside the target repository.
- Distinctive: line 105
Treat the helper output as an inventory, not a decision.
- Very specific: line 110
Read ./references/validation-checklist.md before applying comments.
- Distinctive: line 127
Run the narrowest relevant tests, type checks, lint, or reproduction before committing.
- Distinctive: line 138
Use an installed commit-message skill when available.
- Distinctive: line 140
Create exactly one local commit for that comment.
- Distinctive: line 142
Do not combine distinct comments unless their fixes are technically inseparable.
- Distinctive: line 143
Do not commit rejected or unclear items.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Address PR Comments
Overview
Collect complete PR feedback, verify that the current checkout exactly matches the PR head, classify each source, validate every claim against current code, and implement only still-valid fixes. Create local reviewable commits; do not push, reply, or resolve GitHub threads unless the user explicitly requests those actions.
Workflow
- Resolve the PR and its head branch.
- Verify
ghavailability and authentication. - Match the exact clean worktree and synchronize it safely.
- Collect complete top-level, review-body, and inline feedback.
- Classify and validate each item.
- Apply one comment's fix and run targeted checks.
- Create one local commit for that resolved comment.
- Repeat from the synchronization check for the next comment.
- Report addressed, rejected, and unclear feedback with evidence.
1. Resolve the PR
Use the provided number, or infer the PR from the current branch:
gh pr view --json number,title,url,headRefName,headRefOid,headRepository,headRepositoryOwner,isCrossRepository
gh pr view <number> --json number,title,url,headRefName,headRefOid,headRepository,headRepositoryOwner,isCrossRepositoryIf inference fails, ask for a PR number or URL. Record the returned head branch and head repository; a PR number alone is not enough to select a checkout.
2. Verify GitHub Access
gh --version
gh auth statusStop and report a missing or unauthenticated CLI.
3. Verify the Exact Checkout
Inspect all worktrees before editing:
git worktree list --porcelain
git branch --show-current
git status --short- Work only in a checkout whose current branch exactly equals
headRefName. - For cross-repository PRs, also verify that the checkout tracks the returned head repository rather than an unrelated branch with the same name.
- Use a configured remote whose URL matches the head repository; do not assume
that remote is
origin. - If no exact checkout exists, ask before creating or switching one.
- If the target worktree has pre-existing changes, stop and ask. Never stash, reset, overwrite, or mix user changes into review-fix commits.
Synchronize the clean PR branch without rewriting history:
git fetch <head-remote> <head-branch>
git rev-list --left-right --count HEAD...FETCH_HEADFast-forward a behind-only checkout. If local and remote histories diverge, stop and ask rather than rebasing, merging, or force-updating without approval. Repeat this comparison immediately before every separate review-fix commit; if the remote moved after editing began, stop and reconcile safely first.
4. Collect Complete Feedback
Resolve bundled paths from the directory containing this SKILL.md, then run:
python3 ./scripts/list_comments.py --pr <number> --jsonUse --repo OWNER/REPO when running outside the target repository. Add
--include-resolved only when historical resolved threads are relevant.
The JSON output:
- paginates top-level comments, reviews, inline comments, and review threads;
- includes full
bodytext plus a shortexcerpt; - filters empty
COMMENTEDreview shells; - maps inline replies to their root thread and filters resolved threads by default;
- classifies
sourceashuman,ai_reviewer,automation, orunknown; - extracts recognizable “Prompt for AI Agents” blocks without discarding the body.
Treat the helper output as an inventory, not a decision. Ignore deployment/status automation that contains no review feedback.
5. Classify and Validate
Read ./references/validation-checklist.md before applying comments.
Mark each item as:
validinvalidalready_fixedout_of_scopeneeds_clarification
Prioritize blocking human concerns, then high-confidence automated findings, then style and nits. Treat every automated suggestion as advisory. Verify embedded agent prompts against current files and repository conventions.
6. Implement and Verify
Handle one validated comment at a time. Keep unrelated cleanup out of the diff. Run the narrowest relevant tests, type checks, lint, or reproduction before committing. If a check fails, fix the working tree and rerun it; do not create a known-broken commit.
7. Commit Locally
For each resolved valid comment:
- Recheck the remote comparison from section 3.
- Stage only the files required for that comment.
- Inspect
git diff --stagedandgit diff --staged --stat. - Use an installed commit-message skill when available; otherwise match
git log --oneline -10and the repository's local conventions. - Create exactly one local commit for that comment.
Do not combine distinct comments unless their fixes are technically inseparable. Do not commit rejected or unclear items. Do not push, post replies, or resolve threads as part of this workflow.
8. Report Back
Provide:
- addressed comment URLs, files, and commit hashes;
- rejected or already-fixed comment URLs with reasons;
- precise questions for
needs_clarificationitems; - checks run and their results;
- the final branch/worktree and whether it is ahead or behind its remote.
Quick Commands
python3 ./scripts/list_comments.py --json
python3 ./scripts/list_comments.py --pr <number> --json
python3 ./scripts/list_comments.py --repo OWNER/REPO --pr <number> --json
python3 ./scripts/list_comments.py --pr <number> --json --include-resolved
git add <files-for-one-comment>
git diff --staged --stat
git diff --staged
git commit -m "<repository-style-message>"Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

