跳到正文
Skillpedia
部署与云(DevOps)16k · #10905

send

它能做什么

让助手处理从代码修改到合并拉取请求的完整流程。适合希望在合并前完成检查的开发者。

适用场景

  • ✓当你已商定某项代码修改,并希望将其变成拉取请求时。
  • ✓当你希望助手等待持续集成检查完成时。
  • ✓当你希望只有在检查和审阅都通过后才进行合并时。

技能链接

https://github.com/yc-software/qm/blob/main/skills-seed/send/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/yc-software/qm/blob/main/skills-seed/send/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请为我们讨论过的修改创建拉取请求,等待检查完成,并在全部通过后合并。”

每周 5 个新技能,1 分钟读完。

工作原理

助手会创建分支、推送修改、开启拉取请求,并在同一个流程中监控检查。它会修复出现的问题,且只有在所有关卡都通过后才会合并。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Babysit

Make a pull request for the change we just discussed, file it, babysit CI, fix any issues that come up, and merge once CI is fully green.

Steps

  1. Make the PR. Commit the discussed change on a feature branch (create one off the default branch if currently on it). Push it.

  2. File it. Open a pull request with a clear title and description covering why and what changed. Use gh for GitHub or glab for GitLab. Detect from the remote.

  3. Wait for CI in one blocking process, with bounded transport retries. Load the github-gitlab skill; it reports the directory holding its scripts. For GitHub, capture the PR's full head SHA and use its bundled helper, not bare gh pr checks --watch:

    node <github-gitlab dir>/scripts/watch-ci.mjs --repo OWNER/REPO --pr NUMBER --head REVIEWED_HEAD_SHA
    

    Run this with execute, an explicit sandbox_id, background:true, and authorized credentials; subscribe with background action watch and the returned process_id. Keep that sandbox ID throughout the checkout, checks, and push. Keep one watcher per PR; hand off if another agent already owns it. The helper polls internally, retries recognized transport/server errors with bounded backoff, and has a 30-minute overall deadline. Set the background lifetime longer than that. Do not wake the model repeatedly to report pending checks.

    Read the helper's JSON status, not just the exit code. Pending is not failure; TLS timeouts and connection resets are not logout or permission expiry. Failed checks, auth failures, rate limits, unknown errors, exhausted retries, and deadlines all remain nonzero. Keep set -e; never mask failure with a success marker or merge. A changed head invalidates successful checks and reviews: restart both on the new SHA. Empty, skipped, or cancelled checks do not count as success.

    For GitLab, use glab ci status --live; the GitHub helper does not cover it. Preserve its nonzero status and investigate failures before proceeding.

    Also wait for asynchronous reviewers (including Bugbot) to finish on the latest commit. Watcher success alone is never approval to merge.

  4. Adversarially review the PR — always in a fresh context, before merging. Dispatch an independent subagent (or /code-review) that has not seen you write the change. Never review your own diff in the context that produced it — that context already believes the change is correct, and that belief is exactly the bias review exists to defeat. A fresh reviewer is non-negotiable on every send, however small the diff and however green CI is.

    What scales with risk is the reviewer's depth and breadth, not its independence:

    • Small, well-tested, single-file change: one reviewer, modest effort, scoped to the diff and its immediate call sites. Cheap, but still a stranger's eyes.
    • Risky change — core control flow, auth/credentials/security, data loss or migrations, concurrency and retry logic, spend, a public API contract, or a diff too large to hold in your head: high effort, wider blast-radius reading, and consider several reviewers with distinct lenses (correctness, security, does-it-actually-reproduce).

    Prompt the reviewer to break the change: correctness bugs, edge cases, regressions, security holes, violations of the repo's CLAUDE.md/spec, overengineering (needless abstraction, flags, layers, or generality for one caller — prefer the simplest thing that works), and reward hacking (tests weakened, skipped, or tailored to pass rather than to verify; assertions gutted; intent met in letter but not spirit; CI gamed). Treat the diff as guilty until proven correct. Green CI is not review.

  5. Fix every real issue found. Address each genuine finding from the adversarial review, from CI, and from reviewers/bots: fix it, push, and go back to step 3. Re-review the delta, not the whole diff again — a fresh full review per round is how a small PR turns into an afternoon. For anything that needs human judgment, ask the user. Cap at ~3 fix rounds, then stop and report what's unresolved.

  6. Merge once green AND reviewed. Merge only when all checks pass, the adversarial review is clean (no unaddressed findings), and there are no unresolved comments/findings — re-read checks and review threads, then merge directl

常见问题

如果某项检查失败,它还会合并吗?

不会。只有在所有检查都通过且独立审阅也通过后,它才会合并。

如果网络错误中断了检查怎么办?

它会对可识别的连接问题进行有限次数的重试,大约 30 分钟后放弃。

它能与同一请求上的另一个智能体同时运行吗?

它为每个拉取请求只保留一个监视进程,因此不会与已经负责该请求的其他智能体重复工作。

详情

作者的原始描述

Make a PR, wait for CI with bounded transport retries, independently review, and merge only when all gates pass.

repo: yc-software/qm

热度

GitHub 星标
16k
排名
#10905
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能