用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/prime-radiant-inc/toil --skill watch-run命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | watch-run |
| description | Use when monitoring an in-progress toil run, checking if a run is stuck, or observing live workflow execution |
Live monitoring of in-progress toil workflow runs.
Resolve the run to monitor:
/ui/runs/{id} or /runs/{id} pathGET /runs returns []string of IDs only. Fetch GET /runs/{id} for recent IDs and check for status: "running". Do NOT fetch all runs — work backwards from the end of the list and stop when you find active ones.Base URL: TOIL_URL env var, default http://localhost:8080.
GET /runs/{id} — confirm status is running or paused, review current node statusesGET /runs/{id}/events — baseline timeline (JSONL, one JSON object per line, NOT a JSON array). Parse line-by-line. Establish what has happened so far.GET /runs/{id}/events/stream for real-time events (Server-Sent Events, 15s keepalive ping). Fall back to polling GET /runs/{id} every ~30s if SSE isn't practical in your environment.Focus on active runs first. Do not scan the full run history. Check GET /health for a count of active runs, then find and monitor those.
Flag these conditions to the operator:
no_progress_count >3: concerning — agent may be spinning. >5: likely stuck. Check the node's message and error fields for clues.running >10 minutes with no new node_output events: may be hungpaused with unresolved approvals: check GET /approvals for pending itemsGET /runs/{id}/compound-graph for child run statusSuggest these to the operator — always confirm before executing:
POST /runs/{id}/resumePOST /runs/{id}/retrigger (body: {"node_id": "..."})POST /runs/{id}/cancelPOST /approvals/{id}/resolve (body: {"decision": "...", "message": "..."})If a monitored run transitions to failed, suggest switching to debug-run for post-mortem investigation.
@resources/toil-api.md — endpoint reference@resources/data-model.md — run/node states, event types