From onchainos-skills
Discovers and manages OKX-aggregated DeFi positions: search products, deposit/withdraw/claim rewards, view portfolio across chains.
How this skill is triggered — by the user, by Claude, or both
Slash command
/onchainos-skills:okx-defiThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Multi-chain, OKX-aggregated DeFi in two capabilities behind one skill. Both wrap the same `onchainos defi` CLI command group.
Multi-chain, OKX-aggregated DeFi in two capabilities behind one skill. Both wrap the same onchainos defi CLI command group.
Read
../okx-agentic-wallet/_shared/preflight.md. If that file does not exist, read_shared/preflight.mdinstead.
| User Intent | Reference |
|---|---|
| Discover / search DeFi products, find best APY | invest.md |
| Product detail (APY, TVL, accepted tokens) | invest.md |
| Deposit / stake / provide liquidity | invest.md |
| Withdraw / redeem a position (full or partial) | invest.md |
| Claim rewards (platform / investment / V3 fee / bonus / unlocked principal) | invest.md |
| APY history, TVL history, V3 depth / price charts | invest.md |
| View DeFi positions / holdings overview (持仓) | portfolio.md |
| Per-protocol position detail (持仓详情) | portfolio.md |
| Exact parameters / return schemas — invest & charts commands | invest-cli-reference.md |
| Exact parameters / return schemas — positions commands | portfolio-cli-reference.md |
| Errors / failed deposits / expired calldata | invest-troubleshooting.md |
| Errors / empty positions / address-format issues | portfolio-troubleshooting.md |
Typical flow spans both: view positions (Portfolio) → redeem or claim (Invest). Read both reference files when the request chains them.
okx-dapp-discoveryokx-dex-marketokx-agentic-walletokx-agentic-walletokx-agentic-walletokx-agentic-walletCLI resolves chain names automatically (e.g. ethereum → 1, bsc → 56, solana → 501). Full alias table: references/portfolio.md §Chain Support.
When the user does NOT provide a wallet address, resolve it automatically from the Agentic Wallet before running any defi command:
1. onchainos wallet status → check if logged in, get active account
2. onchainos wallet addresses → get addresses grouped by chain category:
- XLayer addresses
- EVM addresses (Ethereum, BSC, Polygon, etc.)
- Solana addresses
3. Match address to target chain:
- EVM chains → use EVM address
- Solana → use Solana address
- XLayer → use XLayer address
Rules:
okx-agentic-wallet) or provide an address manuallywallet balance --all to get all account IDs, then wallet switch <id> + wallet addresses for each accountThe --address and chain parameters must be compatible. EVM addresses (0x…) can only query EVM chains; Solana addresses (base58) can only query solana. Never mix them — the API will return error 84019 (Address format error).
0x… address → only pass EVM chains: ethereum,bsc,polygon,arbitrum,base,xlayer,avalanche,optimism,fantom,linea,scroll,zksyncsolanasui; Tron address (T…) → only pass tron; TON address → only pass ton--addressdefi positions uses --chains (plural, comma-separated); defi position-detail uses --chain (singular)references/invest-cli-reference.md (invest & charts) and references/portfolio-cli-reference.md (positions)npx claudepluginhub okx/onchainos-skills --plugin onchainos-skillsSwaps tokens via DEX aggregators, checks yields, and tracks positions across Ethereum, Polygon, Arbitrum, and Solana.
Manages OKX Simple Earn, Flash Earn, On-chain Earn, Dual Investment, and AutoEarn via the okx CLI. Handles balance checks, subscriptions, redemptions, and lending rate settings.
Plugin router for 20 DeFi protocols (Aave, Hyperliquid, Uniswap, etc.) and their native tokens. Installs and forwards to protocol-specific plugins on DApp+action queries.