session-start-recovery
O que ela faz
Esta skill explica como o Firstmate trata seu resumo de inicialização, incluindo verificações pendentes e passos de recuperação. Ela serve para quem reinicia o Firstmate e quer entender o que o relatório de inicialização significa.
Quando usar
- ✓Quando o resumo de inicialização lista verificações pendentes que precisam de atenção.
- ✓Quando o relatório de inicialização inclui linhas de diagnóstico ou detalhes de recuperação.
- ✓Quando você quer entender o que a sequência de inicialização faz, em ordem.
Link da skill
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/session-start-recovery/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Meu relatório de inicialização do Firstmate lista algumas verificações pendentes. O que elas significam e o que devo fazer?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente lê o resumo de inicialização e percorre cada passo em ordem, como bloquear a sessão e verificar as ferramentas. As verificações de rede rodam em segundo plano, para não atrasar o resumo.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
O resumo de inicialização espera pela internet?
Não. O resumo não espera as verificações de rede, que são informadas separadamente.
Ele vai mudar coisas sem perguntar?
Não. Instalações e atualizações acontecem somente depois da sua aprovação.
Para que serve o bloqueio da sessão?
Ele impede que duas sessões alterem o estado compartilhado ao mesmo tempo.
Detalhes
Descrição original do autor
Load when the session-start digest reports unfinished checks, actionable diagnostics, recovery inputs, or output requiring interpretation.
repo: kunchenguid/firstmate
Popularidade
- Estrelas no GitHub
- 8,5 mil
- Posição no ranking
- #12445
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
afk
8,5 milPermite que seu agente continue trabalhando enquanto você está fora, guardando decisões para o seu retorno e enviando um resumo claro quando você voltar.
ahoy
8,5 milPermite que seu agente faça um resumo curto do que aconteceu na sessão e acompanhe com você as decisões que ainda estão esperando por você.
ask-user-authority
8,5 milAjuda seu agente a decidir sozinho perguntas de revisão quando elas se encaixam claramente no plano combinado, e a perguntar a você apenas quando a questão for incerta ou arriscada.
away-quiet-supervision
8,5 milDefine regras de segurança para supervisionar o trabalho em modo ausente ou silencioso, para que o agente mantenha as mensagens claras e guarde as decisões que dependem de você.
Skills parecidas
openclaw-update
394 milAjuda seu agente a atualizar um OpenClaw Gateway existente, escolhendo o método que combina com a instalação e mantendo sua sessão funcionando.
diagnose-gateway
394 milAjuda seu agente a descobrir por que seu OpenClaw Gateway está falhando, verificando configurações, canais e portas sem alterar nada.
crabbox-apps
394 milAjuda seu agente a abrir e executar um app em uma máquina temporária na nuvem e depois mostrar a visualização dele no painel lateral do seu chat.