ship-landing
What it does
This skill explains how a finished code change becomes ready to merge in Firstmate, including checks and pull request tracking. It is for people who ship code through Firstmate and want safe merges.
When to use it
- ✓When a worker reports that a pull request is ready.
- ✓When you need to decide whether a ready change should be merged.
- ✓When a task is about to be cleaned up after its change lands.
Skill link
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/ship-landing/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“The worker says its pull request is ready. Check that it is safe to merge and track it until it lands.”
5 new skills a week. 1 minute to read.
How it works
The agent confirms the ready signal, records the pull request, and watches it for merging. A ready signal that points to work existing only in a temporary copy is treated as not ready.
Technical content (original SKILL.md)
Original text by the author, straight from 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.
FAQ
What counts as ready?
A non-draft pull request reported with green checks or opened for review, depending on the delivery mode.
Can it watch a draft pull request?
No. Merge monitoring will not start on a draft.
Why would a ready signal be refused?
If the named change exists only in a temporary copy, the skill treats the work as not ready.
Details
Original description by the author
Load when a ship reports a PR or ready branch, when deciding or monitoring landing, and before task cleanup.
repo: kunchenguid/firstmate
Popularity
- GitHub stars
- 8.5k
- Ranking position
- #12446
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
afk
8.5kLets your agent keep working while you are away, holding decisions for your return and sending you a clear brief when you come back.
ahoy
8.5kLets your agent give you a short recap of what happened in the session and walk you through any decisions still waiting on you.
ask-user-authority
8.5kHelps your agent decide review questions on its own when they clearly fit the agreed plan, and ask you only when a question is unclear or risky.
away-quiet-supervision
8.5kSets safety rules for supervising work in away or quiet mode, so the agent keeps messages clear and holds decisions that need you.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.