yao-daemon
What it does
This skill manages long-running background services, such as development servers, on the Yao platform. It is for developers who need a server kept running while they work.
When to use it
- βWhen you want a development server started in the background.
- βWhen a background service needs checking or restarting.
- βWhen you want to stop a service that is still running.
Skill link
https://github.com/YaoApp/yao/blob/main/tools/skills/yao-daemon/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βStart the dev server in the background and tell me its address once it is ready.β
5 new skills a week. 1 minute to read.
How it works
The agent starts the service in the background, tracks it by an ID, and reports its port once that port is ready. It can check status, read output, restart, or stop the service.
Technical content (original SKILL.md)
Original text by the author, straight from 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.
FAQ
Will it block my conversation?
No. Services always run in the background, and the agent gets an ID right away.
Does a restart change the ID?
No. A restart keeps the same ID and counts the restarts.
How do I see what the service printed?
The agent reads its output with a separate output tool.
Details
Original description by the author
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
Popularity
- GitHub stars
- 8.3k
- Ranking position
- #12472
- License
- β
- Updated
- 10/19/2026
Comments
- β¦
More skills from this repository
yao-agent
8.3kHelps your agent list the agents on a Yao host, look up or download agent code, deploy changes, and check the list of model connectors.
yao-audio
8.3kHelps your agent turn speech in audio files, such as meeting recordings, into written text, detecting the language when you do not name it.
yao-board
8.3kHelps your agent check kanban boards and task status on the Yao platform, so it reports real project progress instead of guessing.
yao-decision
8.3kHelps your agent make structured decisions, such as sorting support tickets, rating content, or spotting urgent messages, with confidence levels.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.