handle-pr-feedback
Handle PR Feedback
Read review comments on a draft PR and push fixes.
Process
1. Get the PR
Ask for the PR number, or if the user doesn't provide one:
gh pr list --author "@me" --state open --draft --json number,title,url
Show the list and ask which one to work on, or pick the one with unresolved reviews.
2. Read the feedback
gh pr view <number> --comments
gh api repos/{owner}/{repo}/pulls/<number>/reviews
gh api repos/{owner}/{repo}/pulls/<number>/comments
Categorize each comment:
- Fix: concrete change requested
- Question: reviewer wants clarification
- Nit: style/preference suggestion
- Approval: positive feedback, no action needed
3. Check out the branch
gh pr checkout <number>
4. Address feedback
For each Fix comment:
- Make the requested change
- Run tests to verify nothing breaks
- Commit with message:
fix(#<issue>): address review - <brief description>
For each Question comment:
- Reply on the PR with an answer
- If the answer reveals a needed code change, make it
For each Nit comment:
- Apply if reasonable, skip if it conflicts with project conventions
- Group nit fixes into a single commit
5. Push and update
git push
Reply on the PR summarizing what was addressed:
gh pr comment <number> --body "Addressed review feedback:
- <fix 1>
- <fix 2>
- Replied to questions about <topic>
- Applied nits: <list>
Ready for another look."
6. Report
Tell the user what was done and link to the PR.
More from hifisaputra/skills
brainstorm-to-issues
Interactive brainstorming session that refines an idea into a PRD and breaks it into GitHub issues labeled ai-ready. Use when user wants to brainstorm, plan a feature, has an idea to discuss, says "brainstorm", "let's plan", "I have an idea", or wants to break work into issues.
15code-review
Thorough code review of a PR — checks correctness, security, performance, style consistency, test coverage, and verifies the PR addresses its linked issue. Use when user says "review this PR", "check this PR", "look at this diff", or any request to review code changes.
11process-issues
Autonomous loop that picks up ai-ready GitHub issues, handles PR feedback, and asks clarifying questions when blocked. Use when user says "work issues", "start working", "process backlog", or wants AI to autonomously implement GitHub issues.
9process-reviews
Autonomous loop that finds PRs needing AI review and delegates to the code-review skill. Use when user says "review PRs", "start reviewing", "check for PRs to review", "process reviews", or wants AI to continuously monitor and review PRs.
9code-implementation
Implements a code task using a structured plan-first approach with TDD when tests exist, or direct implementation for docs/config changes. Use when user says "implement this", "build this feature", "fix this bug", or any request to write code for a well-defined task.
9work-issues
Autonomous loop that implements ai-ready GitHub issues, handles PR feedback, and asks clarifying questions when blocked. Use when user says "work issues", "start working", "process backlog", or wants AI to autonomously implement GitHub issues.
5