process-event-sources
यह क्या करती है
यह स्किल समझाती है कि Firstmate बातचीत को रोके बिना लंबे बाहरी processes पर नज़र कैसे रखता है। यह उन लोगों के लिए है जिन्हें धीमे कामों से नतीजे चाहिए, जैसे समीक्षा बोर्ड या बाहरी जांच।
कब इस्तेमाल करें
- ✓जब कोई बाहरी process लंबा समय लेगा और आप चाहते हैं कि एजेंट इस बीच काम करता रहे।
- ✓जब process event wake आए और बताए कि देखा जा रहा स्रोत पूरा हो गया है।
- ✓जब कोई देखा जा रहा स्रोत stranded या शुरू होने में विफल बताया जाए।
Skill का लिंक
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/process-event-sources/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“यह लंबा समीक्षा बोर्ड देखना शुरू कीजिए और जब मेरे जवाब देने लायक फ़ीडबैक आए तो मुझे जगा दीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट बाहरी process को एक स्रोत के रूप में दर्ज करता है और काम जारी रखता है। जब process पूरा होता है, तो wake संदेश नतीजा बातचीत में वापस लाता है।
तकनीकी सामग्री (मूल 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.
अक्सर पूछे जाने वाले सवाल
क्या process चलते समय एजेंट इंतज़ार करता है?
नहीं। एजेंट काम जारी रखता है, और process पूरा होने पर wake संदेश आता है।
stranded का क्या मतलब है?
इसका मतलब है कि देखे जा रहे स्रोत ने अपना लिंक खो दिया है और उसकी जांच चाहिए, जिसे स्किल संभालने का तरीका समझाती है।
क्या एजेंट कोई भी टूल देख सकता है?
वह हर समर्थित स्रोत के लिए खास adapters इस्तेमाल करता है, सब टूल्स के लिए एक सामान्य runner नहीं।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
afk
8.5kयह आपके एजेंट को आपके बाहर रहने पर काम जारी रखने देती है, फ़ैसले आपकी वापसी तक रोककर और लौटने पर आपको साफ़ सारांश भेजकर।
ahoy
8.5kयह आपके एजेंट को सत्र में हुई बातों का छोटा सार देने और अभी आपके जवाब की प्रतीक्षा कर रहे फ़ैसलों से गुज़रने में मदद करती है।
ask-user-authority
8.5kयह आपके एजेंट को समीक्षा के सवालों पर खुद फ़ैसला लेने में मदद करती है जब वे साफ़ तौर पर सहमत योजना में फिट हों, और केवल तब पूछती है जब सवाल अस्पष्ट या जोखिम भरा हो।
away-quiet-supervision
8.5kयह away या quiet मोड में काम की निगरानी के सुरक्षा नियम तय करती है, ताकि एजेंट संदेश साफ़ रखे और आपकी ज़रूरत वाले फ़ैसले रोके रखे।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।