Fix issues for a given PR
Fixes PR review issues by type and batch, then marks them resolved.
/plugin marketplace add marcioaltoe/claude-craftkit/plugin install reviewer@claude-craftkit<type>--type</type> <pr>--pr</pr> <from>--from</from>
This command helps you systematically fix issues from a downloaded CodeRabbit AI review.
Works from any directory - reads issues from .reviews/ in your current working directory.
Before starting work on fixing issues, use the read-pr-issues.sh script to review what needs to be addressed:
# Read all issues for a PR (from your working directory's .reviews/)
~/.claude/plugins/marketplaces/claude-craftkit/plugins/reviewer/skills/pull-request-skill/read-pr-issues.sh --pr <pr> --type issue --all
# Read a specific range of issues
~/.claude/plugins/marketplaces/claude-craftkit/plugins/reviewer/skills/pull-request-skill/read-pr-issues.sh --pr <pr> --type issue --from <from> --to 10
# Read critical issues only
~/.claude/plugins/marketplaces/claude-craftkit/plugins/reviewer/skills/pull-request-skill/read-pr-issues.sh --pr <pr> --type critical --all
# Read major issues only
~/.claude/plugins/marketplaces/claude-craftkit/plugins/reviewer/skills/pull-request-skill/read-pr-issues.sh --pr <pr> --type major --all
# Read trivial issues only
~/.claude/plugins/marketplaces/claude-craftkit/plugins/reviewer/skills/pull-request-skill/read-pr-issues.sh --pr <pr> --type trivial --all
Note: The exact path may vary. Claude Code will find the skill automatically.
This script displays issues in a clean, readable format with:
<after_finish>
make lint && make test pass (or equivalent),
commit the changes with a descriptive message that references the PR and fixed issues.
Example: git commit -am "fix(repo): resolve PR #<pr> issues [batch <from>-<end>]"
Note: Commit locally only - do NOT push. Multiple batches will be committed separately.
</after_finish># Fix critical issues starting from issue 1
/fix --pr 123 --type critical --from 1
# Fix major issues from 5 to 10
/fix --pr 123 --type major --from 5
# Fix all trivial issues
/fix --pr 123 --type trivial --from 1
After fixing issues, mark them as resolved:
# Resolve issues 1-10
~/.claude/plugins/marketplaces/claude-craftkit/plugins/reviewer/skills/pull-request-skill/resolve-pr-issues.sh --pr-dir .reviews/reviews-pr-123 --from 1 --to 10
# Resolve all unresolved issues
~/.claude/plugins/marketplaces/claude-craftkit/plugins/reviewer/skills/pull-request-skill/resolve-pr-issues.sh --pr-dir .reviews/reviews-pr-123 --all
This will:
*_unresolved.md to *_resolved.md/reviewer:download-issues - Download PR reviews/reviewer:pr-status - Check status of PR reviews