nirholas/three.ws/.agents/skills/okx-ai-guide/SKILL.md
okx-ai-guide
Review okx-ai-guide's use cases, installation, workflow, and original source instructions.
- Source repository stars
- 91
- Declared platforms
- 0
- Static risk flags
- 0
- Last source update
- 2026-08-05
- Source checked
- 2026-08-05
Decision brief
What it does—and where it fits
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.
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/nirholas/three.ws --skill ".agents/skills/okx-ai-guide"Inspect the Agent Skill "okx-ai-guide" from https://github.com/nirholas/three.ws/blob/87e97e04e6c97f570a34dc2e5906bd6911db9312/.agents/skills/okx-ai-guide/SKILL.md at commit 87e97e04e6c97f570a34dc2e5906bd6911db9312. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
Instruction Priority
Tagged blocks indicate rule severity (higher wins on conflict):
— Absolute prohibition.— Mandatory step.— Best practice. - 02
Step 0 — Platform detection
Run the detection function below and read its single-line output. compatible = output is NOT unknown.
Output ∈ {Claude Code, Hermes, OpenClaw, Codex} → compatible → Step 1.Output = unknown → incompatible → Step 3.Run the detection function below and read its single-line output. compatible = output is NOT unknown. - 03
Step 1 — Compatible: login + identity detection (routing gate)
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.
Login check — run onchainos wallet status and read loggedIn.loggedIn: false → user is not logged in. Do not query identity. Hand off to the existing wallet-login flow (../okx-agentic-wallet/SKILL.md §login): prompt login, and on success resume here (re-run wallet status, then do…loggedIn: true → continue to the identity check. - 04
Step 2 — Compatible & unregistered: role selection page
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 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… - 05
Step 3 — Incompatible: intro + install guide
Reached from Step 0 when the platform is incompatible (unknown). No login / identity check applies — OKX.AI cannot run here.
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 {installdocurl}. Do not offer numbered picks; end the turn.
Permission review
Static risk signals and limitations
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 85/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 91 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- nirholas/three.ws
- Skill path
- .agents/skills/okx-ai-guide/SKILL.md
- Commit
- 87e97e04e6c97f570a34dc2e5906bd6911db9312
- License
- NOASSERTION
- Collected
- 2026-08-05
- Default branch
- main
View the original SKILL.md
OKX.AI Guide
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.
Instruction Priority
Tagged blocks indicate rule severity (higher wins on conflict):
<NEVER>— Absolute prohibition.<MUST>— Mandatory step.<SHOULD>— Best practice.
Scope & Boundary
This skill owns: OKX.AI intro + platform detection + login & identity detection (new vs returning user) + routing into registration. It does NOT:
- own the Onchain OS welcome banner — that is
okx-how-to-play. - implement registration — delegated to
okx-agent-identity(see §Step 5). - own the wallet-login flow — Step 1 only checks login via
wallet statusand hands off tookx-agentic-wallet's existing login flow when needed; the registration playbooks also run their own preflight.
Step 0 — Platform detection
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
- Output ∈ {
Claude Code,Hermes,OpenClaw,Codex} → compatible → Step 1. - Output =
unknown→ incompatible → Step 3.
Step 1 — Compatible: login + identity detection (routing gate)
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.
Step 2 — Compatible & unregistered: role selection page
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.
Step 3 — Incompatible: intro + install guide
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.
Step 4 — Compatible & registered: user home
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.
Step 5 — Routing after role pick
Handled in references/unregistered-role-selection.md alongside Step 2 (the 1/2/3 reply → wait-state line + registration playbook).
Step 6 — Registered-home menu routing (from Step 4)
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.
Acceptance Criteria
detect_harnessreturns the right platform for each marker set; everything else →unknown→ incompatible branch (Step 3).- Compatible branch (Step 1) checks login (
wallet status) before identity (agent get-my-agents) — identity is never queried while logged out.- Not logged in → hand off to the existing wallet-login flow, then resume the check.
- Logged in + no identity → role selection page (Step 2); replying
1/2/3renders the right wait-state and loads the right registration playbook (Step 5). - Logged in + ≥1 identity → registered user home (Step 4), filled from the
agent get-my-agentsresult; the home menu (Step 6) routes1+ an Agent ID → that Agent's current tasks viaagent task-in-progress, mapping each task'sstatusto a label (e.g.2submitted = delivered/awaiting acceptance) rather than blanket-labeling everything "in progress" (withcode=3001→ "not your Agent, re-enter"),2→ top ASPs by sales viaagent search --query '按销量从高到低排序'(backend semantic sort-by-sales).
- Incompatible branch (Step 3) shows the three-role intro (no picks) + install heads-up +
{install_doc_url}; ends the turn. OKX.AI 快速开始/OKX.AI quick starttriggers this skill.- Fixed-zone copy renders in the user's language; emojis / numbers / URLs / placeholders stay literal.
- Zero
onchainos agent createcalls in this skill (only read-onlywallet status/agent get-my-agents); zero Rust changes.