process-event-sources
O que ela faz
Esta skill explica como o Firstmate acompanha processos externos longos sem bloquear a conversa. Ela serve para quem precisa de resultados de tarefas lentas, como painéis de revisão ou verificações externas.
Quando usar
- ✓Quando um processo externo vai demorar muito e você quer que o agente continue trabalhando enquanto isso.
- ✓Quando chega um despertar de evento de processo informando que uma fonte monitorada terminou.
- ✓Quando uma fonte monitorada é informada como encalhada ou como tendo falhado ao iniciar.
Link da skill
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/process-event-sources/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
“Comece a acompanhar este painel de revisão longo e me acorde quando houver um feedback que eu precise responder.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente registra o processo externo como uma fonte e continua trabalhando. Quando o processo termina, uma mensagem de despertar traz o resultado de volta para a conversa.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
process-event-sources
Load this before arming a long-polling source, before registering a deterministic condition->action watch, whenever a check: wake carries procevent <adapter> <source-id> <sequence>, and whenever the watcher headlines a process-event source stranded or process-event source failed to start wake.
The runner exists so a blocking external process never holds firstmate's conversational turn. Firstmate registers a source, keeps working, and is woken when that process completes.
Arming a source
Use the adapter, not the generic runner, for a real source.
Before either Lavish arm form below, open the artifact with lavish-axi so its saved session can route the listener; the operating contract owns the prerequisite and refusal boundary.
For a Lavish review artifact firstmate owns:
bin/fm-procevent-lavish.sh arm <artifact.html>
A worker-owned board uses bin/fm-procevent-lavish.sh arm <artifact.html> --for <task-id> and re-arms with its reply after each nonterminal round; the existing handled marker is the acknowledgement.
Arm it once, then re-arm only when a round is actually waiting: arming again with nothing to acknowledge is refused.
A terminal round is never re-armed: the board stays yours until you acknowledge it with bin/fm-procevent.sh handled <source-id> <sequence>, which retires it, and until then retire refuses the board too.
Never arm a board that a live task hosts; follow the crew-hosted Lavish board contract for reply acceptance and older-version limits.
Registering a source is not the same fact as listening to it.
Lavish arm waits until this registration's listener is confirmed running and does not report ready without that evidence; other adapters still record the source for the watcher's next reconcile.
When an earlier registration's listener still holds the board as the confirm window ends, Lavish arm prints still-listening instead of armed; that listener keeps serving the board, and the new registration takes effect only after you retire the source and arm it again.
After arming by hand, confirm bin/fm-procevent.sh list reports that source as live, and run bin/fm-procevent.sh reconcile when it does not.
Reconcile reports every launch that did not prove it took its claim within the confirm window as failed= and exits non-zero, so a source that cannot be started says so instead of looking armed, and it wakes you once per failure episode about it because the watcher discards that count; start does not fix that - if the source stays unowned, run start attached to read the runner's refusal, then check the source command and adapter binary the registration names, and if a later reconcile finds the source owned the episode closes on its own.
A source list reports as orphaned is one reconcile will not relaunch, because something may still be polling it; reconcile wakes you once about it, and that wake's payload says which of two recoveries applies.
If the claim's recorded pid is alive under a different identity, bin/fm-procevent.sh start <source-id> takes the source back once you have checked nothing is still polling it - provided the dead generation's reservation records can still be tidied; otherwise it refuses with cannot claim source.
If the runner itself died and its process group survives, start reports already owned and takes nothing back: verify whether the dead runner's polling child is still attached to the source, and once that group is empty the next reconcile reclaims the source on its own.
Nothing signals that group automatically.
When a source carries captain answers to captain-held tasks, bind it BEFORE arming it, so it can never produce an answer that has nowhere to go:
bin/fm-captain-hold.sh bind <source-id>
The runner then passes each captured result to that source's own adapter answers command and pipes the keyed answers it prints into the one keyed-answer intake, which owns every rule about what they mean; the keys are captain-held task ids.
This is generic across built-in adapters with an answers command, and the runner still wakes you to act on the result.
External process-event bindings intentionally expose no answer operation and cannot feed the captain-answer intake.
captain-hold-lifecycle owns when a binding is required and what the keys must be.
Perguntas frequentes
O agente fica esperando enquanto o processo roda?
Não. O agente continua trabalhando, e uma mensagem de despertar chega quando o processo termina.
O que significa encalhada?
Significa que uma fonte monitorada perdeu o vínculo e precisa de uma verificação, que a skill explica como tratar.
O agente pode acompanhar qualquer ferramenta?
Ele usa adaptadores específicos para cada fonte suportada, e não um executor geral para todas as ferramentas.
Detalhes
Descrição original do autor
Load before arming a long-polling source firstmate owns, before registering a deterministic condition->action watch, on any `procevent <adapter> <source-id> <sequence>` check wake, and on any `process-event source stranded` or `process-event source failed to start` check wake.
repo: kunchenguid/firstmate
Popularidade
- Estrelas no GitHub
- 8,5 mil
- Posição no ranking
- #12439
- 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.