process-event-sources
하는 일
이 스킬은 Firstmate가 대화를 막지 않으면서 오래 걸리는 외부 프로세스를 어떻게 지켜보는지 설명합니다. 검토 보드나 외부 점검처럼 느린 작업의 결과가 필요한 사람을 위한 것입니다.
사용하는 경우
- ✓외부 프로세스가 오래 걸리고, 그동안 에이전트가 계속 일하기를 원할 때.
- ✓감시 중인 소스가 끝났다는 프로세스 이벤트 깨우기가 도착했을 때.
- ✓감시 소스가 고립되었거나(stranded) 시작하지 못했다고 보고될 때.
스킬 링크
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/process-event-sources/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 긴 검토 보드를 감시하기 시작하고, 제가 답해야 할 피드백이 있으면 깨워 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 외부 프로세스를 소스로 등록하고 계속 일합니다. 프로세스가 끝나면 깨우기 메시지가 결과를 대화로 돌려보냅니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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.
자주 묻는 질문
프로세스가 도는 동안 에이전트가 기다리나요?
아닙니다. 에이전트는 계속 일하고, 프로세스가 끝나면 깨우기 메시지가 도착합니다.
고립됨(stranded)이란 무슨 뜻인가요?
감시 소스가 연결을 잃어 확인이 필요하다는 뜻이며, 스킬은 그것을 처리하는 방법을 설명합니다.
에이전트가 어떤 도구든 감시할 수 있나요?
아닙니다. 모든 도구를 위한 하나의 일반 실행기가 아니라, 지원되는 각 소스를 위한 전용 어댑터를 씁니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 8.5k
- 순위
- #12439
- 라이선스
- 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에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.