一键导入
fix-pr-reviews
Fix PR review comments for the current branch by reading inline comments, applying fixes, and replying.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Fix PR review comments for the current branch by reading inline comments, applying fixes, and replying.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Verify that generated documentation files (README.md, CLAUDE.md, AGENTS.md, etc.) are in sync with their source templates. Run after editing template/sections/ files.
Fix PR review comments for the current branch by reading inline comments, applying fixes, and replying.
| name | fix-pr-reviews |
| description | Fix PR review comments for the current branch by reading inline comments, applying fixes, and replying. |
For the current branch, determine the PR number with gh pr view --json number.
Fetch inline review comments (diff comments) with:
gh api repos/{owner}/{repo}/pulls/{pull_number}/comments
These are separate from issue-level comments. Do not use gh pr view --json comments — that field returns only issue-level (non-diff) comments and will miss inline review comments.
For each comment that has not yet been resolved:
gh api repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies -f body="<reply>"
Note: the pull number must be included in the path — omitting it returns 404.After all comments are addressed, stage and commit the changes, then push the branch.
Keep replies short and factual: what was changed and why. Do not ask for confirmation before fixing — just fix and reply.