Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

fix-pr-comments

verified

Fetch PR review comments and implement all requested changes

View on GitHub

Marketplace

atournayre-claude-plugin-marketplace

atournayre/claude-marketplace

Plugin

git

Repository

atournayre/claude-marketplace
7stars

git/skills/fix-pr-comments/SKILL.md

Last Verified

February 1, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/atournayre/claude-marketplace/blob/main/git/skills/fix-pr-comments/SKILL.md -a claude-code --skill fix-pr-comments

Installation paths:

Claude
.claude/skills/fix-pr-comments/
Powered by add-skill CLI

Instructions

# 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

1. **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

2. **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

3. **IMPLEMENT FIXES**:
   - BEFORE editing: ALWAYS `Read` target file first
   - Batch changes with `MultiEdit` for same-file modifications
   - Make EXACTLY what reviewer requested
   - Check off each resolved comment

4. **COMMIT & PUSH**:
   - Stage: `git add -A`
   - Commit: `fix: address PR review comments`
   - Push: `git push`
   - NEVER include co-author tags

## 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

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
1321 chars