跳到正文
Skillpedia
部署与云(DevOps)8.5k · #12446

ship-landing

它能做什么

这项技能讲解已完成的代码更改如何在 Firstmate 中变为可合并状态,包括检查和拉取请求跟踪。适合通过 Firstmate 发布代码、并希望合并过程安全的人。

适用场景

  • ✓当工作者报告某个拉取请求已准备就绪的时候。
  • ✓当你需要判断一项已就绪的更改是否应当合并时。
  • ✓当任务即将在其更改合并完成后被清理的时候。

技能链接

https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/ship-landing/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“工作者说它的拉取请求已经准备好了。请检查合并是否安全,并一直跟踪到合并完成。”

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

工作原理

智能体会确认就绪信号,记录拉取请求,并监控其合并情况。如果就绪信号指向的工作只存在于临时副本中,则会被视为未就绪。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Ship landing

For PR-based ship tasks, the ready signal depends on mode: no-mistakes reports done [at=<epoch>]: PR <url> checks green after CI is green, while direct-PR reports done [at=<epoch>]: PR <url> after opening the PR, each only for a non-draft PR; a lane that deliberately holds a draft declares a wait instead, and bin/fm-pr-check.sh refuses to arm merge monitoring on a draft. Run bin/fm-pr-check.sh <id> <PR url> with the URL copied from that ready signal or the resolved checks-green fm-crew-state.sh line - it records pr= and the forge's pr_head= when available in the task's meta and arms the watcher's merge poll. With config/pr-register-scan present, the watcher's check sweep also records a PR that a done: line names when no pr= exists, and reports a refused registration as a check: pr-register: notification; handle that refusal as you would a refusal from a manual run. bin/fm-dod-lib.sh owns the named-head gate on that ready signal: a ship done: whose named head exists only in the worker's disposable copy is not ready (bin/fm-crew-state.sh reports blocked, bin/fm-pr-check.sh refuses to register, and a secondmate does not publish that done upstream). That blocked reading is the gate working, not a stuck worker, so steer the worker on the commit the refusal names rather than waiting. A forge=external task reports done [at=<epoch>]: review <url> uploaded for review instead: run bin/fm-review-check.sh <id> <review url> rather than bin/fm-pr-check.sh, which arms no merge watch, then always escalate the review URL to the captain whatever the yolo setting, because firstmate can neither observe nor perform its approval or merge. A direct-PR worker pushes that commit to its PR branch, and a local-only worker commits it on its ship branch. A no-mistakes worker re-validates it with /no-mistakes so the pipeline stays the one publisher; it never pushes from its copy. In no-mistakes mode the earlier done [at=<epoch>]: {summary} is the pipeline handoff and is not gated. Tell the captain the PR's full https://... URL copied from the worker's ready line, the resolved checks-green crew-state line, or the task's pr= metadata, a concise outcome summary, and the no-mistakes risk level when applicable. A captain instruction to merge is explicit authority; yolo is the only standing routine merge authority. For any custom state/<id>.check.sh you write yourself, keep it an ordinary single-link mode-0700 file, print one line only when firstmate should wake, print nothing otherwise, finish before FM_CHECK_TIMEOUT, then bind its current bytes with bin/fm-check-register.sh <id> before the watcher may execute it. Retire a custom check only through bin/fm-check-unregister.sh <id> (or bin/fm-teardown.sh for a spawned task); never hand-compose an rm with $STATE/$ID.

Tear down a ship task only after landing is confirmed. A teardown refusal for uncommitted or unlanded work is a stop-and-investigate result, never an obstacle to bypass. Never force teardown without explicit discard authority. After successful teardown, record completion, retain only the configured recent Done history, and re-evaluate queued work whose blockers and time gates have cleared.

A secondmate is persistent and an empty queue is healthy. Retire one only on an explicit captain or main-firstmate decision, after loading secondmate-provisioning; its home must contain no work under way, and forced discard still requires explicit captain authority.

常见问题

什么才算就绪?

根据交付模式,非草稿状态且检查通过的拉取请求,或已开启评审的拉取请求。

它能监控草稿拉取请求吗?

不能。合并监控不会在草稿上启动。

为什么就绪信号会被拒绝?

如果所指定的更改只存在于临时副本中,这项技能会把工作视为未就绪。

详情

作者的原始描述

Load when a ship reports a PR or ready branch, when deciding or monitoring landing, and before task cleanup.

repo: kunchenguid/firstmate

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能