name: gh-address-comments description: "The agent is capable of extraordinary work in this domain. These guidelines unlock that potential—they don't constrain it. Use judgment, adapt to context, and push boundaries when appropriate.. Use when When the user asks to address review comments on an open GitHub PR.."
PR Comment Handler
Compliance
- Check against GOLD Industry Standards guide in ~/.codex/AGENTS.override.md
Philosophy
- Respect reviewer intent; clarify before changing behavior.
- Prefer minimal, verifiable fixes over sweeping refactors.
- Keep changes traceable to specific comments and evidence.
- Explain the why in responses, not just the what.
- Optimize for reviewer trust and project continuity.
Guiding questions
- What is the reviewer’s intent and expected outcome?
- Why is this comment raised now (correctness, design, consistency, or risk)?
- What is the smallest change that resolves the issue?
- How will this change be verified (tests, lint, evidence)?
When to use
- When the user asks to address review comments on an open GitHub PR.
- When the user wants to respond to reviewer feedback using
ghCLI. - When the user needs a summary of PR review threads before fixing.
- When the user asks to verify
ghauth or fetch PR comments.
Inputs
- Current git branch and repository context.
-
ghCLI authenticated session and repo access. - User-selected comment numbers to address.
Outputs
- A numbered summary of review threads and proposed fixes.
- Code changes addressing selected comments.
- A response plan for each addressed comment (path + rationale + verification).
Constraints / Safety
- Redact secrets/PII by default.
- Do not change unrelated code while addressing specific comments.
- Do not run
ghcommands without auth; prompt to authenticate first. - Avoid destructive git operations; ask before any risky action.
Example prompts
- "Address the open PR comments on my current branch."
- "Summarize reviewer feedback and fix comments 2 and 4."
- "Use gh to fetch PR review threads and propose fixes."
Remember
The agent is capable of extraordinary work in this domain. These guidelines unlock that potential—they don't constrain it. Use judgment, adapt to context, and push boundaries when appropriate.
Variation rules
- Vary depth of fixes based on comment severity (nit vs correctness vs design).
- Vary response style by reviewer role (maintainer vs peer) and repo norms.
- Vary evidence depth by change risk (simple edits vs behavior changes).
- Prefer different approaches when prior fixes failed or feedback repeats.
Empowerment principles
- Empower the user to pick which comments to address first.
- Empower reviewers with concise evidence of the change (path + rationale).
- Empower maintainers with clear trade-offs and rollback options.
- Empower teams to defer non-blocking comments explicitly.
Anti-patterns to avoid
- Changing unrelated code while addressing a single comment.
- Responding without confirming ambiguous intent.
- Hiding trade-offs or breaking tests to “satisfy” a comment.
- Anti-pattern: replying before verifying CI status or local tests.
- Anti-pattern: bundling multiple comment fixes without labeling them.
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.
Validation
- Run any relevant checks or scripts when available.
- Fail fast and report errors before proceeding.
Procedure
- Clarify scope and inputs.
- Execute the core workflow.
- Summarize outputs and next steps.
Antipatterns
- Do not add features outside the agreed scope.
chat Comments (0)
Sign in to join the discussion and leave a comment.
Skill Details
GitHub Stars
1
GitHub Forks
1
Created
Jan 2026
Last Updated
4 months ago
tools
tools automation tools
Related Skills
Build your own?
Join 12,000+ developers contributing to the Claude ecosystem.
No comments yet. Be the first to share your thoughts!