babysit-pr
它能做什么
这个智能体可以帮你处理编程项目中的代码审查。它会核实、修复并回复机器人留下的审查评论,确保所有问题都得到解决。
适用场景
- ✓新提交的代码收到大量机器人评论时。
- ✓需要确保关于代码的所有问题和建议都得到回复时。
- ✓你希望代码能通过审核,而不必自己逐条检查时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/babysit-pr/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请检查并处理这个代码请求(PR)中所有的机器人评论。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会阅读代码审查机器人留下的评论,判断这些评论是否合理,做出必要的修改,并逐条回复,确保没有遗留任何待处理的事项。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Babysit a PR
When to Use
- A PR/MR has accumulated bot review threads that need verification, fixes, replies, and resolution.
- You want to drive a PR from 'just opened' to 'nothing left unanswered' across multiple review rounds.
Goal: carry a pull request (GitHub) or merge request (GitLab) from "just opened" to "nothing left unanswered," without the human having to sit and refresh the page. "PR" below means either.
Review bots are diff-anchored samplers. Every push mints a fresh round, and a fix in one place can light up commentary somewhere adjacent. Left alone, a PR accumulates half-answered threads that nobody resolves, and the real bug in round three gets buried under nitpicks from rounds one and two. Your job is to be the person who reads every finding, decides what is actually true, fixes what blocks, and closes every loop in writing.
You know how to drive gh (GitHub), glab (GitLab), and git. What follows is only the judgment this
loop needs and the few API calls that are easy to get wrong. The harvest script picks the forge from
the cwd's git origin; everything it returns has the same shape on both, with a capabilities block
naming what that forge cannot tell you.
The three rules that matter most
Verify before you believe. A bot's severity badge is a guess made without running anything. Treat every finding, including the P1s, as a claim to check against the code. Bots are frequently right (that is why this loop is worth running), and they are also confidently wrong often enough that shipping their suggestions unexamined will introduce bugs. Read the actual code path before you agree or disagree.
Every thread gets an answer. A finding you fixed, rejected, or deferred is only closed once you have said so in that thread and resolved it. Silence reads as "ignored" to the next human who opens the PR, and it is how a real bug gets lost.
Publish before you answer. A "fixed" reply is only true once the remote branch carries the fix. Never post a confirmed reply, or resolve its thread, while the fix exists only locally. Rejections need no push. Reply with evidence and resolve immediately.
Harvest the round
Findings arrive on two different surfaces, and a round that reads only one silently misses half of them. This is the single most common way a babysit loop goes wrong:
- Inline review threads. This is where debate-review and Codex post their findings (Codex attaches
P1/P2-badged inline comments to an otherwise boilerplate review body; an empty-looking body proves
nothing). Each thread carries a
thread_id(to resolve) and areply_to(to reply inside the thread). On GitHub these are GraphQL review threads; on GitLab they are discussions. - Top-level review bodies. This is where Greptile summarizes, Codex sometimes posts a numbered list, and debate-review posts its round summary. These have no thread to resolve; answer them with one PR comment per round. On GitHub they are review objects; on GitLab they are plain notes.
The bundled script returns both in one call, already correlated (<skill-dir> is the folder that
holds this SKILL.md):
"<skill-dir>/scripts/threads.sh" <N> > /tmp/pr-<N>-round-<k>.json
Never trust a filtered count without its unfiltered twin. Before applying any jq filter to the
harvest, print the raw totals (jq '{threads: (.threads|length), reviews: (.reviews|length)}') and
compare. A filter that eliminates 100% of items is presumed broken until the field names are
verified against the actual schema (jq '.threads[0] | keys'). jq selects on a misspelled field
fail silently-empty, and a "clean round" built on one is how a P1 gets a merge-gate mention posted
over it. That has happened. GitHub tooling fails by returning less data, not by erroring; pair this with the
pagination rule.
Never describe an object you did not fetch. If a query for a specific id returns empty, that is a
stop signal. Say "I can't see it" and fetch it another way (gh api .../reviews/<id>), never narrate
its presumed content. Related trap: every inline thread reply arrives wrapped in a zero-byte
COMMENTED review object, so a watcher's "new review" event may be just a reply wrapper, not a new
round. threads.sh's .reviews does not include these wrappers, so a review id from an event that is
missing from the harvest means "wrapper", not "gone".
Diff it against the previous round's file to see what is genuinely new. outdated: true on a thread
…
常见问题
什么是“pull request”(PR)?
它是一种请求,用来把你修改的代码合并到别人的主项目中。可以把它理解为团队协作中提出的一项改进建议。
为什么机器人会留下评论?
机器人会自动检查代码中的错误、风格问题或可以改进的地方,帮助维持代码质量。
“闭环”是什么意思?
意思是关于某段代码的所有待处理事项(包括评论和建议)都已被处理、回复并关闭,这一点上不再有任何遗留工作。
详情
作者的原始描述
Babysit a pull request through its bot review rounds: verify, fix, reply, resolve. Use for any babysit or watch-the-PR ask.'
热度
- GitHub 星标
- 48k
- 排名
- #4004
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。