cmd-fix-pr-review
Installation
SKILL.md
Determine the current PR number. Create a git worktree at .trees/pr-<number>-review for the PR branch.
Fetch pending review comments using gh pr view and gh api for review threads.
For each unresolved comment:
- Read the comment context and referenced code
- Apply the requested change in the worktree
- Commit with message referencing the review comment
- Resolve the thread if possible via
gh api
After all comments are addressed, spawn 3 parallel review subagents on the full diff:
- Code quality reviewer — correctness, patterns, regressions
- Business logic reviewer — requirements alignment, edge cases
- Security reviewer — vulnerabilities, input validation
Aggregate findings. If any reviewer flags issues:
- Fix flagged issues in the worktree
- Re-run the review team (max 3 iterations)