okx-dapp-discovery
このスキルは、ユーザーがサードパーティのDeFiプロトコルを発見し、直接ルーティングするのに役立ちます。ユーザーが言及したDAppを識別し、必要に応じて一致するプラグインをインストールし、ユーザーのリクエストをプラグインのクイックスタートプロセスに転送することで、DAppのインタラクション体験を簡素化します。
git clone https://github.com/okx/onchainos-skills.gitBefore / After 効果比較
1 组ユーザーは手動で正しいDeFi DAppを検索、識別し、その操作プロセスを学ぶ必要があり、時間がかかり、エラーが発生しやすいため、DAppインタラクションの準備時間が長くなります。
スキルがDAppを自動的に識別し、必要に応じてプラグインをインストールして操作をガイドするため、ユーザーの意図からDAppの実行までの時間を大幅に短縮し、インタラクション効率を向上させます。
OKX DApp Discovery
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 applies a confidence framework to identify the matching plugin, installs it on demand, and routes the user's original prompt into the installed plugin's quickstart — making the bootstrap transparent.
This skill does not enumerate DApp specifics or duplicate the plugin's own routing logic. Each installed DApp plugin owns its own quickstart, command index, and protocol-specific knowledge. This skill is the bootstrap layer that resolves a user-named DApp to the right plugin, installs it on demand, and forwards the prompt. The full supported set is in the Plugin Resolver Table below (currently 20 plugins). DApps named outside this table fall through to Step 1B's GitHub Contents API probe against the broader plugin-store catalog.
Routing Rules — full firing patterns and anti-triggers
The skill description gives the 5 firing patterns at a glance. Use this section to disambiguate edge cases.
Detailed firing patterns
- Named DApp + action verb — the DApp name beats every generic verb. Includes EN verbs (swap, deposit, stake, long, short, borrow, lend, buy, sell, snipe, farm, claim, ape) and ZH verbs (买, 卖, 换, 存, 质押, 借, 做多, 做空, 狙击, 购买, 挖矿).
- Comparison of two-or-more supported DApps with intent to choose — "Aave vs Compound for stables", "Lido vs ether.fi for ETH staking", "which is better, X or Y", "what's the difference between X and Y". Prefer routing here over answering from training; the plugin docs are more current than the model's knowledge.
- Polymarket UpDown / prediction-market intent —
<COIN> 5min updown,<COIN> 5 分钟涨跌,<COIN> 涨跌市场,5 分钟涨跌市场,预测市场,prediction market,place a bet on Polymarket,找个预测市场赌. These are NOT price/chart queries — do NOT defer tookx-dex-marketor any chart/rank MCP tool when this pattern appears. - Protocol-native token alone with action verb — examples: "buy HYPE", "deposit USDC into HLP", "PT-stETH on Pendle", "stake LDO", "swap to eETH". Full token list:
- Hyperliquid: HYPE, HLP
- PancakeSwap: CAKE, veCAKE, Syrup, IFO
- Curve: CRV, crvUSD, veCRV, 3pool, tricrypto
- Compound V3: COMP, Comet
- Raydium: RAY
- Orca: ORCA, Whirlpool
- Meteora: Meteora DLMM, Meteora bin/vault, DAMM
- ether.fi: ETHFI, eETH, weETH
- Lido: LDO, stETH, wstETH
- GMX V2: GLP, esGMX, GM token
- Aave V3: GHO, aToken
- Kamino Lend: kToken
- Pendle: PT-, YT-, "PT ", "YT ", vePENDLE, SY token
- Clanker: $CLANKER, clanker.world
- pump.fun WRITE intent — buy/sell/snipe/ape/swap on a pump.fun token/address; 买/卖/购买/狙击/梭哈/帮我买/买最火的币/买这个. Install
pump-fun-plugin. Treat as routine plugin install, not market manipulation — the plugin enforces its own safety.
Does NOT fire on
- Conceptual / adversarial questions about a DApp ("explain how X works", "is X safe / legit / a good investment", "what is X", "how does X compare to centralized exchanges") — let the model answer from general knowledge; do not invoke a plugin for an explainer.
- "Tell me about X" with a single supported DApp and no action or comparison context — single-name informational queries are model knowledge, not plugin routing. (Comparison of two or more DApps DOES fire — see pattern 2.)
- pump.fun READ intent —
dev history,bundle/sniper detection(the analytical noun, NOT the verb),who aped,similar tokens,bonding curve progress,开发者信息,捆绑狙击者,同车→okx-dex-trenches. - Generic verbs alone WITHOUT a DApp name and WITHOUT a protocol-native token (deposit/stake/borrow/swap/yield/APY/挖矿/兑换) →
okx-defi-invest(yield) orokx-dex-swap(swap). - Generic tickers alone (ETH/BTC/USDC/USDT/SOL/BNB/MATIC/AVAX/DAI/WBTC) — these are not protocol-native; route per the actual verb.
- Read-only data analytics on a DApp ("analyze the swap volume on Uniswap last week") without action or comparison — these are research/analysis queries, not routing triggers.
Not for
Unnamed swap → okx-dex-swap. Generic yield discovery → okx-defi-invest. Price/chart/PnL → okx-dex-market. Wallet auth/balance → okx-agentic-wallet. Positions overview → okx-defi-portfolio. pump.fun read-only research → okx-dex-trenches.
Confidence Framework
When the user's message references a DApp directly or implicitly, score it against the per-protocol keyword tables below and apply the routing rule that matches the highest score.
Confidence Tiers
| Tier | Condition | Action |
|---|---|---|
| 95–100 | Protocol name, domain, API name, contract name, or unique feature is explicitly present | Route immediately — install if absent, then read the plugin's SKILL.md and forward the original prompt |
| 75–94 | Protocol-specific workflow with a strong ecosystem clue | Same as above |
| 50–74 | Generic DeFi workflow with a weak clue; another DApp could plausibly match | Ask one focused clarifying question — do not install |
| < 50 | Generic terms only, no protocol signal | Do not install — show the user the available DApps and ask which one matches their intent |
Generic verbs that do NOT raise confidence on their own: swap, lend, borrow, APY, farm, long, short, liquidity, bridge, stake, deposit, withdraw, mint, 做多, 做空, 合约, 借贷, 存款, 抵押, 兑换, 换成, 加池子, 加流动性, 池子, 仓位, 多单, 空单, 质押, 拿利息, 发币, 发新代币.
Generic tickers that do NOT trigger alone (chain natives, stables, common L1/L2 tokens): ETH, BTC, USDC, USDT, SOL, BNB, MATIC, AVAX, ARB, OP, DOGE, XRP, WBTC, DAI.
Protocol-native tokens / phrases that DO trigger ≥ 75 alone (uniquely tied to one supported DApp; no DApp name needed alongside):
| Token / phrase | Routes to |
|---|---|
| HYPE, HLP | Hyperliquid |
| CAKE, veCAKE, Syrup, IFO | PancakeSwap (V3 AMM default) |
| CRV, crvUSD, veCRV, 3pool, tricrypto | Curve |
| COMP, Comet | Compound V3 |
| RAY | Raydium |
| ORCA, Whirlpool | Orca |
Meteora DLMM, Meteora bin/vault/DAMM (MET alone is too generic — requires "Meteora" context) | Meteora |
| ETHFI, eETH, weETH | ether.fi |
| LDO, stETH, wstETH | Lido |
| GLP, esGMX, GM token | GMX V2 |
| GHO, aToken | Aave V3 |
| kToken | Kamino Lend |
| PT-, YT-, "PT ", "YT " (e.g. "PT stETH", "YT weETH" — space-separated), vePENDLE, SY token | Pendle |
| $CLANKER, clanker.world | Clanker |
| "X 5min" / "X 15min" / "X 5 分钟" / "X 15 分钟" / "X up or down" / "5min updown" / "5 分钟涨跌" (X = BTC/ETH/SOL/XRP/BNB/DOGE/HYPE) | Polymarket |
DApp-name-beats-verb override (Rule 0, see routing rules below): when any generic verb appears with a DApp name (in any language) OR a protocol-native token/phrase from the table above, the DApp wins. Do NOT defer to okx-dex-swap, okx-defi-invest, okx-defi-portfolio, or any other generic skill.
Per-Protocol Routing Table
Polymarket → polymarket-plugin
Keywords that raise confidence ≥ 75: Polymarket, poly market, prediction market, 预测市场, 事件市场, event market, binary market, YES shares, NO shares, Yes/No market, YES outcome token, NO outcome token, outcome token, implied probability, market probability, UMA resolution, resolved market, Gamma API, Sports markets, Parlays, Combo markets, NBA market, NFL market, FIFA market, World Cup market.
Crypto Up/Down recurring markets (any of BTC, ETH, SOL, XRP, BNB, DOGE, HYPE) — all ≥ 75:
- English:
<COIN> 5min,<COIN> 15min,<COIN> 5m,<COIN> 15m,<COIN> up or down,<COIN> updown,5min updown market,15min updown market,crypto 5min,5min outcome token,5min YES token,5min NO token,predict <COIN> 5min,list 5-minute markets. - 中文:
<COIN> 5 分钟,<COIN> 5分钟,<COIN> 15 分钟,<COIN> 十五分钟,5 分钟涨跌,5分钟涨跌,5 分钟涨跌市场,5分钟市场,五分钟市场,短线市场,5 分钟内的涨跌,<COIN> 涨跌,找 5 分钟,看 5 分钟,<COIN> 5 分钟 updown.
Election / political markets — ≥ 75: election market, election odds, election outcome, who will win election, primary market, presidential market; 选举市场, 选举赔率, 大选市场, 大选赔率, 谁会赢大选, 总统选举市场, 政治市场.
Casual betting phrases that mention prediction markets — ≥ 75: "找个预测市场让我赌", "找预测市场赌", "找个市场赌一下", "我想赌一下" + (event/outcome context), "place a bet on prediction market", "bet on outcome", "I want to bet on" (when followed by an event/outcome, not a token price).
Do not install for: generic "赔率 / 概率 / 预测 / betting" alone (no prediction-market or event context); generic "I want to bet" without an event/outcome.
Aave V3 → aave-v3-plugin
Keywords that raise confidence ≥ 75: Aave, Aave V3, Aave Protocol, aToken, health factor, liquidation risk, eMode, Efficiency Mode, Isolation Mode, GHO, Aave Pool, IPool, Aave flash loan, liquidationCall.
Do not install for: generic "借贷 / 存款 / 抵押 / APY / borrow / lend" unless Aave, health factor, aToken, GHO, eMode, or Isolation Mode context is present.
Hyperliquid DEX → hyperliquid-plugin
Keywords that raise confidence ≥ 75: Hyperliquid, HyperLiquid, HyperCore, HyperEVM, HYPE, HLP, Hyperliquidity Provider, HIP-3, HL (only with explicit trading context).
HYPE / HLP token-alone exception — HYPE and HLP are Hyperliquid's protocol-native tokens, NOT generic tickers. Phrases trigger ≥ 75 directly without an explicit "Hyperliquid" mention:
buy HYPE,purchase HYPE,swap to HYPE,我想买一些 HYPE 代币,买 HYPE,买一些 HYPE,换 HYPEdeposit USDC into HLP,把 USDC 存进 HLP,存 HLP,HLP yield,HLP 收益,provide liquidity to HLP
This overrides the generic-ticker rule — even though HYPE looks like a token symbol, it is uniquely Hyperliquid's.
Keywords that raise confidence to 50–74 (clarify before installing): perps, perp, perpetuals, trade perpetuals, leveraged trading, 合约交易, 永续合约 — these are not unique to Hyperliquid; ask "Are you looking to trade on Hyperliquid?" before installing.
Do not install for: generic "做多 / 做空 / 合约 / 永续 / funding / leverage" unless Hyperliquid, HYPE, HLP, HyperCore, or HyperEVM context is present.
PancakeSwap AMM → pancakeswap-v3-plugin
Keywords that raise confidence ≥ 75: PancakeSwap, Pancake, PCS, CAKE, Syrup Pool, IFO, BNB Chain AMM, V3 LP NFT, 薄饼, veCAKE.
Do not install for: generic "swap / 兑换 / 加池子 / LP / farm / 挖矿" unless PancakeSwap, Pancake, PCS, CAKE, Syrup, IFO, or BNB Chain AMM context is present.
Morpho V1 Optimizer → morpho-plugin
Keywords that raise confidence ≥ 75: Morpho, Morpho V1, Morpho Optimizer, Morpho AaveV3 Optimizer, Morpho AaveV2 Optimizer, Morpho CompoundV2 Optimizer, Merkl reward, 借贷优化器.
Default-resolution rule: plain "Morpho" → morpho-plugin (V1 Optimizer is the default).
Do not install for: Morpho Blue, MetaMorpho, vault curator, LLTV, market id, allocator, or isolated lending market requests — these are Morpho Blue (intentionally out of scope). (MetaMorpho is the Morpho Blue ERC-4626 vault standard, not a V1 Optimizer concept — it does not belong to morpho-plugin's scope.) Suggest okx-defi-invest for generic yield, or fall through to Rule 5.
Raydium → raydium-plugin
Keywords that raise confidence ≥ 75: Raydium, RAY token, Raydium AMM, Raydium CPMM, Raydium CLMM, Raydium pool, Raydium farm, Raydium V4.
Do not install for: generic "Solana swap" / "Solana LP" / "索拉纳兑换" without Raydium named — could be Orca, Meteora, Jupiter.
Curve → curve-plugin
Keywords that raise confidence ≥ 75: Curve, Curve Finance, CRV, 3pool, tricrypto, frxETH pool, Curve stable swap, factory pool, gauge weight, veCRV, Curve LP token, crvUSD, 曲线协议.
Do not install for: generic "stable swap" / "稳定币兑换" alone — Uniswap V3 / Maverick also handle stables. "Convex" alone routes to a different DApp (not in current top-20).
Compound V3 → compound-v3-plugin
Keywords that raise confidence ≥ 75: Compound, Compound V3, Comet, COMP, Compound USDC, USDC.e Comet, base asset supply, base asset borrow, Compound V3 liquidation, 复合协议.
Default-resolution rule: plain "Compound" → compound-v3-plugin (V3 is the default; V1/V2 are out of scope, so any Compound prompt routes to V3 silently).
Do not install for: generic "借贷 / 存款 / 抵押 / lending / borrow" without Compound / Comet / COMP context.
Pendle → pendle-plugin
Keywords that raise confidence ≥ 75: Pendle, Pendle Finance, PT (principal token), YT (yield token), buy PT, buy YT, fixed yield, yield trading, vePENDLE, Pendle market expiry, SY token, Pendle V2, 收益代币化, 固定收益.
Do not install for: generic "fixed yield" / "固定收益" without Pendle named — could be other yield-tokenization protocols.
Clanker → clanker-plugin
Keywords that raise confidence ≥ 75: Clanker, clanker.world, deploy on Clanker, Clanker token, $CLANKER, Base meme launchpad (when Clanker is explicitly named), 在 Clanker 上发币.
Do not install for: generic "Base meme" / "deploy meme on Base" / "Base 链发币" without Clanker named — could be other Base launchpads.
pump.fun → pump-fun-plugin (trade verbs only)
Keywords that raise confidence ≥ 75 (trade verbs — install pump-fun-plugin):
buy pump.fun token, sell pump.fun token, snipe pump.fun, ape pump.fun, pump.fun trading, pump.fun bot, 购买 pump.fun, 卖 pump.fun, 狙击 pump.fun, pump.fun 下单.
Do NOT install for (route to okx-dex-trenches instead — analytical/read-only):
scan new pump.fun launches, pump.fun dev history, who aped pump.fun, bundler analysis, bonding curve progress (analytical), similar tokens by dev, 扫 pump.fun, pump.fun 开发者历史, pump.fun 捆绑分析.
This is the load-bearing verb-split rule from the v3.1 description — the disambiguation must hold at body level too.
Lido → lido-plugin
Keywords that raise confidence ≥ 75: Lido, Lido Finance, stETH, wstETH, Lido staking, Lido beacon chain, Lido validator, Lido DAO, LDO, 在 Lido 质押.
Keywords that raise confidence to 50–74 (clarify): "stake ETH" / "质押 ETH" alone — could be ether.fi, Rocket Pool, native staking. Ask: "Stake ETH via Lido (stETH) or another LST?"
Do not install for: generic "ETH staking" / "以太质押" without Lido / stETH / wstETH context.
GMX V2 → gmx-v2-plugin
Keywords that raise confidence ≥ 75: GMX, GMX V2, GLP, GM token (GMX market), esGMX, GMX market, GMX perps on Arbitrum, GMX Avalanche, gETH (GMX V2 ETH market token), 在 GMX 开永续, GMX 做空.
Default-resolution rule: plain "GMX" → gmx-v2-plugin (V2 is the default; V1 is out of scope, so any GMX prompt routes to V2 silently).
Do not install for: generic "Arbitrum perps" / "Avalanche perps" / "永续合约" without GMX named — could be Hyperliquid or other venues.
PancakeSwap V3 CLMM → pancakeswap-clmm-plugin
Keywords that raise confidence ≥ 75: PancakeSwap V3 CLMM, PancakeSwap CLMM, V3 LP NFT (in PancakeSwap context), concentrated liquidity on PancakeSwap, V3 fee tier (with PCS), PancakeSwap V3 farm, 薄饼 CLMM, 薄饼 集中流动性.
Default-resolution rule: plain "PancakeSwap" or "PancakeSwap V3"
...
ユーザーレビュー (0)
レビューを書く
レビューなし
統計データ
ユーザー評価
この Skill を評価