resolve-pr-parallel by everyinc/compound-engineering-plugin
npx skills add https://github.com/everyinc/compound-engineering-plugin --skill resolve-pr-parallel通过为每个评论线程生成并行代理,解决所有未解决的 PR 评审评论。
从当前工作目录检测 git 上下文:
使用位于 scripts/get-pr-comments 的 GraphQL 脚本获取未解决的评审线程:
bash scripts/get-pr-comments PR_NUMBER
此命令仅返回未解决、未过时的线程,包含文件路径、行号和评论正文。
如果脚本失败,则回退到:
gh pr view PR_NUMBER --json reviews,comments
gh api repos/{owner}/{repo}/pulls/PR_NUMBER/comments
创建所有未解决项的任务列表,并按类型分组(例如,Claude Code 中的 TaskCreate,Codex 中的 update_plan):
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
为每个未解决项生成一个 compound-engineering:workflow:pr-comment-resolver 代理。
如果有 3 条评论,则生成 3 个代理——每个评论一个。优先并行运行所有代理;如果平台不支持并行调度,则按顺序运行它们。
保持父级上下文压力受控:
如果 PR 足够大,即使分批返回简短摘要也可能变得冗杂,则使用每次运行的临时目录,例如 .context/compound-engineering/resolve-pr-parallel/<run-id>/:
bash scripts/resolve-pr-thread THREAD_ID
重新获取评论以确认所有线程都已解决:
bash scripts/get-pr-comments PR_NUMBER
应返回空数组 []。如果仍有线程未解决,则从步骤 1 开始重复。
如果使用了临时目录且用户未要求检查,则在验证成功后清理该目录。
每周安装数
125
仓库
GitHub 星标
10.9K
首次出现
2026年3月2日
安全审计
安装于
codex125
cursor125
gemini-cli124
github-copilot124
kimi-cli124
opencode124
Resolve all unresolved PR review comments by spawning parallel agents for each thread.
Detect git context from the current working directory:
Fetch unresolved review threads using the GraphQL script at scripts/get-pr-comments:
bash scripts/get-pr-comments PR_NUMBER
This returns only unresolved, non-outdated threads with file paths, line numbers, and comment bodies.
If the script fails, fall back to:
gh pr view PR_NUMBER --json reviews,comments
gh api repos/{owner}/{repo}/pulls/PR_NUMBER/comments
Create a task list of all unresolved items grouped by type (e.g., TaskCreate in Claude Code, update_plan in Codex):
Spawn a compound-engineering:workflow:pr-comment-resolver agent for each unresolved item.
If there are 3 comments, spawn 3 agents — one per comment. Prefer running all agents in parallel; if the platform does not support parallel dispatch, run them sequentially.
Keep parent-context pressure bounded:
If the PR is large enough that even batched short returns are likely to get noisy, use a per-run scratch directory such as .context/compound-engineering/resolve-pr-parallel/<run-id>/:
Commit changes with a clear message referencing the PR feedback
Resolve each thread programmatically using scripts/resolve-pr-thread:
bash scripts/resolve-pr-thread THREAD_ID
Push to remote
Re-fetch comments to confirm all threads are resolved:
bash scripts/get-pr-comments PR_NUMBER
Should return an empty array []. If threads remain, repeat from step 1.
If a scratch directory was used and the user did not ask to inspect it, clean it up after verification succeeds.
Weekly Installs
125
Repository
GitHub Stars
10.9K
First Seen
Mar 2, 2026
Security Audits
Gen Agent Trust HubPassSocketWarnSnykWarn
Installed on
codex125
cursor125
gemini-cli124
github-copilot124
kimi-cli124
opencode124
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
133,300 周安装