From workflow
Use this skill when the user wants to address PR review comments/feedback, "fix PR feedback", "respond to PR comments", "address review comments", or similar. Fetches all comments from the PR on the current branch and creates a plan to address them.
How this skill is triggered — by the user, by Claude, or both
Slash command
/workflow:address-pr-feedbackThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Automate the workflow of triaging and addressing PR review comments — from fetching all feedback to creating a concrete implementation plan.
Automate the workflow of triaging and addressing PR review comments — from fetching all feedback to creating a concrete implementation plan.
This skill handles the full PR feedback workflow:
Use this skill when:
Run the fetch script from the user's current working directory (their git repo), using the full path:
${CLAUDE_PLUGIN_ROOT}/skills/address-pr-feedback/scripts/fetch-pr-comments.sh
For verbose output during debugging:
${CLAUDE_PLUGIN_ROOT}/skills/address-pr-feedback/scripts/fetch-pr-comments.sh --verbose
IMPORTANT: Execute from the user's working directory, NOT the skill directory.
Handle exit codes per the Error Handling section below before proceeding.
On success (exit code 0), the script outputs a JSON object to stdout:
{
"pr": { "number": 42, "title": "...", "url": "...", "branch": "..." },
"review_comments": [...],
"issue_comments": [...]
}
Parse the JSON output. For each comment:
code_change — Reviewer wants specific code modifiedbug — Reviewer identified a bug or incorrect behaviorstyle — Style/formatting suggestionnitpick — Minor preference, low priorityquestion — Reviewer asking for clarification (may not require a code change)blocking — Must be fixed before mergepraise — Positive feedback, no action neededoutdated: trueFilter out:
outdated: true (position is null — the code changed since the comment)[bot] or known bot names like github-actions, dependabot, codecov)Call the EnterPlanMode tool to transition into planning mode.
For each comment to address, create specific implementation steps:
Group tasks by file for efficiency. Order blocking concerns before nitpicks.
End the plan with two clearly labeled sections:
Will Address:
Will Ignore / Skip:
outdated, already fixed, bot comment, pure praise, question answered, out of scopeThe fetch-pr-comments.sh script uses exit codes to indicate specific error conditions.
Exit Code 1 — Not a Git Repository:
Current directory is not a git repository.
Please navigate to your project directory first.
Exit Code 2 — gh CLI Not Installed:
The gh CLI is not installed.
Install it from: https://cli.github.com/
Then run: gh auth login
Exit Code 3 — Not Authenticated:
Not authenticated with the gh CLI.
Run: gh auth login
Exit Code 4 — No Open PR Found:
No open PR found for the current branch: <branch-name>
Make sure:
1. You are on the correct feature branch (not main/master)
2. A PR has been opened for this branch on GitHub
3. The PR is not already merged or closed
Exit Code 5 — Failed to Fetch Comments:
Failed to fetch PR comments.
This may be a network issue or a GitHub API error.
Try running the script manually with --verbose for details:
${CLAUDE_PLUGIN_ROOT}/skills/address-pr-feedback/scripts/fetch-pr-comments.sh --verbose
Example 1: Standard PR Review
User: "Address the PR feedback"
Agent workflow:
1. Run: ${CLAUDE_PLUGIN_ROOT}/skills/address-pr-feedback/scripts/fetch-pr-comments.sh
→ PR #42: "Add user authentication"
→ 3 inline review comments, 2 discussion comments
2. Analyze:
- reviewer: "You should use bcrypt instead of md5 here" → code_change (blocking)
- reviewer: "Missing error handling in login flow" → bug (blocking)
- reviewer: "nit: prefer const over let here" → nitpick
- reviewer: "Looks good overall! 🎉" → praise → skip
- bot: codecov[bot] coverage report → bot → skip
3. Enter plan mode
4. Create plan:
- Fix auth/hash.ts:45 — replace md5 with bcrypt
- Add error handling in auth/login.ts:87-92
- Change let to const in auth/session.ts:12
5. Summary:
Will Address: [3 items]
Will Skip: [2 items — praise, bot comment]
Example 2: No Open PR
User: "Fix the PR comments"
Agent workflow:
1. Run script → exit code 4
2. Inform user: "No open PR found for branch 'main'.
Are you on your feature branch? Try: git checkout <your-branch>"
npx claudepluginhub ncipollo/slop-shop --plugin workflowReads open GitHub PR review comments, triages by severity, applies code fixes, and drafts replies. Use when addressing PR feedback or code review.
Interactively responds to PR review feedback: fetches comments, verifies findings, asks for user approval, makes changes, and posts replies. Use when addressing GitHub pull request reviews.
Fetches GitHub PR review feedback, triages comments as valid/stale/incorrect, implements fixes, verifies with tests, and drafts replies.