Agent skill
fix-pr-comments
Fetch PR review comments and implement all requested changes
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/git-fix-pr-comments-flosrn-claude
SKILL.md
Fix PR Comments
Systematically address ALL unresolved review comments until PR is approved.
Context
- Current branch: !
git branch --show-current - Working tree status: !
git status --short - Recent commits: !
git log --oneline -3
Workflow
-
FETCH COMMENTS:
- Identify PR:
gh pr status --json number,headRefName - Get reviews:
gh pr review list --state CHANGES_REQUESTED - Get inline:
gh api repos/{owner}/{repo}/pulls/{number}/comments - Capture BOTH review comments AND inline code comments
- STOP if no PR found - ask user for PR number
- Identify PR:
-
ANALYZE & PLAN:
- Extract exact file:line references
- Group by file for MultiEdit efficiency
- STAY IN SCOPE: NEVER fix unrelated issues
- Create checklist: one item per comment
-
IMPLEMENT FIXES:
- BEFORE editing: ALWAYS
Readtarget file first - Batch changes with
MultiEditfor same-file modifications - Make EXACTLY what reviewer requested
- Check off each resolved comment
- BEFORE editing: ALWAYS
-
COMMIT & PUSH:
- Stage:
git add -A - Commit:
fix: address PR review comments - Push:
git push - NEVER include co-author tags
- Stage:
Rules
- Every unresolved comment MUST be addressed
- Read files BEFORE any edits - no exceptions
- FORBIDDEN: Style changes beyond reviewer requests
- On failure: Return to ANALYZE phase, never skip comments
User: $ARGUMENTS
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?