address-latest-pr-comments
Fetch latest PR review comments, summarize fixed vs open issues, fix open issues, commit and push.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
Address Latest PR Comments
Automates the PR review feedback loop for the current branch.
Workflow
- Fetch PR comments - Get all review comments from the current branch's PR
- Summarize status - Show which issues are fixed vs still open
- Fix open issues - Apply code changes to address remaining feedback
- Commit fixes - Create atomic commits with clear messages
- Push changes - Push to remote branch
Instructions
Step 1: Fetch and Display Comments
Run this to get the PR number and fetch comments:
BRANCH=$(git branch --show-current)
PR_NUMBER=$(gh pr list --head "$BRANCH" --json number --jq '.[0].number')
echo "PR #$PR_NUMBER"
gh api repos/:owner/:repo/pulls/$PR_NUMBER/comments --jq '.[].body'
gh pr view $PR_NUMBER --json reviews --jq '.reviews[].body'
Step 2: Analyze and Summarize
Read through the comments and categorize:
- Fixed: Issues already addressed in the codebase
- Open: Issues still needing fixes
Present a summary to the user for confirmation before proceeding.
Step 3: Fix Open Issues
For each open issue:
- Read the relevant files
- Apply the fix
- Verify the build still passes
Step 4: Commit and Push
Use the /commit skill to create atomic commits from the changes:
/commit
Then push:
git push
Skills Used
-
/commit- Creates atomic commits from current branch changes
Notes
- Always confirm the list of open issues with the user before fixing
- Run build verification after changes when applicable
- Let
/commithandle grouping and commit message formatting
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-26
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!