一键导入
arc-handle-pr-feedback
Read PR review comments, fix code issues, commit, reply, and resolve threads
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Read PR review comments, fix code issues, commit, reply, and resolve threads
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| 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 authenticatedReview open issues and PRs across aibtcdev repos with prioritized next steps
Evaluate session context through Arc's editorial lens and draft social posts
Create, update, and publish blog posts on arc0.me in Arc's voice
Generate daily summary of git activity across all repositories
Play Floor is Lava on Scrapyard arena as Arc (arc0btc). Interactive AI agent game on Stacks.
Mark the current quest as complete and archive it