captain-hold-lifecycle
它能做什么
这项技能确保每个需要你决定的问题,在工作被标记为完成之前,都被记录为一个保留中的任务。适合使用 Firstmate、并希望不漏掉任何决定的人。
适用场景
- ✓当一项调查或评审即将被标记为完成,并且它提出了需要你决定的问题时。
- ✓当你回答了一个保留中的问题,智能体需要记录你的回答时。
- ✓当唤醒检查报告某条记录与待办清单之间不一致时。
技能链接
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/captain-hold-lifecycle/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在你把这项调查标记为完成之前,请确保每个需要我决定的问题都已保存为保留中的任务。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体将每个未解决的问题记录为一个保留中的任务,并附上可选方案。在这些问题由保留任务承接之前,工作无法被标记为完成。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Captain-hold lifecycle
A decision is not a separate thing: it is simply a task waiting on the captain.
The one primitive is an ordinary backlog task held for the captain through bin/fm-captain-hold.sh hold; its identity is the task id, and that wrapper owns the deterministic mechanics this policy relies on.
The agent performs the semantic inventory because scripts must not infer captain calls from report prose, visual-review artifacts, terminal output, or chat.
Policy
Every unresolved question that belongs to the captain and is discovered while producing, reading, presenting, or ending an investigation or visual review must be carried by a captain-held task in the authoritative backlog of the home that owns the originating work before that work or review may be treated as complete.
For a Lavish board-backed handoff, pass the reply through bin/fm-procevent-lavish.sh arm --agent-reply-file before appending the status; the adapter owns version-specific acceptance ordering.
Prefer holding the work item the question gates over minting a new row; create a new task only when no work item exists to hold.
The originating investigation or review is never its own inventory entry, so hold a separate task for the call and pass --origin <origin-id> so complete can check it.
Put the question and its options in the hold reason, and keep one held task per genuine gate: a multi-question review is one held task pointing at its report, not a row per question. Represent that task with exactly one board card that consolidates its questions and options; never fan one task id into duplicate same-key cards.
Register or re-hold through bin/fm-captain-hold.sh hold, which is idempotent per task id.
After inventorying the whole report and review surface, firstmate runs bin/fm-captain-hold.sh complete with every captain-held task id, or with --none when nothing waits on the captain.
A scout may attest its own empty inventory only through the narrow command exception in its generated brief's Definition of done.
For a non-empty inventory or a refused command, the scout reports to firstmate rather than writing metadata or backlog records.
A completed investigation and an ended visual review use this same owner and completion command; a visual tool, including Lavish, never owns a parallel completion policy.
Run the command in the originating work's authoritative FM_HOME; secondmate-owned work registers in that secondmate home's backlog, and a question already held anywhere is never re-registered as a second row.
Do not close a captain-held task merely because the originating investigation completed, its report was archived, its visual review ended, or its task was torn down.
Holding the work item the question gates is safe for exactly that reason: cleanup keeps such a row open with the finished work's deliverable recorded and returns it to the queue, so it still reads as the captain's own call.
Only answer with the captain's words or an evidence-backed reconcile close may resolve it.
Never close anything the captain owns without recording what he actually said: bin/fm-captain-hold.sh answer writes his exact words into the task and closes a question-shaped call, while --release frees a captain-gated work item to proceed.
A merge approval uses that existing release path because approval permits the merge to proceed; cleanup closes the work only after it lands and records what shipped.
Closing a held row at merge approval instead records completion before landing, so the backlog claims completion before the work actually ships.
When the answer changes what a task must build, follow AGENTS.md section 7's mid-task ask rule to preserve the captain's words in the brief and steer the worker.
When the captain says "later", that is an answer too: re-hold with bin/fm-captain-hold.sh hold <id> --reason "<reason>" --until <date> so the item leaves the live Captain's Call and resurfaces on its date, instead of leaving a live-looking card or fabricating a closure.
"A keyed answer resolves its matching captain-held task" is one capability with one owner, bin/fm-captain-hold.sh answers, and every channel that carries a captain answer feeds it the same task id and answer; a channel never maps keys to tasks, records a decision, or resolves anything itself.
Chat already feeds it through bin/fm-send.sh --resolve-key, and a captured-answer source feeds it once bound with bin/fm-captain-hold.sh bind <source-id>; bind before arming
常见问题
问题保存在哪里?
它会作为保留任务,保存在负责该工作的项目待办清单中。
一个问题对应一个任务吗?
是的。每个真实的决定都会有自己的保留任务,并链接到产生它的那次评审。
如果问题没有对应的任务怎么办?
只有在没有现有的工作项可以挂载该问题时,智能体才会创建新任务。
详情
作者的原始描述
Load before treating an investigation, scout report, structured review, or Lavish review as complete, before ending a visual review that exposed a captain decision, when recording or routing the captain's answer, and on any RECORD DIVERGENCE line the wake drain prints.
repo: kunchenguid/firstmate
热度
- GitHub 星标
- 8.5k
- 排名
- #12432
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …