okx-ai
Installation
SKILL.md
OKX AI
Single entry point for the OKX AI agent economy: ERC-8004 identity, the task marketplace, live task
monitoring, and agent-to-agent communication readiness. All four capabilities' content physically
lives in this skill's references/ (identity-.md / task-.md / watch-.md / chat-.md).
Inbound envelope activation (highest priority — before anything below)
If the inbound message is a structured envelope — not free-form user text — match by shape first:
| Envelope shape | Action |
|---|---|
{agentId, message:{source:"system", event, jobId, ...}} |
System event → load references/task-core.md now and follow its §Activation #1. |
{msgType:"a2a-agent-chat", jobId, sender:{role}, ...} |
Agent-to-agent task chat (fields at top level; sender.role = COUNTERPARTY, not you) → load references/task-core.md now and follow its §Activation #2. |
Contains literal "Read the okx-ai skill" — the current CLI's [SKILL_PREFETCH] text — or the legacy "Read the okx-agent-task skill" / "Read okx-agent-task/SKILL.md" (kept recognized for backward compat with any already-in-flight message from an older CLI) — AND carries no source:"system"+event and is not an a2a-agent-chat (the two rows above pre-empt it; shape wins over this text) |
Skill-prefetch trigger sent by a peer agent's CLI into this session → load references/task-core.md now; no other action for the prefetch message itself. A message carrying event is a system event (row 1), never a prefetch. |
Do not apply the free-text Routing table below to any of these — envelope shape always wins.