用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/whoabuddy/claude-knowledge --skill arc-handle-pr-feedback命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | arc-handle-pr-feedback |
| description | Read PR review comments, fix code issues, commit, reply, and resolve threads |
| allowed-tools | Bash, Read, Write, Edit, Glob, Grep |
Automates the full PR review feedback loop: read comments, fix code, commit, reply with commit ref, and resolve threads.
/arc-handle-pr-feedback # Auto-detect PR from current branch
/arc-handle-pr-feedback 35 # Explicit PR number
/arc-handle-pr-feedback 35 --dry-run # Preview without committing or replying
gh pr view --json number from current branchgh api repos/{owner}/{repo}/pulls/{pr}/commentspath + line in the review comment)fix: address PR review feedback
- [brief description of each fix]
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
gh api repos/{owner}/{repo}/pulls/{pr}/comments:
"Fixed in {short_sha} — {brief description}""Acknowledged. {reason it's deferred or by-design}."| Signal | Category | Action |
|---|---|---|
| Comment has concrete code suggestion | Code fix | Apply fix |
| Comment identifies a real bug | Code fix | Fix bug |
| Comment asks for a missing feature/test | Acknowledge | Reply with plan |
| Comment is from a deploy bot | Skip | Ignore |
| Comment is already resolved | Skip | Ignore |
| Comment is purely informational | Skip | Ignore |
The GitHub API for replying to review comments:
# Reply in-thread to a review comment
gh api repos/{owner}/{repo}/pulls/{pr}/comments \
-f body="Fixed in abc1234 — description" \
-F in_reply_to={comment_id}
Important: Use in_reply_to with the comment id (numeric), not node_id.
After replying, resolve the thread via GraphQL:
gh api graphql -f query='
mutation {
resolveReviewThread(input: { threadId: "THREAD_NODE_ID" }) {
thread { isResolved }
}
}
'
To get the thread node ID, use the review comment's thread context from:
gh api repos/{owner}/{repo}/pulls/{pr}/comments \
--jq '.[] | {id, node_id, path, body}'
Or from the pull request review threads query:
gh api graphql -f query='
query {
repository(owner: "{owner}", name: "{repo}") {
pullRequest(number: {pr}) {
reviewThreads(first: 100) {
nodes {
id
isResolved
comments(first: 1) {
nodes { databaseId body }
}
}
}
}
}
}
'
After completing:
npm run check (or project-specific type check) to verify fixes compilegh CLI authenticated