Guide to find the open PR for the current branch and address its comments with gh CLI. Run all gh commands with elevated network access.
Prereq: ensure gh is authenticated (for example, run gh auth login once), then run gh auth status with escalated permissions (include workflow/repo scopes) so gh commands succeed. If sandboxing blocks gh auth status, rerun it with sandbox_permissions=require_escalated.
1) Inspect comments needing attention
Run scripts/fetch_comments.py which will print out all the comments and review threads on the PR
2) Ask the user for clarification
Number all the review threads and comments and provide a short summary of what would be required to apply a fix for it
Ask the user which numbered comments should be addressed
3) If user chooses comments
Apply fixes for the selected comments
Notes:
If gh hits auth/rate issues mid-run, prompt the user to re-authenticate with gh auth login, then retry.
1---2name: gh-address-comments3description: PR Comment Handler4---5# PR Comment Handler67Guide to find the open PR for the current branch and address its comments with gh CLI. Run all `gh` commands with elevated network access.89Prereq: ensure `gh` is authenticated (for example, run `gh auth login` once), then run `gh auth status` with escalated permissions (include workflow/repo scopes) so `gh` commands succeed. If sandboxing blocks `gh auth status`, rerun it with `sandbox_permissions=require_escalated`.1011## 1) Inspect comments needing attention12- Run scripts/fetch_comments.py which will print out all the comments and review threads on the PR1314## 2) Ask the user for clarification15- Number all the review threads and comments and provide a short summary of what would be required to apply a fix for it16- Ask the user which numbered comments should be addressed1718## 3) If user chooses comments19- Apply fixes for the selected comments2021Notes:22- If gh hits auth/rate issues mid-run, prompt the user to re-authenticate with `gh auth login`, then retry.
Run npx skillmds@latest add haohao-end/gh-address-comments in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
PR Comment Handler It is listed under Integrations & APIs on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Haohao-end (@haohao-end) published this skill. Their other Agent Skills are listed on their SkillMD profile.