yao-daemon
यह क्या करती है
यह स्किल Yao प्लेटफ़ॉर्म पर लंबे समय तक चलने वाली बैकग्राउंड सेवाओं को संभालती है, जैसे डेवलपमेंट सर्वर। यह उन डेवलपर्स के लिए है जिन्हें काम करते समय सर्वर चालू रखना होता है।
कब इस्तेमाल करें
- ✓जब आप चाहते हैं कि डेवलपमेंट सर्वर बैकग्राउंड में शुरू हो जाए।
- ✓जब किसी बैकग्राउंड सेवा को जाँचना या रीस्टार्ट करना हो।
- ✓जब कोई सेवा अब भी चल रही हो और आप उसे रोकना चाहते हों।
Skill का लिंक
https://github.com/YaoApp/yao/blob/main/tools/skills/yao-daemon/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“डेवलपमेंट सर्वर बैकग्राउंड में शुरू कीजिए और तैयार होने पर उसका पता बताइए।”
हर हफ़्ते 5 नई skills, 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
- लाइसेंस
- —
- अपडेट की गई
- 19/10/2026
कमेंट
- …
इस repository की और skills
yao-agent
8.3kयह आपके एजेंट को Yao होस्ट पर एजेंट्स सूचीबद्ध करने, उनका कोड खोजने या डाउनलोड करने, बदलाव तैनात करने और model connectors की सूची जांचने में मदद करती है।
yao-audio
8.3kयह आपके एजेंट को मीटिंग रिकॉर्डिंग जैसी ऑडियो फ़ाइलों की बातचीत को लिखित टेक्स्ट में बदलने में मदद करती है।
yao-board
8.3kयह आपके एजेंट को Yao प्लेटफ़ॉर्म पर कानबन बोर्ड और टास्क की स्थिति जाँचने में मदद करती है, ताकि वह अंदाज़ा नहीं, असली प्रगति बताए।
yao-decision
8.3kयह आपके एजेंट को सपोर्ट टिकट छाँटने, कंटेंट रेट करने या ज़रूरी संदेश पहचानने जैसे फ़ैसले, कॉन्फ़िडेंस स्तर के साथ, लेने में मदद करती है।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।