关于 full-babysit-pr
用于从审查和 CI 分析到修复、发布及合并,全程维护 Pull Request 的技能。它为代码变更设置明确的审批关卡,并要求合并前核实所有条件。
主要功能
- 01分析审查意见与 CI 失败
- 02本地修复并验证
- 03代码发布前须获明确批准
- 04跟踪评论回复与讨论串处理
- 05检查合并条件与阻塞项
- 06保存状态并报告最终结果
适用场景
- 01处理审查者反馈
- 02诊断并修复失败的检查
- 03等待审查期间维护 PR
- 04满足必要条件后合并
安装
复制下面的命令,在终端中运行。
npx skills add https:/ / github.com/ sztadii/ agent-skills --skill full-babysit-pr安装后在 Claude Code 中输入/full-babysit-pr确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
agents/openai.yamlreferences/pr-comments.mdpublication.mdsimplification.mdverification.mdwatching.mdREADME 原文English
来自项目 READMEREADME 暂无中文译文,以下为英文原文;中文介绍见上方。
Full Babysit PR
Scope
Maintain an identified PR through the requested endpoint. Invocation authorizes analyzing feedback and CI, preparing and verifying local fixes, evidence-backed replies, resolution of this workflow's verified threads and, once the conditions below are met, merge without further confirmation. Every commit and push of code changes requires the user's explicit approval of those changes. Default endpoint: confirmed merge. Honor narrower user constraints, including “do not merge”.
Closing PRs and dismissing reviews require authority. Prefer update merges on shared branches; authorized rewrites use a lease tied to the inspected head.
Workflow
Maintain
- Read current head/base, required checks/reviewers, repository guidance, feedback and all unresolved threads, including outdated ones; paginate. Optional bots do not create indefinite waiting gates.
- Analyze each new comment and CI failure against current code. Explain false positives and reasons for deferring unrelated requests.
- Drastic changes (broad rewrites, architectural or major behavior changes), whether requested in a comment or needed for CI: do not implement. Tell the user immediately with the link, the request or failure and your assessment, then await direction.
- Other substantiated issues: fix them locally right away. Update the base or resolve conflicts when integration or policy requires it; retry transient CI failures only with a reason. Include changes the user prepared for this PR.
- After every code-changing round, simplify the complete local fix diff as in Simplification, then verify the simplified snapshot as in Verification, covering affected behavior and required checks. Fix failures and repeat both. Skip them for replies and metadata-only rounds unless the user requests simplification.
- Once the fixes work and are ready to commit and push, tell the user the handled comments or failures with links, what changed, the diff summary and evidence. Do not commit or push until the user explicitly approves; apply requested adjustments and repeat step 5.
- After approval, publish to the existing PR as in Publication. Do not bypass its blockers or publish without changes.
- Reply to handled feedback and resolve threads as in PR comments, with the fix revision/evidence or reasons for no change. The user's approval of each reported fix or decision on a drastic change counts as approval for the confirmed prefix. Resolve a thread only after publication and only when its fix is trivial and indisputable; leave any fix involving judgment open for the reviewer. Track pending feedback by thread state.
Merge
A draft awaits human review. Only a human may mark it ready; never perform or delegate that transition. Continue maintenance while waiting.
Merge requires ready status set by a human, green CI on the current head, valid repository-required approvals, all review threads resolved, including outdated ones, and no unpublished or unapproved local fixes. Recheck expected head, these conditions and mergeability immediately before merging. Never bypass branch protection or required reviews. Merge without further confirmation and verify the actual merge; pending or unavailable requirements leave the endpoint incomplete.
Wait and finish
When immediate actions are done but the endpoint is pending, follow PR event waiting for changes affecting mergeability. Persist PR/head, endpoint, handled feedback, local fixes awaiting approval, evidence, pending issues and next action. Reuse sent notifications instead of reposting on wakes. Wakes do not widen scope.
Result
Report final head, checks/reviews, fixes (published or awaiting approval), drastic requests awaiting direction, blockers and watcher state. Default completion requires confirmed merge; for maintenance-only endpoints, report the actual outcome and deferred checks. Stop on closure/cancellation. Missing access, external decisions or repeated failures without new evidence are blockers.