Address GitHub PR Comments Systematically
Skill that systematically works through GitHub PR review comments via the gh CLI: inspect, plan, fix, and respond.
Why it matters
Streamline your code review process by systematically addressing feedback on GitHub Pull Requests. This skill helps you manage comments, propose fixes, and respond efficiently.
Outcomes
What it gets done
Fetch and inspect all comments on a GitHub PR.
Categorize feedback and plan code modifications.
Apply code changes based on user confirmation.
Respond to resolved comment threads.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/ag-address-github-comments | bash Overview
Address GitHub Comments
A skill for systematically addressing GitHub PR review comments using the gh CLI: inspecting, planning fixes, applying them, and responding to threads. Use when a PR has accumulated review comments needing systematic follow-through; always read surrounding code context before applying a fix.
What it does
This skill efficiently addresses PR review comments or issue feedback using the GitHub CLI (gh), ensuring all feedback is addressed systematically rather than piecemeal. It fetches the current branch's PR comments (gh pr view --comments), categorizes them and proposes a fix for each - waiting for user confirmation on priority order if there are many - applies the code changes for the selected comments, and responds to each thread once fixed (gh pr comment <PR_NUMBER> --body "Addressed in latest commit.").
gh pr view --comments
When to use - and when NOT to
Use this when a PR has accumulated review comments or issue feedback that need to be worked through systematically - reading each comment in context, fixing the underlying code, and closing the loop by responding to the thread.
Not a substitute for actually understanding the surrounding code before applying a fix - the skill's own common-mistakes list flags applying fixes without reading context as a key failure mode, along with skipping the gh auth status check before starting.
Inputs and outputs
Inputs: an authenticated gh CLI session and a PR/branch with existing review comments or issue feedback.
Outputs: applied code fixes for the addressed comments, and posted PR comments marking each addressed thread as resolved.
Integrations
GitHub CLI (gh), specifically gh auth status, gh pr view --comments, and gh pr comment.
Who it's for
Developers working through a backlog of PR review comments who want a systematic inspect-plan-fix-respond loop rather than addressing feedback ad hoc.
FAQ
Common questions
Discussion
Questions & comments ยท 0
Sign In Sign in to leave a comment.