stuck-crewmate-recovery
できること
このスキルは、Firstmateで止まってしまったヘルパーエージェントを、再び動かす方法を説明します。ヘルパーが止まったり、ループしたり、応答しなくなったりする人向けです。
使う場面
- ✓ヘルパーエージェントが古い状態になったり、ループしたり、応答しなくなったりしたとき。
- ✓ヘルパーが、元の指示ですでに答えられている質問をしてきたとき。
- ✓ヘルパーに送った指示メッセージが、届いていないように見えるとき。
スキルのリンク
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/stuck-crewmate-recovery/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ヘルパーエージェントが同じ手順をループし続けています。作業を失わずに止まった状態から動かせるよう手伝ってください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは制御コマンドを使って、ヘルパーに割り込む、停止する、または再起動します。各操作を確認しながら進めます。復旧は、作業を終わらせたり破棄したりしないように設計されており、完了したプルリクエストに対して強制的な片付けは行いません。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
stuck-crewmate-recovery
Use this playbook when the session-start digest reports an ordinary direct report's endpoint dead or its metadata has no window, or when a direct report is stale, looping, repeatedly confused, asking a question its brief already answers, unresponsive, or when a steer failed to land.
A stale or dead-endpoint report for a worker whose pull request has already landed is not a recovery case: the work is finished, so close the task through ordinary teardown (AGENTS.md section 7 for firstmate, the landed-work rule in bin/fm-branch-prompt.sh for the supervision branch) instead of this playbook, never with --force.
Follow the crew-hosted Lavish board contract in docs/configuration.md when recovering a worker that hosts a board.
Interrupt, stop, and relaunch a worker through bin/fm-control.sh <task-id> interrupt|exit|relaunch, which resolves the recorded runtime itself, verifies each action, and never tears down or discards anything (docs/agent-control.md).
That plane covers workers running in this home; a remotely placed secondmate is refused by name and reconciled through secondmate-provisioning instead.
Load harness-adapters before a resume command or a harness-specific skill invocation, and whenever the adapter's own quirks matter.
The target window's harness is recorded as harness= in state/<id>.meta.
Managed approval failover
After observing a Codex command-approval prompt under bypass or a Claude policy refusal of a bypass session, ask the captain for explicit approval to change the owning home's worker permission posture and relaunch the worker.
Only after that explicit word, load harness-adapters and use FM_HOME=<owning-home> bin/fm-approval-failover.sh apply <id>; its header owns persistent configuration and guarded recovery, with no automatic detection.
Report the saved model-reviewed remedy and actual recovery result, preserving explicit settings and work rather than changing vendor policy or answering approval or hook-trust prompts.
A backend=t3code worker already runs at T3's full-access runtime mode, so the command refuses it before changing anything; approve its pending request in T3 Code itself (T3 pending-request procedure) or move the work to another backend.
Session-start reconciliation for a dead ordinary direct report
This procedure covers ordinary kind=ship and kind=scout direct reports.
Load secondmate-provisioning instead for kind=secondmate recovery.
For a REMOTE secondmate, fm-crew-state and fm-peek read the actual remote endpoint over fm-on.sh, and fm-send reports a delivered-with-pending-confirmation steer as delivered (their headers own the contracts); an unknown-remote read or unreachable-host failure means the remote state could not be read, never that the mate is dead or the send failed.
Recover a genuinely stuck remote mate only through bin/fm-spawn.sh <id> --secondmate, never raw herdr pane close/kill surgery, which strands the endpoint binding.
Treat the digest's endpoint result as a presence signal, not proof that the task's work or validation run is gone.
Read the targeted current state with bin/fm-crew-state.sh <id> before deciding to relaunch.
A no-mistakes run matched to the crew's branch and current code remains authoritative when the endpoint is dead: handle a terminal or parked run through the normal lifecycle, and keep supervising an active run instead of creating a duplicate worker.
When no authoritative run accounts for the task, inspect only its recorded backend and worktree inventory.
Use treehouse status for treehouse-backed tmux, herdr, zellij, cmux, Paseo, Rex, t3code, tern, or hc tasks, and use the recorded orca_worktree_id= and terminal= for Orca tasks.
Do not sweep another home's endpoints or infer ownership from a matching window label.
Before relaunch, prove that no live agent still owns the recorded task and that the existing worktree remains available. Preserve its uncommitted changes and commits, keep the same task identity, and resume or relaunch the recorded harness in that existing worktree with the same brief plus a concise progress note. A HERDR endpoint that is not merely idle but destroyed - a pane or workspace removed in Herdr churn - is recovered by that same relaunch, which creates one fresh en
よくある質問
復旧でヘルパーの作業は削除されますか?
いいえ。制御の手順は、何かを終わらせたり破棄したりしないように設計されています。
ヘルパーの作業がすでにマージされていたらどうなりますか?
そのタスクは、復旧ではなく通常の片付けの手順で閉じるべきです。
エージェントは、各ツールの詳細を知っている必要がありますか?
場合によります。再開のコマンドを使う前に、ツールのメモを読み込みます。
詳細
作者による元の説明
Load when the session-start digest reports an ordinary direct report's endpoint dead or its metadata has no window, after a stale wake, looping pane, repeated confusion, an answered-by-brief question, an unresponsive crewmate, or a failed steer, after observing a defeated Claude or Codex bypass, and when a live crewmate reports its no-mistakes pipeline dead, unreachable, or timed out.
repo: kunchenguid/firstmate
人気
- GitHubのスター
- 8.5k
- ランキング
- #12448
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
afk
8.5kエージェントが、あなたが離れている間も作業を見守り、あなたの判断が必要なものを保留し、戻ったときに明確な報告を送れるよう支援します。
ahoy
8.5kエージェントが、セッションで何が起きたかの短い振り返りを示し、まだあなたの答えを待っている判断を一緒に確認できるよう支援します。
ask-user-authority
8.5kエージェントが、検証の中で出た質問を、合意された計画に明らかに合う場合は自分で判断し、不明確または危険な場合にだけあなたに尋ねるよう支援します。
away-quiet-supervision
8.5kエージェントが、不在またはおとなしいモードで作業を監督するときの安全ルールに従い、メッセージを明確に保ち、あなたが必要な判断を保留できるよう支援します。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。