ship-landing
kunchenguid/firstmate/.agents/skills/ship-landing/SKILL.md
Load when a ship reports a PR or ready branch, when deciding or monitoring landing, and before task cleanup.
Skill7.7k starsChanged yesterday
What's in it
- Ship landing
---
name: ship-landing
description: Load when a ship reports a PR or ready branch, when deciding or monitoring landing, and before task cleanup.
user-invocable: false
metadata:
internal: true
---
# 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.
`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 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.
More agent context in kunchenguid/firstmate
30 other files this repository gives its agents.
AGENTS.md
CLAUDE.md
Skill
- afk.agents/skills/afk/SKILL.md
- agent-skill-trigger-index.agents/skills/agent-skill-trigger-index/SKILL.md
- ahoy.agents/skills/ahoy/SKILL.md
- ask-user-authority.agents/skills/ask-user-authority/SKILL.md
- away-quiet-supervision.agents/skills/away-quiet-supervision/SKILL.md
- bearings.agents/skills/bearings/SKILL.md
- bootstrap-diagnostics.agents/skills/bootstrap-diagnostics/SKILL.md
- captain-hold-lifecycle.agents/skills/captain-hold-lifecycle/SKILL.md
- decision-hold-lifecycle.agents/skills/decision-hold-lifecycle/SKILL.md
- diagnostic-reasoning.agents/skills/diagnostic-reasoning/SKILL.md
- firstmate-codexapp.agents/skills/firstmate-codexapp/SKILL.md
- firstmate-coding-guidelines.agents/skills/firstmate-coding-guidelines/SKILL.md
- firstmate-orca.agents/skills/firstmate-orca/SKILL.md
- fmx-respond.agents/skills/fmx-respond/SKILL.md
- harness-adapters.agents/skills/harness-adapters/SKILL.md
- operational-home-layout.agents/skills/operational-home-layout/SKILL.md
- process-event-sources.agents/skills/process-event-sources/SKILL.md
- project-management.agents/skills/project-management/SKILL.md
- quiet.agents/skills/quiet/SKILL.md
- quota-array-dispatch.agents/skills/quota-array-dispatch/SKILL.md
- scout-completion.agents/skills/scout-completion/SKILL.md
- secondmate-provisioning.agents/skills/secondmate-provisioning/SKILL.md
- session-start-recovery.agents/skills/session-start-recovery/SKILL.md
- stow.agents/skills/stow/SKILL.md
- stuck-crewmate-recovery.agents/skills/stuck-crewmate-recovery/SKILL.md
- updatefirstmate.agents/skills/updatefirstmate/SKILL.md
- validation-supervision.agents/skills/validation-supervision/SKILL.md
- stowskills/stow/SKILL.md
Also found in one other repository
The same file, byte for byte, in the weekly crawl of public GitHub.
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

