process-event-sources
Skill này làm gì
Skill này giải thích cách Firstmate theo dõi các tiến trình bên ngoài chạy lâu mà không chặn cuộc trò chuyện. Skill dành cho người cần kết quả từ các tác vụ chậm, như bảng rà soát hoặc kiểm tra bên ngoài.
Khi nào nên dùng
- ✓Khi một tiến trình bên ngoài sẽ mất nhiều thời gian và bạn muốn agent tiếp tục làm việc trong lúc đó.
- ✓Khi một đánh thức sự kiện tiến trình đến, báo một nguồn được theo dõi đã xong.
- ✓Khi một nguồn được theo dõi được báo là bị kẹt hoặc không khởi động được.
Liên kết skill
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/process-event-sources/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bắt đầu theo dõi bảng rà soát dài này và đánh thức tôi khi có phản hồi cần tôi trả lời.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đăng ký tiến trình bên ngoài như một nguồn và tiếp tục làm việc. Khi tiến trình xong, một tin đánh thức đưa kết quả trở lại cuộc trò chuyện.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Agent có chờ trong lúc tiến trình chạy không?
Không. Agent tiếp tục làm việc, và một tin đánh thức đến khi tiến trình kết thúc.
Stranded nghĩa là gì?
Nghĩa là một nguồn được theo dõi đã mất liên kết và cần kiểm tra, mà skill giải thích cách xử lý.
Agent có theo dõi được mọi công cụ không?
Nó dùng các adapter riêng cho từng nguồn được hỗ trợ, không phải một trình chạy chung cho mọi công cụ.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 8.5k
- Vị trí xếp hạng
- #12439
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
afk
8.5kGiúp agent của bạn tiếp tục làm việc khi bạn vắng mặt, giữ các quyết định cho lúc bạn quay lại và gửi bạn một bản tóm tắt rõ ràng khi bạn về.
ahoy
8.5kGiúp agent của bạn tóm tắt ngắn những gì đã xảy ra trong phiên và hướng dẫn bạn qua các quyết định vẫn đang chờ bạn.
ask-user-authority
8.5kGiúp agent của bạn tự quyết các câu hỏi rà soát khi chúng khớp rõ với kế hoạch đã thống nhất, chỉ hỏi bạn khi câu hỏi mơ hồ hoặc có rủi ro.
away-quiet-supervision
8.5kĐặt các quy tắc an toàn khi giám sát công việc ở chế độ vắng mặt hoặc im lặng, để agent giữ tin nhắn rõ ràng và giữ các quyết định cần bạn.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.