okx-task-watch
БесплатноБез исполняемых скриптовНе проверен监听任务进展 / 帮我盯着任务 / 任务有动静告诉我 / 历史消息 / 未读消息 / 未决策 / 待决策 / 继续监听 / task watch / user watch / monitor task progress / catch me up on tasks / outstanding decisions…
от 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-replieddecision_requestitems specifically (whichwatchalready consumed but the user hasn'tchecked), see §"Pull outstandingdecision_requestitems".
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 supportokx-a2a; task notifications are delivered natively by the client — no manual watch needed." Do NOT run anyokx-a2acommand.
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:
- The most recent CLI
[Watch]block emitted earlier in this conversation (the jobId is the--job-id <X>value in itsokx-a2a user watch ...command). - The most recent successful
agent create-task/agent publish-draftstdout (jobId printed asjobId: 0x...). - The most recent jobId referenced in any rendered
notification/decision_requestin 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
Установить okx-task-watch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub