yao-daemon
O que ela faz
Esta skill gerencia serviços de segundo plano de longa duração, como servidores de desenvolvimento, na plataforma Yao. Ela serve para desenvolvedores que precisam de um servidor rodando enquanto trabalham.
Quando usar
- ✓Quando você quer iniciar um servidor de desenvolvimento em segundo plano.
- ✓Quando um serviço em segundo plano precisa ser verificado ou reiniciado.
- ✓Quando você quer parar um serviço que ainda está rodando.
Link da skill
https://github.com/YaoApp/yao/blob/main/tools/skills/yao-daemon/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Inicie o servidor de desenvolvimento em segundo plano e me diga o endereço dele assim que estiver pronto.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente inicia o serviço em segundo plano, acompanha-o por um ID e informa a porta assim que ela fica pronta. Ele pode verificar o status, ler a saída, reiniciar ou parar o serviço.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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.
Perguntas frequentes
Isso vai bloquear minha conversa?
Não. Os serviços sempre rodam em segundo plano, e o agente recebe um ID imediatamente.
Reiniciar muda o ID?
Não. Reiniciar mantém o mesmo ID e conta quantas reinicializações houve.
Como vejo o que o serviço imprimiu?
O agente lê a saída com uma ferramenta de saída separada.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 8,3 mil
- Posição no ranking
- #12472
- Licença
- —
- Atualizada em
- 19/10/2026
Comentários
- …
Mais skills deste repositório
yao-agent
8,3 milAjuda seu agente a listar os agentes de um host Yao, consultar ou baixar o código de agentes, implantar mudanças e verificar a lista de conectores de modelos.
yao-audio
8,3 milAjuda seu agente a transformar fala em arquivos de áudio, como gravações de reuniões, em texto escrito, detectando o idioma quando você não o informa.
yao-board
8,3 milAjuda seu agente a consultar quadros kanban e o status das tarefas na plataforma Yao, para que ele informe o progresso real do projeto em vez de adivinhar.
yao-decision
8,3 milAjuda seu agente a tomar decisões estruturadas, como classificar chamados de suporte, avaliar conteúdos ou identificar mensagens urgentes, com níveis de confiança.
Skills parecidas
openclaw-update
394 milAjuda seu agente a atualizar um OpenClaw Gateway existente, escolhendo o método que combina com a instalação e mantendo sua sessão funcionando.
diagnose-gateway
394 milAjuda seu agente a descobrir por que seu OpenClaw Gateway está falhando, verificando configurações, canais e portas sem alterar nada.
crabbox-apps
394 milAjuda seu agente a abrir e executar um app em uma máquina temporária na nuvem e depois mostrar a visualização dele no painel lateral do seu chat.