yao-daemon
Ce qu’il fait
Cette compétence gère des services longue durée en arrière-plan, comme des serveurs de développement, sur la plateforme Yao. Elle s'adresse aux développeurs qui ont besoin qu'un serveur reste actif pendant leur travail.
Quand l’utiliser
- ✓Quand vous voulez démarrer un serveur de développement en arrière-plan.
- ✓Quand un service en arrière-plan doit être vérifié ou redémarré.
- ✓Quand vous voulez arrêter un service qui tourne encore.
Lien du skill
https://github.com/YaoApp/yao/blob/main/tools/skills/yao-daemon/SKILL.mdCopiez-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
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Démarre le serveur de développement en arrière-plan et donne-moi son adresse dès qu'il est prêt.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent démarre le service en arrière-plan, le suit grâce à un identifiant et indique son port dès qu'il est prêt. Il peut vérifier son état, lire ses messages, le redémarrer ou l'arrêter.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Daemon Management
Tools
yao_daemon_start— Start a long-running service. Always runs in background; returnsdaemon_idimmediately.yao_daemon_list— List daemons. Supports--statusfilter and--limit/--offsetpagination.yao_daemon_status— Get full details for a daemon (daemon_port,daemon_url,started_at,daemon_restarts).yao_daemon_stop— Stop a running daemon.yao_daemon_restart— Restart a daemon (preserves the same ID, incrementsdaemon_restarts).yao_job_output— Read daemon output (passdaemon_idasjob_id).
Parameters
yao_daemon_start
| Param | Required | Default | Description |
|---|---|---|---|
command |
yes | — | Shell command to execute |
description |
yes | — | Concise 5–10 word summary |
port |
no | auto-detect | Expected listen port; the system verifies the port is ready before reporting it |
args |
no | — | Additional arguments |
working_dir |
no | workspace | Working directory |
yao_daemon_list
| Param | Default | Description |
|---|---|---|
status |
all | Filter: running, stopping, completed, failed, cancelled, port_detecting, all |
limit |
20 | Max items per page |
offset |
0 | Skip first N items |
yao_daemon_restart / yao_daemon_status / yao_daemon_stop
| Param | Required | Description |
|---|---|---|
daemon_id |
yes | The daemon ID |
Response Fields
All responses are JSON. Daemon objects contain:
id, kind, session_id, status, description,
command, command_argv, command_line, pid, pgid, user,
started_at, finished_at, duration_ms, exit_code, signal, detail,
daemon_port, daemon_url, daemon_restarts, seq
daemon_port— The verified listen port (0 if not yet detected or not specified).daemon_url—http://localhost:<port>(empty until port is verified as listening by the daemon's own process tree).daemon_restarts— Number of restarts viayao_daemon_restart.started_at— Unix millisecond timestamp of the most recent start.
Port detection behavior:
Both modes start by returning port_detecting with daemon_port: 0 if the port is not confirmed within the initial ~2s settle window. If the port is confirmed within ~2s, start returns running with daemon_port/daemon_url directly.
--port N(explicit): Verifies port N is listening AND owned by this daemon's process tree. If not confirmed within2s, returns60s).status: "port_detecting". Pollyao_daemon_statusuntil status changes torunning— either withdaemon_port: Nanddaemon_url(port confirmed), or withdaemon_port: 0anddetail: "specified port N not detected within timeout"(- No
--port(auto-detect): Scans the daemon's process tree for any listening TCP port. If not found within2s, returns60s); if a port is found, status changes tostatus: "port_detecting". The scan continues in background (runningwithdaemon_port/daemon_urland a<BackgroundJobReceipt>is delivered. If no port is found after ~60s, status changes torunningwithdaemon_port: 0.
List (paginated)
{ "daemons": [...], "total": 5, "offset": 0, "limit": 20, "has_more": false }
Stop (already terminal)
{ "job": { ... }, "detail": "already in terminal state (cancelled); no action taken" }
Errors
Structured JSON with code and message:
{ "error": { "code": "not_found", "message": "daemon \"dmn_xxx\" not found" } }
Codes: invalid_argument, not_found, internal.
Usage Rules
- Always provide a
description. - Specify
portwhen starting a server — the system confirms the port is actually listening before reportingdaemon_url. - Daemons run indefinitely — use
yao_daemon_stopto terminate. - Use
yao_daemon_restartto restart a crashed or misconfigured daemon without losing its ID. - Monitor output with
yao_job_outputpassing thedaemon_idasjob_id.
BackgroundJobReceipt
When a daemon's port becomes ready, the system delivers a <BackgroundJobReceipt> XML message containing the daemon_url. Use that URL for subsequent HTTP requests to the daemon.
Questions fréquentes
Cela bloquera-t-il ma conversation ?
Non. Les services tournent toujours en arrière-plan, et l'agent reçoit immédiatement un identifiant.
Un redémarrage change-t-il l'identifiant ?
Non. Un redémarrage conserve le même identifiant et compte le nombre de redémarrages.
Comment voir ce que le service a affiché ?
L'agent lit ses messages avec un outil de sortie distinct.
Détails
Description originale de l’auteur
Daemon process management — start, monitor, restart, stop long-running services. ALWAYS invoke this skill when the user asks to start, check, restart, or stop background services, dev servers, or daemon processes.
repo: YaoApp/yao
Popularité
- Étoiles GitHub
- 8.3k
- Position au classement
- #12472
- Licence
- —
- Mis à jour
- 19/10/2026
Commentaires
- …
Autres skills de ce dépôt
yao-agent
8.3kAide votre agent à lister les agents d'un hôte Yao, consulter ou télécharger leur code, déployer des changements et vérifier les connecteurs.
yao-audio
8.3kAide votre agent à transcrire la parole de fichiers audio, comme des enregistrements de réunions, en détectant la langue si vous ne la précisez pas.
yao-board
8.3kAide votre agent à consulter les tableaux kanban et l'état des tâches sur la plateforme Yao, pour qu'il donne l'avancement réel des projets au lieu de deviner.
yao-decision
8.3kAide votre agent à prendre des décisions structurées, comme trier des tickets de support, noter un contenu ou repérer des messages urgents, avec un niveau de confiance.
Skills similaires
openclaw-update
394kAide votre agent à mettre à jour une passerelle OpenClaw existante, en choisissant la méthode adaptée à son installation et en gardant votre session active.
diagnose-gateway
394kAide votre agent à trouver pourquoi votre passerelle OpenClaw échoue, en vérifiant les paramètres, les canaux et les ports sans rien modifier.
crabbox-apps
394kAide votre agent à ouvrir et exécuter une application sur une machine cloud temporaire, puis à afficher sa vue dans le panneau latéral de votre chat.