Aller au contenu
Skillpedia
Déploiement et cloud (DevOps)8.5k · #12439

process-event-sources

Ce qu’il fait

Ce skill explique comment Firstmate surveille des processus externes de longue durée sans bloquer la conversation. Il s'adresse aux personnes qui ont besoin de résultats issus de tâches lentes, comme des tableaux de relecture ou des contrôles externes.

Quand l’utiliser

  • ✓Quand un processus externe va durer longtemps et que vous voulez que l'agent continue de travailler entre-temps.
  • ✓Lorsqu'un signal de réveil indique qu'une source surveillée a terminé.
  • ✓Quand une source surveillée est signalée comme bloquée ou n'a pas réussi à démarrer.

Lien du skill

https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/process-event-sources/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/process-event-sources/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Surveille ce long tableau de relecture et réveille-moi lorsqu'il contient des retours auxquels je dois répondre.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent enregistre le processus externe comme source et continue de travailler. Lorsque le processus se termine, un message de réveil ramène le résultat dans la conversation.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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.

Questions fréquentes

L'agent attend-il pendant que le processus tourne ?

Non. Il continue de travailler, et un message de réveil arrive lorsque le processus se termine.

Que signifie bloqué ?

Cela signifie qu'une source surveillée a perdu son lien et doit être vérifiée, ce que le skill explique comment traiter.

L'agent peut-il surveiller n'importe quel outil ?

Il utilise des adaptateurs spécifiques pour chaque source prise en charge, et non un moteur général pour tous les outils.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
8.5k
Position au classement
#12439
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires