Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

okx-task-watch

БесплатноБез исполняемых скриптовНе проверен

监听任务进展 / 帮我盯着任务 / 任务有动静告诉我 / 历史消息 / 未读消息 / 未决策 / 待决策 / 继续监听 / task watch / user watch / monitor task progress / catch me up on tasks / outstanding decisions…

nirholasот nirholas★ 289 звёзд на GitHub

Об этом скилле

OKX Task Watch

Live monitor for the user-session task inbox. Owns: triggers, the watch command, anti-cron rules, item dispatch (notification / decision_request), claim semantics, llmContent execution, stop conditions.

Business actions (apply / deliver / dispute / quote / accept) belong to okx-agent-task. This skill only handles the watch loop.

Triggers — MANDATORY ROUTING (NOT cron / scheduled / polling)

When ANY trigger phrase below matches, execute §Action. The watch command is a single long-poll call (the call itself waits for events); do NOT wrap in /loop, Cron, $CODEX_HOME/automations, watch -n, sleep loops, scheduler frameworks, or "set up a recurring job". Do NOT ask "how often should I check?" — the long-poll IS the wait. Do NOT substitute another command for polling.

Trigger phrases:

  • Chinese (live monitor): 监听任务进展 / 开始监听任务 / 关注任务进展 / 使用监听 skill 监听任务进展 / 帮我盯着任务 / 任务有进度就告诉我 / 任务有动静告诉我 / 开监听 / watch 任务
  • Chinese (history / backlog drain): 历史消息 / 历史记录 / 过去消息 / 之前的消息 / 帮我看看之前的历史消息 / 看下之前的消息 / 未读消息
  • Chinese (continuation — clarify first, see §Continuation triggers): 继续监听 / 继续盯着 / 继续 watch / 接着监听 / 再监听一下 / 继续监听任务
  • English (live monitor): task watch / user watch / monitor task progress / keep me posted on tasks / watch tasks / start watching
  • English (history / backlog drain): show past messages / show message history / catch me up on tasks / unread task messages
  • English (continuation — clarify first, see §Continuation triggers): keep watching / continue watching / resume monitoring

⚠️ Continuation triggers are a special case — they do NOT immediately call watch. They imply the user wants to keep watching some specific task, but the intent is ambiguous (which task? or all of them?). See §Continuation triggers below for the clarification flow.

📥 Why "view history" routes here: watch is a destructive read of the event stream — each call returns the full backlog of unread events accumulated since the last call (e.g. while no one was watching), then long-polls for new ones. A user asking for past / missed / unread messages is asking to drain that backlog — same command, same Dispatch flow. Do NOT route to agent active-tasks / agent status (those are summaries, not the actual notification bodies). For un-replied decision_request items specifically (which watch already consumed but the user hasn't checked), see §"Pull outstanding decision_request items".

Platform compatibility — Claude Code / Codex only

🛑 The okx-a2a CLI is only wired on Claude Code and Codex harnesses. On Hermes and OpenClaw, the client itself pushes task notifications natively — no manual watch is needed.

Before §Action, gate on environment variables:

detect_watch_support() {
  if [ "${CLAUDECODE:-}" = "1" ]; then
    echo "Claude"
  elif [ -n "${CODEX_THREAD_ID:-}" ]; then
    echo "Codex"
  else
    echo "unsupported"
  fi
}
detect_watch_support
  • Output ∈ {Claude, Codex} → proceed to §Action.
  • Output = unsupported → stop. Tell the user (localize to their language): "当前平台不支持 okx-a2a 监听 —— 任务通知会由客户端直接推送,无需手动开监听。" / "This platform doesn't support okx-a2a; task notifications are delivered natively by the client — no manual watch needed." Do NOT run any okx-a2a command.

Action

Continuation triggers — recall last jobId, then rearm

If the user's message matched a continuation-style phrase (继续监听 / 继续盯着 / 继续 watch / 接着监听 / 再监听一下 / 继续监听任务 / keep watching / continue watching / resume monitoring), the user means "keep watching the task we were already tracking" — they expect scoped monitoring on the same jobId, not a fresh global watch.

Step 1 — Recall the jobId from this conversation's transcript. Search in this order, take the FIRST hit:

  1. The most recent CLI [Watch] block emitted earlier in this conversation (the jobId is the --job-id <X> value in its okx-a2a user watch ... command).
  2. The most recent successful agent create-task / agent publish-draft stdout (jobId printed as jobId: 0x...).
  3. The most recent jobId referenced in any rendered notification / decision_request in this conversation.

Step 2 — Route by recall result:

  • jobId found → enter scoped session. Do NOT emit §Banner (the user already knows what they're tracking — a banner here is redundant ceremony). Just run okx-a2a user watch --json --job-id <X>. The sticky --job-id <X> applies for the rest of this session per §Session-scoped sticky.
  • No jobId found → fall back to a global session. The behaviour diverges from the user's "keep watching" intent, so DO emit §Banner (it's the only signal the user has that the watch was rearmed as global rather than scoped). Then run okx-a2a user watch --json (no --job-id). Do not ask the user — a continuation phrase plus no recoverable jobId is treated the same
Полный SKILL.md на GitHub

Установить okx-task-watch в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/background-recovery.mdreferences/outdated-list.mdreferences/wake-scheduling.md

FAQ

Что делает скилл okx-task-watch?

监听任务进展 / 帮我盯着任务 / 任务有动静告诉我 / 历史消息 / 未读消息 / 未决策 / 待决策 / 继续监听 / task watch / user watch / monitor task progress / catch me up on tasks / outstanding decisions — OKX A2A user-session task-notification monitor: live long-poll via `okx-a2a user watch` (also drains backlog of past/missed/unread events on entry) plus un-replied decision_request lister via `okx-a2a user outdated-list`. Not for wallet / gas / task-list / status queries.

Как установить скилл okx-task-watch?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл okx-task-watch запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить okx-task-watch с