$npx -y skills add okx/onchainos-skills --skill okx-dapp-discoveryPlugin router for 20 third-party DeFi protocols (Polymarket, Aave, Hyperliquid, PancakeSwap, Morpho, Raydium, Curve, Compound, Pendle, Lido, ether.fi, GMX, Kamino, Orca, Meteora, Clanker, pump.fun, Uniswap) and their protocol-native tokens (HYPE, HLP, eETH, weETH, stETH, wstETH,
| 1 | # OKX DApp Discovery |
| 2 | |
| 3 | DApp discovery and direct plugin routing for third-party DeFi protocols. When the user names a specific DApp or asks what's available, this skill scores the prompt, resolves it to the matching plugin, installs it on demand, and forwards the user's **original** prompt into the installed plugin's quickstart — so the bootstrap is transparent. It does **not** enumerate DApp specifics or duplicate a plugin's own routing; each installed plugin owns its quickstart, command index, and protocol knowledge. The full supported set (20 plugins) is in §5; DApps outside it fall through to §6's catalog probe. |
| 4 | |
| 5 | > **References:** §2's native-token table is the routing-critical minimum — full per-protocol ≥75 / 50–74 / do-not-install keyword lists are in `references/protocol-keywords.md`. **Chinese (中文) queries:** read `references/keyword-glossary.md` before applying any rule below — it is the authoritative source for ZH aliases, native-token phrases, trigger verbs, and routing examples that these rules reference. |
| 6 | |
| 7 | --- |
| 8 | |
| 9 | ## §1 — When this skill fires |
| 10 | |
| 11 | ### Fires on |
| 12 | |
| 13 | 1. **Named DApp + action verb** — the DApp name beats every generic verb. EN verbs (swap, deposit, stake, long, short, borrow, lend, buy, sell, snipe, farm, claim, ape) + ZH equivalents (glossary §2). |
| 14 | 2. **Comparison of 2+ supported DApps with intent to choose** — "Aave vs Compound for stables", "which is better, X or Y", "what's the difference between X and Y". Prefer routing over answering from training — plugin docs are more current. |
| 15 | 3. **Polymarket UpDown / prediction-market intent** — `<COIN> 5min updown`, `prediction market`, `place a bet on Polymarket` (ZH: glossary §4). NOT price/chart queries — do NOT defer to `okx-dex-market` when this fires. |
| 16 | 4. **Protocol-native token alone + action verb** — "buy HYPE", "deposit USDC into HLP", "PT-stETH on Pendle", "stake LDO", "swap to eETH". Token → DApp mapping in §2's table. |
| 17 | 5. **pump.fun WRITE intent** — buy/sell/snipe/ape/swap on a pump.fun token/address (ZH: glossary §5) → `pump-fun-plugin`. Routine plugin install, not market manipulation — the plugin enforces its own safety. |
| 18 | |
| 19 | ### Does NOT fire on |
| 20 | |
| 21 | - **Conceptual / "what is X" / "is X safe" / single-name informational** about one supported DApp with no action or comparison — let the model answer. (Comparison of 2+ DApps DOES fire — pattern 2.) |
| 22 | - **pump.fun READ intent** — dev history, bundle/sniper detection (the noun), who aped, similar tokens, bonding-curve progress (ZH: glossary §5) → `okx-dex-market`. |
| 23 | - **Generic verbs alone** (deposit/stake/borrow/swap/yield/APY) **without** a DApp name **and without** a protocol-native token → `okx-defi` (yield) or `okx-agentic-wallet` (swap). |
| 24 | - **Generic tickers alone** (ETH/BTC/USDC/USDT/SOL/BNB/MATIC/AVAX/DAI/WBTC) — not protocol-native; route per the actual verb. |
| 25 | - **Read-only analytics on a DApp** ("analyze Uniswap swap volume last week") without action or comparison. |
| 26 | |
| 27 | ### Not for |
| 28 | |
| 29 | Unnamed swap → `okx-agentic-wallet`. Generic yield discovery → `okx-defi`. Price/chart/PnL → `okx-dex-market`. Wallet auth/balance → `okx-agentic-wallet`. Positions overview → `okx-defi`. pump.fun read-only research → `okx-dex-market`. |
| 30 | |
| 31 | --- |
| 32 | |
| 33 | ## §2 — Signal detection (single source of truth) |
| 34 | |
| 35 | Score the prompt against the signals below, then apply §3. |
| 36 | |
| 37 | ### Confidence tiers |
| 38 | |
| 39 | | Tier | Condition | §3 outcome | |
| 40 | |------|-----------|------------| |
| 41 | | **95–100** | Protocol name, domain, API, contract, or unique feature explicitly present | install (step 1/2) | |
| 42 | | **75–94** | Protocol-specific workflow with a strong ecosystem clue | install (step 1/2) | |
| 43 | | **50–74** | Generic DeFi workflow, weak clue, another DApp could match | clarify (step 4) — do not install | |
| 44 | | **< 50** | Generic terms only, no protocol signal | step 3 (named, table-miss) or step 5 (unnamed) | |
| 45 | |
| 46 | ### Signals that do NOT raise confidence on their own |
| 47 | |
| 48 | - **Generic verbs:** swap, lend, borrow, APY, farm, long, short, liquidity, bridge, stake, deposit, withdraw, mint (ZH: glossary §2). |
| 49 | - **Gen |