/pr-fix
Efficiently respond to PR review comments. Trigger with "fix review comments", "address PR feedback", "implement review fixes", "respond to review".
$ npx -y skills add wasabeef/claude-code-cookbook --skill pr-fix --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition โ
- You can call itInvoke it directly when you want it.
- Slash command
/pr-fix
Context preview
The summary Claude sees to decide when to auto-load this skill.
Efficiently respond to PR review comments. Trigger with "fix review comments", "address PR feedback", "implement review fixes", "respond to review".
SKILL.md
pr-fix.SKILL.mddescription: 'Efficiently respond to PR review comments. Trigger with "fix review comments", "address PR feedback", "implement review fixes", "respond to review".'
allowed-tools:
- Bash(gh *)
- Read
- Edit
- Grep
- Glob
Efficiently respond to PR review comments
Efficiently handle Pull Request review comments and achieve root cause resolution using a 3-stage error analysis approach.
Usage
# Retrieve and analyze review comments
gh pr view --comments
"Classify review comments by priority and create an action plan"
# Detailed analysis of error-related comments
gh pr checks
"Analyze CI errors using a 3-stage approach to identify root causes"
# Quality confirmation after fixes
npm test && npm run lint
"Fixes are complete - please check regression tests and code quality"
Basic Examples
# Classify comments
gh pr view 123 --comments | head -20
"Classify review comments into must/imo/nits/q categories and determine response order"
# Collect error information
npm run build 2>&1 | tee error.log
"Identify the root cause of build errors and suggest appropriate fixes"
# Verify fix implementation
git diff HEAD~1
"Evaluate whether this fix appropriately addresses the review comments"
Comment Classification System
๐ด must: Required fixes
โโ Security issues
โโ Functional bugs
โโ Design principle violations
โโ Convention violations
๐ก imo: Improvement suggestions
โโ Better implementation methods
โโ Performance improvements
โโ Readability enhancements
โโ Refactoring proposals
๐ข nits: Minor points
โโ Typo fixes
โโ Indentation adjustments
โโ Comment additions
โโ Naming refinements
๐ต q: Questions/confirmations
โโ Implementation intent verification
โโ Specification clarification
โโ Design decision background
โโ Alternative solution consideration
3-Stage Error Analysis Approach
Stage 1: Information Collection
**Required actions**
- Full error message capture
- Stack trace review
- Reproduction condition identification
**Recommended actions**
- Environment information collection
- Recent change history
- Related logs review
Stage 2: Root Cause Analysis
- 5 Whys analysis application
- Dependency tracking
- Environment difference checking
- Minimal reproduction code creation
Stage 3: Solution Implementation
- Immediate response (hotfix)
- Root cause resolution (essential fix)
- Preventive measures (recurrence prevention)
Response Flow
1. **Comment analysis**: Classification by priority 2. **Fix plan**: Determining response order 3. **Phased fixes**: Critical โ High โ Medium โ Low 4. **Quality confirmation**: Testing, linting, building 5. **Progress report**: Description of specific fixes
Post-Fix Verification
# Basic checks
npm test
npm run lint
npm run build
# Regression tests
npm run test:e2e
# Code quality
npm run test:coverage
Reply Templates
**Fix completion report**
@reviewer Thank you for your feedback.
Fixes are complete:
- [Specific fix details]
- [Test results]
- [Verification method]
**Technical decision explanation**
Implementation background: [Reason]
Considered alternatives: [Options and decision rationale]
Adopted solution benefits: [Advantages]
Notes
- **Priority adherence**: Address in order of Critical โ High โ Medium โ Low
- **Test first**: Confirm regression tests before making fixes
- **Clear reporting**: Describe fix details and verification methods specifically
- **Constructive dialogue**: Polite communication based on technical grounds
Read more
description: 'Efficiently respond to PR review comments. Trigger with "fix review comments", "address PR feedback", "implement review fixes", "respond to review".' allowed-tools: - Bash(gh *) - Read - Edit - Grep - Glob
Efficiently respond to PR review comments
Efficiently handle Pull Request review comments and achieve root cause resolution using a 3-stage error analysis approach.
Usage
# Retrieve and analyze review comments gh pr view --comments "Classify review comments by priority and create an action plan" # Detailed analysis of error-related comments gh pr checks "Analyze CI errors using a 3-stage approach to identify root causes" # Quality confirmation after fixes npm test && npm run lint "Fixes are complete - please check regression tests and code quality"
Basic Examples
# Classify comments gh pr view 123 --comments | head -20 "Classify review comments into must/imo/nits/q categories and determine response order" # Collect error information npm run build 2>&1 | tee error.log "Identify the root cause of build errors and suggest appropriate fixes" # Verify fix implementation git diff HEAD~1 "Evaluate whether this fix appropriately addresses the review comments"
Comment Classification System
๐ด must: Required fixes โโ Security issues โโ Functional bugs โโ Design principle violations โโ Convention violations ๐ก imo: Improvement suggestions โโ Better implementation methods โโ Performance improvements โโ Readability enhancements โโ Refactoring proposals ๐ข nits: Minor points โโ Typo fixes โโ Indentation adjustments โโ Comment additions โโ Naming refinements ๐ต q: Questions/confirmations โโ Implementation intent verification โโ Specification clarification โโ Design decision background โโ Alternative solution consideration
3-Stage Error Analysis Approach
Stage 1: Information Collection
**Required actions**
- Full error message capture
- Stack trace review
- Reproduction condition identification
**Recommended actions**
- Environment information collection
- Recent change history
- Related logs review
Stage 2: Root Cause Analysis
- 5 Whys analysis application
- Dependency tracking
- Environment difference checking
- Minimal reproduction code creation
Stage 3: Solution Implementation
- Immediate response (hotfix)
- Root cause resolution (essential fix)
- Preventive measures (recurrence prevention)
Response Flow
1. **Comment analysis**: Classification by priority 2. **Fix plan**: Determining response order 3. **Phased fixes**: Critical โ High โ Medium โ Low 4. **Quality confirmation**: Testing, linting, building 5. **Progress report**: Description of specific fixes
Post-Fix Verification
# Basic checks npm test npm run lint npm run build # Regression tests npm run test:e2e # Code quality npm run test:coverage
Reply Templates
**Fix completion report**
@reviewer Thank you for your feedback. Fixes are complete: - [Specific fix details] - [Test results] - [Verification method]
**Technical decision explanation**
Implementation background: [Reason] Considered alternatives: [Options and decision rationale] Adopted solution benefits: [Advantages]
Notes
- **Priority adherence**: Address in order of Critical โ High โ Medium โ Low
- **Test first**: Confirm regression tests before making fixes
- **Clear reporting**: Describe fix details and verification methods specifically
- **Constructive dialogue**: Polite communication based on technical grounds
A collection of commands, roles, and automation scripts for Claude Code. Automate your workflow without unnecessary confirmations, allowing you to focus on what matters.
Repo: wasabeef/claude-code-cookbook
Other skills on claude-code-cookbook.
- /analyze-dependencies
Analyze project dependencies and evaluate architectural health. Trigger with "analyze dependencies", "detect circular dependencies", "architecture issues?", "check module coupling", "find layer violations". Generates dependency matrix, fan-in/fan-out analysis, and prioritized
Open skill - /analyze-performance
Performance analysis based on Core Web Vitals with UX scoring. Trigger with "analyze performance", "improve speed", "check Core Web Vitals", "page speed", "improve LCP", "identify performance issues".
Open skill - /check-fact
Verify information accuracy against codebase and documentation. Trigger with "is this correct?", "fact check", "verify this", "is this accurate?".
Open skill - /check-prompt
Evaluate and improve AI prompt quality. Trigger with "check this prompt", "evaluate prompt quality", "improve this prompt".
Open skill - /commit-message
Generate commit messages from staged changes. Trigger with "suggest commit message", "generate commit message", "what should the commit say?", "write commit message".
Open skill - /context7
Search technical documentation via Context7 MCP. Trigger with "check the docs", "look up documentation", "how to use this library?", "API reference".
Open skill

