Skills

Yao Daemon

Daemon process management, start, monitor, restart, stop long-running services.

Install

npx skills add YaoApp/yao --skill yao-daemon -g -a claude-code -y
Repository
YaoApp/yao8.2k
Category
Engineering
Updated
17d ago
License
See repository
Context cost
Lightabout 1,061 tokens
Runs scripts
No, instructions only

What it does

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.

Daemon Management

Tools

  • yao_daemon_start, Start a long-running service. Always runs in background; returns daemon_id immediately.
  • yao_daemon_list, List daemons. Supports --status filter and --limit/--offset pagination.
  • 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, increments daemon_restarts).
  • yao_job_output, Read daemon output (pass daemon_id as job_id).

Parameters

yao_daemon_start

ParamRequiredDefaultDescription
commandyes,Shell command to execute
descriptionyes,Concise 5, 10 word summary
portnoauto-detectExpected listen port; the system verifies the port is ready before reporting it
argsno,Additional arguments
working_dirnoworkspaceWorking directory

yao_daemon_list

ParamDefaultDescription
statusallFilter: running, stopping, completed, failed, cancelled, port_detecting, all
limit20Max items per page
offset0Skip first N items

yao_daemon_restart / yao_daemon_status / yao_daemon_stop

ParamRequiredDescription
daemon_idyesThe 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
Read the whole SKILL.md on GitHub

More in Engineering