GH Address Comments
Use this skill when a user wants help resolving PR review or issue comments via the GitHub CLI.
Workflow
- •Verify auth:
- •
gh auth status -h github.com - •If not logged in, ask the user to run
gh auth login.
- •
- •Identify the PR:
- •
gh pr view --json number,title,url - •If no PR is found, ask for the PR URL.
- •
- •Collect comments:
- •Review comments:
gh api repos/{owner}/{repo}/pulls/{number}/comments - •Issue comments:
gh api repos/{owner}/{repo}/issues/{number}/comments
- •Review comments:
- •Summarize each thread and map to code changes.
- •Propose fixes and get user approval before pushing changes.
- •Draft reply text for each thread and ask before posting to GitHub.
Notes
- •Prefer quoting exact comment text in your summary.
- •Keep replies short and specific to the change.