agentsclimarketplace

Address pr feedback

Skill mostafa-drz/claude-skills/code/address-pr-feedback

Collection of Claude Code and Claude Desktop skills for developer workflows, automation, and productivity

Install
npx -y skills add mostafa-drz/claude-skills --skill address-pr-feedback

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Comprehensively addresses PR feedback by fetching all comments, deploying parallel agents for critical analysis of each suggestion, making implementation decisions, then systematically implementing fixes with incremental commits and browser validation. Use when you need to systematically process and implement all PR review feedback with due diligence validation.

SKILL.md

7.8 KB, as published. Nobody here has run it

Address PR Feedback

Comprehensive PR review workflow that fetches all comments, uses parallel agents for critical analysis, makes implementation decisions, then systematically addresses valid concerns with incremental commits and browser validation.

Preferences

On startup, use Read to load ~/.claude/skills/address-pr-feedback/preferences.md. If file doesn't exist, use defaults.

Context

On startup, use Bash to detect: current git branch, git status, repo name, and check for localhost development server. Skip any that fail.

Command routing

Check $ARGUMENTS:

  • help → display help then stop
  • config → interactive setup then stop
  • reset → delete preferences file, confirm, stop
  • PR number/URL with optional flags → run the workflow

Help

Address PR Feedback — Systematic PR review implementation with agent validation

Usage:
  /address-pr-feedback <pr-number|url>              Process all PR feedback
  /address-pr-feedback #123 --dry-run              Analyze only, no changes
  /address-pr-feedback #123 --auto-push            Skip push confirmation
  /address-pr-feedback #123 --no-browser           Skip browser validation
  /address-pr-feedback config                      Set preferences
  /address-pr-feedback reset                       Clear preferences
  /address-pr-feedback help                        This help

Examples:
  /address-pr-feedback #123                        Full workflow for PR 123
  /address-pr-feedback https://github.com/owner/repo/pull/456
  /address-pr-feedback #789 --dry-run --no-browser

Current preferences:
  localhost-port: 3000 (or "auto-detect")
  browser-validation: enabled (or "disabled")  
  auto-commit: true (or "false")
  agent-analysis: parallel (or "sequential")

Config

Use AskUserQuestion to collect:

  • Q1: Default localhost port — 3000, 3001, 4000, auto-detect
  • Q2: Browser validation — Always validate, Skip for non-UI changes, Always skip
  • Q3: Commit behavior — Auto-commit after each fix, Ask before each commit
  • Q4: Agent analysis — Parallel (faster), Sequential (more thorough)

Save responses to ~/.claude/skills/address-pr-feedback/preferences.md.

Reset

Delete ~/.claude/skills/address-pr-feedback/preferences.md and confirm: "Preferences cleared. Using defaults."

First-time detection

If no preferences file exists, show:

First time using /address-pr-feedback? Run /address-pr-feedback config to set defaults, or just continue with sensible defaults.

Then proceed with the workflow.

Workflow

1. Gather PR context

  • Parse PR number/URL from $ARGUMENTS
  • Use gh pr view <number> --repo <repo> --json comments,files,title,body to fetch all data
  • Check git status and current branch
  • Validate we're in the right repository

2. Organize feedback table

Create table with all comments:

#AuthorFile:LineComment
1reviewer1src/app.ts:42This function could be optimized...
2claudeREADME.md:15Missing installation steps

Display table to user for visibility.

3. Deploy parallel agents

For each comment row:

  • Spawn Agent with specific analysis prompt
  • Task: "Critically analyze this PR comment. Is it valid? What's the implementation effort? What are the risks if ignored?"
  • Run all agents in parallel for efficiency
  • Collect responses when complete

4. Collect agent analysis

Create enhanced table:

#AuthorFile:LineCommentAgent OpinionImplementation Effort
1reviewer1src/app.ts:42This function...Valid concern, performance impactMedium - refactor needed
2claudeREADME.md:15Missing stepsCritical for usersLow - add 3 lines

5. Make implementation decisions

Review agent analysis and decide what to address:

#ActionReasoningChange Summary
1✅ AddressPerformance critical, user-facingRefactor function, add caching
2✅ AddressDocumentation gap blocks usersAdd installation section
3❌ SkipEdge case, minimal valueN/A

Ask user to confirm the implementation plan before proceeding.

6. Implement fixes incrementally

For each ✅ item:

  1. Make the change - Edit files as needed
  2. Validate syntax - Run npm run typecheck or equivalent
  3. Browser test - Navigate to localhost, verify the change works
  4. Clean commit - git add <specific-files> and git commit -m "fix: <specific-issue>"
  5. Progress update - Mark item complete, move to next

Stop and ask user if any change seems complex or risky.

7. Final verification & summary

  • Complete browser test - Full app walkthrough on localhost
  • Run all checks - TypeScript, ESLint, tests if available
  • Summary table - Show what was completed
ItemStatusFiles ChangedCommit
Function optimization✅ Donesrc/app.tsabc1234
README updates✅ DoneREADME.mddef5678

8. Reply to comment threads

For each ✅ addressed item with a specific comment ID:

  • Use GitHub API to add reply to the original comment thread
  • NEVER edit original reviewer comments - always add replies
  • Format: gh api repos/<org>/<repo>/pulls/<pr>/comments --method POST --field body="✅ **FIXED** in commit [SHA](link)" --field in_reply_to=<comment_id>
  • One reply per comment thread showing exactly which commit addressed the feedback

9. Push changes

  • Show git log --oneline -n <count> of new commits
  • Ask for push confirmation (unless --auto-push flag used)
  • git push origin <current-branch>
  • Report success and suggest next actions (merge, request re-review)

Flag handling

  • --dry-run - Stop after step 5 (implementation decisions), don't make changes
  • --auto-push - Skip final push confirmation in step 8
  • --no-browser - Skip browser validation in step 6, only run syntax checks

Error handling

  • No PR comments found - Report "No feedback to address" and exit gracefully
  • Agent spawn failures - Continue with manual analysis for failed items
  • Browser validation fails - Stop, show error, ask user how to proceed
  • Git conflicts - Stop, guide user to resolve, offer to resume

Principles

  1. One commit per logical fix - Each addressed comment gets its own clean commit with descriptive message
  2. Always validate before proceeding - Browser test after every change, TypeScript check before commits
  3. Fail fast on complexity - If a change seems large or risky, stop and ask user for guidance
  4. Preserve agent analysis - Show tables throughout so user can see the reasoning behind decisions
  5. Non-destructive by default - Use --dry-run to analyze first, then implement with full visibility
  6. Never edit original reviewer comments - Always add replies to comment threads, never modify someone else's feedback

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.