- name
SKILL.md
Tệp skill vẫn nằm trong kho mã của nhà phát hành.
Dán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add YaoApp/yao --skill yao-job -a cursor -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add YaoApp/yao --skill yao-job -a claude-code -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add YaoApp/yao --skill yao-job -a codex -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add YaoApp/yao --skill yao-job -a grok -yGửi tin nhắn đã sao chép trong cuộc trò chuyện Grok Bot. Bot sẽ lấy tệp SKILL.md này từ GitHub và thêm vào bộ skill mà mọi Bot của bạn dùng chung.
Install this skill: https://github.com/YaoApp/yao/tree/HEAD/tools/skills/yao-jobTừ nhà phát hành
yao_job_start — Start a command. background false (default) blocks until done and returns output_tail; background true returns job_id immediately.yao_job_list — List jobs. Supports --status filter and --limit/--offset pagination.yao_job_get — Get full details for a job (or daemon by ID).yao_job_output — Read process output (works for both job and daemon IDs).yao_job_wait — Block until a background job finishes or timeout expires. Jobs only, not daemons.yao_job_stop — Kill a running job.Output read behavior:
offset in a single read (no limit parameter).lossy=true in the response.size = total bytes the process has produced; offset = earliest readable byte position.size=20000000, offset≈10000000, lossy=true — the first ~10 MB was discarded.All responses are JSON. Job objects contain:
id, kind, session_id, status, description, background,
command, command_argv, command_line, pid, pgid, user,
started_at, finished_at, duration_ms, exit_code, signal, detail, seq
Returns the job object plus output_tail (≤4KB tail of stdout+stderr):
{ "id": "job_...", "status": "completed", "exit_code": 0, ..., "output_tail": "hello world\n" }
{ "jobs": [...], "total": 130, "offset": 0, "limit": 20, "has_more": true }
{ "job": { ... }, "timed_out": false }
{ "job": { ... }, "detail": "already in terminal state (failed); no action taken" }
Structured JSON with code and message:
{ "error": { "code": "invalid_argument", "message": "job_id is required" } }
Codes: invalid_argument, not_found, internal.
background true (not bare --background) for commands expected to run longer than 30 seconds.description.yao_job_output to check progress.yao_job_wait to block until a background job completes rather than polling.When a background job finishes, the system delivers a <BackgroundJobReceipt> XML message. Upon receiving it:
status, exit_code, cause, and output_tail.status=failed, investigate and take corrective action.status=completed, acknowledge and continue the task.Background job management — start, monitor, wait, stop long-running commands. ALWAYS invoke this skill when the user asks to run background tasks, check job status, read job output, or manage long-run
---name: yao-jobdescription: Background job management — start, monitor, wait, stop long-running commands. ALWAYS invoke this skill when…---# tools/skills/yao-job/SKILL.mdTổng quan
Background job management — start, monitor, wait, stop long-running commands. ALWAYS invoke this skill when the user asks to run background tasks, check job status, read job output, or manage long-running commands.
Câu hỏi thường gặp
Tải tools/skills/yao-job/SKILL.md từ nhà phát hành, hoặc sao chép đường dẫn và mở kho mã. PlugMCP chỉ liệt kê skill và không lưu trữ tệp này.
Nhà phát hành duy trì nó tại https://github.com/YaoApp/yao.
Claude, Cursor, Codex và Grok Build có thể đọc tệp SKILL.md mà bạn thêm từ kho mã của nhà phát hành. Grok Bot cài đặt skill khi bạn gửi liên kết thư mục GitHub của skill trong cuộc trò chuyện.