session-start-recovery
できること
このスキルは、Firstmateの起動時の要約を扱い、未完了の確認項目や復旧手順を説明します。Firstmateを再起動して、起動レポートの意味を知りたい人向けです。
使う場面
- ✓起動時の要約に、対応が必要な未完了の確認項目が出ているとき。
- ✓起動レポートに診断の行や復旧の詳細が含まれているとき。
- ✓起動の流れが順番にどんな処理をするのかを知りたいとき。
スキルのリンク
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/session-start-recovery/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“Firstmateの起動レポートに未完了の確認項目がいくつか出ています。それは何を意味し、どうすればよいですか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは起動時の要約を読み、セッションのロックやツールの確認などの各手順を順番に処理します。ネットワークの確認はバックグラウンドで実行されるため、要約の表示を止めません。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Session-start recovery
The digest itself makes no external-network call and never waits for one.
Every network check a session start owes - GitHub auth, secondmate recovery, secondmate convergence, pending handoff delivery, and project clone refresh - runs off the digest's blocking path in a bounded worker owned by bin/fm-startup-network.sh and is reported in the digest's own NETWORK CHECKS section.
The locked startup inactive-outcome scan joins that worker so a slow local current-state read cannot block the digest; its findings use the ordinary durable wake queue.
- Lock - acquires the per-home session lock first, before anything mutates shared state, then starts the deferred startup stage above.
- Bootstrap - detect-only checks (tool/version problems, the worktree-tangle check, harness override, dispatch-profile validation, backlog-backend status) always run, but routine confirmations stay silent by default.
When the lock could not be acquired, the worktree-tangle check uses read-only advisory wording without a checkout repair command.
Home-local stale Herdr projection cleanup and the six bootstrap MUTATING sweeps - same-home backlog reconciliation, fleet sync, secondmate convergence, secondmate liveness, pending remote handoff retry, and Relay artifact writes - run only when this session actually holds the lock from step 1; the four network ones among them run in the deferred stage rather than in this section.
The secondmate liveness sweep accounts for every registered secondmate and reports skipped or failed recovery as
SECONDMATE_LIVENESS:lines. The sweep and the watcher's cadence-gated tick share the recovery contract; for T3 threads, follow the native recovery guide. - Wake queue - when locked, drains and presents the durable wake queue without running the inactive-outcome scan inline, and prints the raw records prominently as this turn's first work queue; a clearly labeled status-event annotation may follow a valid
signalrecord and includes every status line still unread at the presentation cursor, but never replaces the raw record or current-state reconciliation, and a lapsed watcher chain still surfaces here via the same guard alarm. Presented records remain durable until the handling turn runs the generation-bound acknowledgement printed by the drain. Every locked drain also prints a bounded fleet-wideOPEN DECISIONSsection when durable decision records remain open, including when the queue itself is empty; reconcile those entries before continuing. A main drain may also print a bounded, one-shotSTATUS OUTCOME BACKSTOPwhen a task's newest captain-facing status event has no covering supervision-branch outcome; handle it as a recovered wake even when no queue row remains. The same drain prints every still-unreadnote:line and pending-reply resolution since the last presentation in an unboundedUNREAD STATUSsection, so an answer buried under a later routine line is not dropped; those lines are not re-printed after that presentation. It also prints a boundedRECORD DIVERGENCEsection naming every captain call the status log reads as resolved while its backlog task is still held; nothing is closed for you, andcaptain-hold-lifecycleowns the reconciliation. When the lock could not be acquired and verified, the queue is left untouched because no session mutation is authorized, and the guard's tangle/watcher-liveness alarms still print in read-only advisory mode without drain, supervision repair, or checkout repair commands. - Supervision operating instructions - after the wake queue and before both digests, the digest emits exactly one operating block for the detected primary harness, followed by the read-once contract that governs them. The script itself never starts supervision; the emitted harness protocol owns the exact wait or wake mechanism.
- Fleet-state digest - after that read-once contract and ahead of the context digest, the compact backlog listing owned by
bin/fm-session-start.sh; everystate/<id>.meta; a bounded tail of each task'sstate/<id>.status(labeled as wake-EVENT history, not current state, with the full log path printed for a deeper read); the away or quiet posture (state/.afk-contract, plus thestate/.afkdaemon flag where a daemon runs); and one cheap alive/dead read of each task's
よくある質問
起動時の要約は、インターネットの確認を待ちますか?
いいえ。ネットワークの確認は要約を待たせず、別に報告されます。
許可なく何かを変更しますか?
いいえ。インストールやアップグレードは、あなたが承認してから実行されます。
セッションのロックは何のためにありますか?
二つのセッションが同時に共有の状態を変えてしまうのを防ぐためです。
詳細
作者による元の説明
Load when the session-start digest reports unfinished checks, actionable diagnostics, recovery inputs, or output requiring interpretation.
repo: kunchenguid/firstmate
人気
- GitHubのスター
- 8.5k
- ランキング
- #12445
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
afk
8.5kエージェントが、あなたが離れている間も作業を見守り、あなたの判断が必要なものを保留し、戻ったときに明確な報告を送れるよう支援します。
ahoy
8.5kエージェントが、セッションで何が起きたかの短い振り返りを示し、まだあなたの答えを待っている判断を一緒に確認できるよう支援します。
ask-user-authority
8.5kエージェントが、検証の中で出た質問を、合意された計画に明らかに合う場合は自分で判断し、不明確または危険な場合にだけあなたに尋ねるよう支援します。
away-quiet-supervision
8.5kエージェントが、不在またはおとなしいモードで作業を監督するときの安全ルールに従い、メッセージを明確に保ち、あなたが必要な判断を保留できるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。