O

okx-how-to-play

by @okxv
4.4(120)

此技能作为 Onchain OS 的智能入口路由器,旨在帮助新用户快速上手。它通过欢迎横幅和快速启动菜单,将用户引导至正确的技能或工作流程,有效解决用户初次使用时的困惑,显著提升用户体验和技能发现效率。

onboardinguser-guidanceskill-discoveryworkflow-routingentry-routerGitHub
安装方式
npx skills add https://github.com/okx/onchainos-skills --skill okx-how-to-play
compare_arrows

Before / After 效果对比

1
使用前

用户初次接触 Onchain OS 时,常常感到迷茫,不知道从何开始,也难以找到所需的功能或技能,导致学习曲线陡峭,甚至可能放弃使用。

使用后

此技能作为智能入口,能主动识别用户意图,通过清晰的引导和快速菜单,将用户精准路由到所需技能,大幅降低上手难度,提升用户留存率。

SKILL.md

Onchain OS — How to Play (Entry Router)

The first-time / "I don't know what to do" entry point. Routes the user from a blank prompt into a concrete DApp workflow in ≤ 3 turns.

Instruction Priority

Tagged blocks indicate rule severity (higher wins on conflict):

  1. <NEVER> — Absolute prohibition.
  2. <MUST> — Mandatory step. Skipping breaks the flow.
  3. <SHOULD> — Best practice.

Pre-flight Checks

Trigger Criteria

  • "how do I use this / what can I do / what is this / getting started"
  • "I just installed it, now what?"
  • "tutorial / onboarding / first time / where do I start"

Negative examples (use the matching skill instead, not this one):

  • "check my balance" → okx-agentic-wallet / okx-wallet-portfolio
  • "swap 0.1 ETH for USDC" → okx-dex-swap
  • "what's the price of BTC" → okx-dex-market
  • "login" alone → okx-agentic-wallet (but login as a reply to the welcome banner is handled inside this skill — see Login Method Choice)
  • "search for PEPE token" → okx-dex-token

Authoring Pattern — Free Zone vs Fixed Zone

Most user-facing copy in this flow is split into two parts:

  • Free zone — the agent answers the user's actual question or acknowledgement first, in 1–5 sentences, contextually woven. No fixed copy. The user shouldn't feel like they hit a script.
  • Fixed zone — the canonical English template block (welcome banner, login options, API Key heads-up). At runtime:
    • Render all natural-language prose in the user's language.
    • Quoted reply words inside prose (e.g. "login") MUST translate with their sentence. Leaving an English quoted word inside otherwise-translated Chinese / Japanese / etc. prose is a translation bug — the quotes do NOT make the word a literal trigger.
    • Keep literal: emojis, {placeholders}, 1–N, code identifiers / commands / URLs, markdown structure.

This applies to: Welcome Banner, Login Method Choice, and API Key Login Step 1 heads-up.

Status Check

onchainos wallet status
  • loggedIn: false → render the logged-out Welcome Banner.
  • loggedIn: true → render the logged-in Welcome Banner.

Welcome Banner


Login Method Choice

Reached when the user asks to log in (either by replying login to the logged-out banner, or by picking a workflow option from the welcome menu while logged out).

Free zone (1–5 sentences, agent's own words): answer whatever the user actually asked / acknowledged. If they came from a workflow pick, briefly explain that login unlocks that workflow. Then segue naturally into the fixed-zone choice below.

Fixed zone — render the template below in the user's language:

Welcome to Agentic Wallet — the Onchain OS wallet built for agents. Pick a login method:

1. 📧 Email (recommended — 30 seconds)
2. 🔑 API Key (already an OKX developer? Fastest path)

Reply 1 or 2 ↓

If the user replies 1 or "email" → Email Login. If the user replies 2 or "API Key" → API Key Login.

Email Login

Handled by okx-agentic-wallet skill's Authentication section. Steps:

  1. Ask for email → onchainos wallet login <email> --locale <locale>
  2. Ask for OTP code → onchainos wallet verify <code>
  3. On success → Post-login routing below.

API Key Login

Two steps total: (1) one-time heads-up so the user knows what env vars to set and where to get them, (2) run onchainos wallet login once they confirm.

Step 1 — Heads-up (one-shot, fixed zone)

Free zone (1–5 sentences): if the user has any other question, answer it first. Then segue naturally into the heads-up.

Fixed zone — render the template below in the user's language:

You'll need to set three API Key environment variables before logging in:

1. `OKX_API_KEY` — API Key
2. `OKX_SECRET_KEY` — Secret Key
3. `OKX_PASSPHRASE` — Passphrase

You can find these at https://web3.okx.com/onchainos/dev-portal.

**Attention ⚠️:** Do not paste credentials into the chat — follow the dev-portal instructions and set them locally.

Then stop and wait for the user to confirm they're ready (e.g. "done / ok / ready").

Step 2 — Login

Once the user confirms, run:

onchainos wallet login

On success → Post-login routing below. On login failure, surface the error and ask the user to verify their env vars (do NOT re-show the heads-up — they already saw it).

Post-login routing

After login completes successfully:

  • If the user came from picking a workflow pick while logged out: automatically load the corresponding workflow file (~/.onchainos/workflows/<file>.md) and follow it. Do NOT re-render the welcome banner.
  • If the user came from replying login (or equivalent) to the logged-out banner: render the logged-in Welcome Banner so they see their addresses + balance.

Free-form fallback

If the user types something other than a numbered pick or login, answer in the free zone, then route to the matching skill / workflow:

IntentRoute to
meme sniping / pump.fun / new launchesokx-dex-trenches
follow smart money / KOL / whaleokx-dex-signal (or load smart-money-signals.md)
bridge / cross-chain / move tokens between chainsokx-dex-bridge
yield / earn / stake / DeFiokx-defi-invest
is this token safe / approvalsokx-security
swap / buy / sellokx-dex-swap
my holdings / portfoliookx-wallet-portfolio
trading competition / join contest / competition rankokx-growth-competition
login (free-form, not as a banner reply)this skill's Login Method Choice
named DApp + action verb (Aave / Hyperliquid / etc.)okx-dapp-discovery

Acceptance Criteria

  1. Banner variant matches auth stateloggedIn: false renders the logged-out variant (no addresses, with "login" hint); loggedIn: true renders the logged-in variant (addresses + balance, no hint).
  2. Skill picks load without login gate — 🔥 / 💰 load even when logged out; each loaded skill handles its own auth.
  3. Workflow picks gate on login — when logged out, 🐋 / 🆕 / ☕ route through Login Method Choice first, then auto-resume the workflow. User should not have to re-state their pick.
  4. Turn budget — ≤ 3 turns end-to-end for a new user; ≤ 2 turns for a returning user picking a workflow + login.

Notes / Non-obvious

  • Polymarket plugin is not pre-installed. Pick 🔥 routes through okx-dapp-discovery, which handles plugin install + load. Don't try to load web3-polymarket directly.
  • Workflow files are runtime resources — at install time they live at ~/.onchainos/workflows/; in this repo's source they're under workflows/.

用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量3.0K
评分4.4 / 5.0
版本
更新日期2026年7月14日
对比案例1 组

用户评分

4.4(120)
5
37%
4
43%
3
13%
2
5%
1
2%

为此 Skill 评分

0.0

兼容平台

🤖claude-code

时间线

创建2026年6月13日
最后更新2026年7月14日
🎁 Agent 知识卡片
调研问卷