yao-daemon
하는 일
이 스킬은 Yao 플랫폼에서 개발 서버처럼 오래 실행되는 백그라운드 서비스를 관리합니다. 작업하는 동안 서버를 계속 실행해 두어야 하는 개발자를 위한 것입니다.
사용하는 경우
- ✓개발 서버를 백그라운드에서 시작하고 싶을 때.
- ✓백그라운드 서비스를 확인하거나 재시작해야 할 때.
- ✓아직 실행 중인 서비스를 멈추고 싶을 때.
스킬 링크
https://github.com/YaoApp/yao/blob/main/tools/skills/yao-daemon/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“개발 서버를 백그라운드에서 시작하고, 준비되면 주소를 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 서비스를 백그라운드에서 시작하고 ID로 추적합니다. 포트가 준비되면 그 포트를 알려 줍니다. 상태 확인, 출력 읽기, 재시작, 중지를 할 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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.
자주 묻는 질문
대화가 막히나요?
아닙니다. 서비스는 항상 백그라운드에서 실행되며, 에이전트는 바로 ID를 받습니다.
재시작하면 ID가 바뀌나요?
아닙니다. 재시작해도 같은 ID를 유지하며 재시작 횟수를 셉니다.
서비스가 출력한 내용은 어떻게 보나요?
에이전트는 별도의 출력 도구로 서비스의 출력을 읽습니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 8.3k
- 순위
- #12472
- 라이선스
- —
- 업데이트
- 2026. 10. 19.
댓글
- …
이 저장소의 다른 스킬
yao-agent
8.3k에이전트가 Yao 호스트의 에이전트를 나열하고, 코드를 찾거나 내려받으며, 변경 사항을 배포하도록 돕습니다.
yao-audio
8.3k에이전트가 회의 녹음처럼 오디오 파일의 음성을 글로 바꾸도록 돕습니다. 언어를 지정하지 않으면 언어를 자동으로 감지합니다.
yao-board
8.3k에이전트가 Yao 플랫폼의 칸반 보드와 작업 상태를 확인하도록 돕습니다. 추측 대신 실제 프로젝트 진행 상황을 보고합니다.
yao-decision
8.3k에이전트가 지원 티켓 분류, 콘텐츠 평가, 긴급 메시지 찾기처럼 신뢰도를 붙인 구조화된 결정을 내리도록 돕습니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.