cmd-fix-pr-review
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese/fix-pr-review
/fix-pr-review
Agent skill wrapper for the Claude command .
/fix-pr-reviewWhen the original command text references , , or named arguments, map them from the user's current request.
{{INPUT}}$1用于Claude命令的Agent技能封装。
/fix-pr-review当原始命令文本引用、或命名参数时,从用户当前请求中映射这些参数。
{{INPUT}}$1Command Instructions
命令说明
Determine the current PR number. Create a git worktree at for the PR branch.
.trees/pr-<number>-reviewFetch pending review comments using and for review threads.
gh pr viewgh apiFor 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)
Push all changes to the remote branch once all reviewers pass.
Clean up the worktree on exit.
Run autonomously without approval checkpoints.
确定当前PR编号。为PR分支在创建git worktree。
.trees/pr-<number>-review使用和获取待处理的评审意见和评审线程。
gh pr viewgh api针对每条未解决的意见:
- 读取意见上下文和引用的代码
- 在worktree中应用请求的更改
- 提交并附上引用该评审意见的提交信息
- 尽可能通过解决该线程
gh api
处理完所有意见后,在完整差异上启动3个并行评审子Agent:
- 代码质量评审员——正确性、模式、回归问题
- 业务逻辑评审员——需求对齐、边缘情况
- 安全评审员——漏洞、输入验证
汇总结果。如果任何评审员标记了问题:
- 在worktree中修复标记的问题
- 重新运行评审团队(最多3次迭代)
所有评审员通过后,将所有更改推送到远程分支。
退出时清理worktree。
无需审批检查点,自主运行。