send
它能做什么
让助手处理从代码修改到合并拉取请求的完整流程。适合希望在合并前完成检查的开发者。
适用场景
- ✓当你已商定某项代码修改,并希望将其变成拉取请求时。
- ✓当你希望助手等待持续集成检查完成时。
- ✓当你希望只有在检查和审阅都通过后才进行合并时。
技能链接
https://github.com/yc-software/qm/blob/main/skills-seed/send/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
Make the PR. Commit the discussed change on a feature branch (create one off the default branch if currently on it). Push it.
File it. Open a pull request with a clear title and description covering why and what changed. Use
ghfor GitHub orglabfor GitLab. Detect from the remote.Wait for CI in one blocking process, with bounded transport retries. Load the
github-gitlabskill; it reports the directory holding its scripts. For GitHub, capture the PR's full head SHA and use its bundled helper, not baregh pr checks --watch:node <github-gitlab dir>/scripts/watch-ci.mjs --repo OWNER/REPO --pr NUMBER --head REVIEWED_HEAD_SHARun this with
execute, an explicitsandbox_id,background:true, and authorized credentials; subscribe withbackgroundactionwatchand the returnedprocess_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.
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.
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.
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
评论
- …
同一仓库的更多技能
deploy-qm
16k按照完整的部署清单,将 QM 软件包部署到 Fly.io、AWS 或 Render,然后设置管理员、连接器,并可选择连接 Slack。
onboarding
16k在一段简短的对话中,引导新用户连接账户、说明自己的工作方式、选择语音,并设置最初的帮助内容。
admin
16k让经过验证的组织管理员在聊天中查看或更改全组织范围的设置及其他范围,并在每项更改前进行确认。
browse
16k从你的 shell 驱动真实的隐身浏览器,在网站上执行操作,例如登录或填写表单,并按人保存登录状态。仅用于操作,不用于阅读。