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-review
.
When the original command text references
{{INPUT}}
,
$1
, or named arguments, map them from the user's current request.
用于Claude命令
/fix-pr-review
的Agent技能封装。
当原始命令文本引用
{{INPUT}}
$1
或命名参数时,从用户当前请求中映射这些参数。

Command Instructions

命令说明

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:
  1. Read the comment context and referenced code
  2. Apply the requested change in the worktree
  3. Commit with message referencing the review comment
  4. Resolve the thread if possible via
    gh api
After all comments are addressed, spawn 3 parallel review subagents on the full diff:
  1. Code quality reviewer — correctness, patterns, regressions
  2. Business logic reviewer — requirements alignment, edge cases
  3. Security reviewer — vulnerabilities, input validation
Aggregate findings. If any reviewer flags issues:
  1. Fix flagged issues in the worktree
  2. 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分支在
.trees/pr-<number>-review
创建git worktree。
使用
gh pr view
gh api
获取待处理的评审意见和评审线程。
针对每条未解决的意见:
  1. 读取意见上下文和引用的代码
  2. 在worktree中应用请求的更改
  3. 提交并附上引用该评审意见的提交信息
  4. 尽可能通过
    gh api
    解决该线程
处理完所有意见后,在完整差异上启动3个并行评审子Agent:
  1. 代码质量评审员——正确性、模式、回归问题
  2. 业务逻辑评审员——需求对齐、边缘情况
  3. 安全评审员——漏洞、输入验证
汇总结果。如果任何评审员标记了问题:
  1. 在worktree中修复标记的问题
  2. 重新运行评审团队(最多3次迭代)
所有评审员通过后,将所有更改推送到远程分支。
退出时清理worktree。
无需审批检查点,自主运行。