/three-ws-core:okx-ai-guidefrom three-ws-core
Introduces OKX.AI (the Agent economic system), detects runtime platform compatibility, and routes users into identity registration flows. Activates on any mention of OKX.AI or its variants.
Ships in three-ws-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The OKX.AI onboarding entry. Introduces OKX.AI (the Agent economic system), detects whether the current runtime can run OKX.AI, and routes the user into one of the three identity-registration flows — or, on an incompatible platform, tells them how to get a compatible one.
Tagged blocks indicate rule severity (higher wins on conflict):
<NEVER> — Absolute prohibition.<MUST> — Mandatory step.<SHOULD> — Best practice.This skill owns: OKX.AI intro + platform detection + login & identity detection (new vs returning user) + routing into registration. It does NOT:
okx-how-to-play.okx-agent-identity (see §Step 5).wallet status and hands off to okx-agentic-wallet's existing login flow when needed; the registration playbooks also run their own preflight.detect_harness() {
if [ "${CLAUDECODE:-}" = "1" ]; then
echo "Claude Code"
elif [ -n "${HERMES_INTERACTIVE:-}" ] || [ -n "${HERMES_SESSION_SOURCE:-}" ] \
|| [ -n "${HERMES_YOLO_MODE:-}" ] || [ -n "${HERMES_QUIET:-}" ]; then
echo "Hermes"
elif [ -n "${OPENCLAW_CLI:-}" ] || [ -n "${OPENCLAW_SHELL:-}" ]; then
echo "OpenClaw"
elif [ -n "${CODEX_THREAD_ID:-}" ] || [ -n "${CODEX_CI:-}" ]; then
echo "Codex"
else
echo "unknown"
fi
}
detect_harness
Claude Code, Hermes, OpenClaw, Codex} → compatible → Step 1.unknown → incompatible → Step 3.Reached only when Step 0 is compatible. This step decides which page to show — by checking login first, identity second. The order is mandatory: agent get-my-agents requires a logged-in session, so never query identity before login is confirmed.
The branch is decided solely by whether agent get-my-agents returns any agent — never show the role page (Step 2) to a user who already has an identity, nor the registered home (Step 4) to a user with none.
Reached from Step 1 when the user is logged in but has no OKX.AI identity. Render the role-selection page (Variant A) and route the 1/2/3 reply per references/unregistered-role-selection.md (contains Step 2 page + Step 5 routing). Load it when this branch is hit.
Reached from Step 0 when the platform is incompatible (unknown). No login / identity check applies — OKX.AI cannot run here.
Free zone (1–5 sentences): answer the user's OKX.AI question, then segue.
Fixed zone: render Variant B from references/intro.md in the user's language; substitute {install_doc_url}. Do not offer numbered picks; end the turn.
Reached from Step 1 when the user is logged in and already has ≥1 OKX.AI identity. Render the registered-user home (Variant C, filled field-exact from the agent get-my-agents result) and handle its menu replies (Step 6: 1 + Agent ID → that Agent's current tasks; 2 → top ASPs; Register a <role> → register a missing role) per references/registered-home.md. Load it when this branch is hit.
Handled in references/unregistered-role-selection.md alongside Step 2 (the 1/2/3 reply → wait-state line + registration playbook).
Handled in references/registered-home.md — covers 1 + Agent ID → agent task-in-progress with status mapping, 2 → top ASPs by sales via agent search --query '按销量从高到低排序', and "Register a <role> identity" reroutes.
detect_harness returns the right platform for each marker set; everything else → unknown → incompatible branch (Step 3).wallet status) before identity (agent get-my-agents) — identity is never queried while logged out.
1 / 2 / 3 renders the right wait-state and loads the right registration playbook (Step 5).agent get-my-agents result; the home menu (Step 6) routes 1 + an Agent ID → that Agent's current tasks via agent task-in-progress, mapping each task's status to a label (e.g. 2 submitted = delivered/awaiting acceptance) rather than blanket-labeling everything "in progress" (with code=3001 → "not your Agent, re-enter"), 2 → top ASPs by sales via agent search --query '按销量从高到低排序' (backend semantic sort-by-sales).{install_doc_url}; ends the turn.OKX.AI 快速开始 / OKX.AI quick start triggers this skill.onchainos agent create calls in this skill (only read-only wallet status / agent get-my-agents); zero Rust changes.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nirholas/three.ws --plugin three-ws-core49 skills in this plugin
/anatomyExplain how a machine works as an interactive isometric 3D cutaway. Use when the user asks how an engine, turbine, reactor, pump, clock, motor or any mechanism works and wants to see it, or types "/anatomy <machine>", for example "/anatomy explain how a big airliner turbofan engine like the A380's makes thrust, interactive". Produces a shareable three.ws link with real moving parts, shader effects (fire, exhaust, plasma, water, steam, sparks, arcs), flows, a section cut, an exploded view and a guided tour./authenticate-walletSign in to the wallet. Use when you or the user want to log in, sign in, connect, or set up the wallet, or when any wallet operation fails with authentication or "not signed in" errors. This skill is a prerequisite before sending, trading, or funding./Other plugins' skills for the same job