Agent skill
fix-pr-review
Address PR review comments by selecting appropriate skills based on modified files. Use when fixing review feedback on pull requests.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/fix-pr-review
SKILL.md
Fix PR Review Workflow
Workflow for addressing review comments on pull requests.
Prerequisites
- PR number is required
- Use
git-workflowSkill for commit conventions
Process Overview
1. Fetch PR details
2. Get review comments
3. Classify by file type
4. Load appropriate development skill
5. Fix each comment
6. Run verification
7. Push changes
Step 1: Fetch PR Information
# Get PR details
gh pr view {pr_number}
# Get PR diff to see modified files
gh pr diff {pr_number} --name-only
# Get review comments
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments
Step 2: Classify by Modified Files
| Files Modified | Development Skill |
|---|---|
internal/, pkg/, cmd/, *.go |
go-development |
apps/ripple-lib-server/, *.ts |
typescript-development |
apps/erc20-token/contracts/, *.sol |
solidity-development |
scripts/, *.sh |
shell-scripts |
Makefile, make/*.mk |
makefile-update |
tools/atlas/, *.sql, *.hcl |
db-migration |
docs/, *.md |
docs-update |
Step 3: Load Development Skill
Based on classification, load the appropriate skill:
| Skill | Path |
|---|---|
| Go | .claude/skills/go-development/SKILL.md |
| TypeScript | .claude/skills/typescript-development/SKILL.md |
| Solidity | .claude/skills/solidity-development/SKILL.md |
| Shell | .claude/skills/shell-scripts/SKILL.md |
| Makefile | .claude/skills/makefile-update/SKILL.md |
| Database | .claude/skills/db-migration/SKILL.md |
| Docs | .claude/skills/docs-update/SKILL.md |
Step 4: Address Comments
Priority Order
- Security - Address security concerns first
- Functionality - Fix bugs or logic issues
- Code Quality - Style, naming, documentation
Comment Categories
| Category | Action |
|---|---|
| Bug fix requested | Fix the issue, add test if applicable |
| Refactoring suggestion | Apply if improves readability |
| Style/naming | Follow project conventions |
| Documentation | Add/update comments |
| Question | Respond in code comment or PR |
Step 5: Run Verification
Run verification commands from the loaded development skill:
Go Files
make go-lint && make tidy && make check-build && make gotest
TypeScript Files
cd apps/ripple-lib-server && npm run lint && npm run build && npm test
Shell Scripts
make shfmt
Multiple Languages
If PR modifies multiple file types, run all applicable verification commands.
Step 6: Commit and Push
# Stage changes
git add .
# Commit with descriptive message
git commit -m "$(cat <<'EOF'
fix(scope): address PR review comments
- Fix: [specific fix 1]
- Fix: [specific fix 2]
- Update: [update description]
EOF
)"
# Push to update PR
git push
Common Review Patterns
Error Handling (Go)
Review comment: "Missing error context"
// Before
return err
// After
return fmt.Errorf("failed to create wallet: %w", err)
Logging Security
Review comment: "Don't log sensitive data"
// Before
log.Info("Processing key", "key", privateKey)
// After
log.Info("Processing key", "keyID", keyID)
Code Duplication
Review comment: "Extract to helper function"
// Before: Duplicated code in multiple places
// After: Create helper function
func helperFunction(params) result {
// extracted logic
}
Related Skills
go-development- Go code changestypescript-development- TypeScript changesshell-scripts- Shell script changesgit-workflow- Branch and commit workflow
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
riot-games
Manage Riot Games account, track stats across League, Valorant, and more
parcel
Provides comprehensive guidance for Parcel bundler including zero-configuration setup, asset handling, hot module replacement, and production builds. Use when the user asks about Parcel, needs to set up a build tool quickly, or work with Parcel's automatic configuration.
bbs
Manage issues with The Fold's CAS-native BBS (Bulletin Board System). Use for creating, updating, searching, and tracking issues. Invoke when the user wants to create tickets, find work, check issue status, or manage dependencies.
jito-bundles-and-priority-fees
Master Jito bundles for MEV protection and priority fee optimization on Solana - bundle submission, tip strategies, and transaction landing. Use for trading bots, high-priority transactions, and MEV-aware applications.
observability-monitoring-monitor-setup
You are a monitoring and observability expert specializing in implementing comprehensive monitoring solutions. Set up metrics collection, distributed tracing, log aggregation, and create insightful da
makefile-review
Didn't find tool you were looking for?