本文へスキップ
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に貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/ship-landing/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に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

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル