Skip to content

internet-court/internet-court-skill / vendored/okx/okx-defi

okx-defi

Verified

OKX-aggregated DeFi (no specific DApp named) — product discovery, deposit/withdraw/claim execution, AND positions viewing. **If the user names ANY third-party protocol/DApp (Aave, Lido, PancakeSwap, Uniswap, Curve, Compound, Morpho, Pendle, Kamino, Raydium, Hyperliquid, Polymarket, …), route to okx-dapp-discovery — NOT here, even for 'show my Aave positions'.** INVEST triggers: 'invest in DeFi', 'earn yield', 'find best APY', 'deposit/stake for yield', 'search DeFi products', 'redeem/withdraw position', 'claim DeFi rewards', 'borrow against asset', 'repay loan', 'add/remove CLMM liquidity', 'APY/TVL history', 'depth chart', yield farming, lending, staking, liquidity pools. PORTFOLIO triggers: 'check my DeFi positions', 'view DeFi holdings/portfolio', 'my staking/lending positions', 'DeFi balance', 'DeFi 持仓', '我的DeFi资产'. Do NOT use for: DEX swaps (okx-agentic-wallet), token prices (okx-dex-market), wallet token balances (okx-agentic-wallet).

references/portfolio-troubleshooting.md

View on GitHub
# Capability: Portfolio — Troubleshooting

Error handling and edge cases for position viewing. Operational flow lives in `portfolio.md`; parameter schemas in `portfolio-cli-reference.md`.

## Common Errors

| Code | Scenario | Handling |
|------|----------|----------|
| 84019 | Address format mismatch | The `--address` and chain params are incompatible (EVM `0x…` vs Solana base58 vs Sui/Tron/TON) — see the Address-Chain Compatibility rule in `SKILL.md`; split EVM and Solana into two separate calls |
| 84021 | Asset syncing | "Position data is syncing, please retry shortly" |
| 50011 | Rate limit | Wait 1–2 s and retry once |

## Edge Cases

- **`--chains` vs `--chain` confusion**: `defi positions` takes `--chains` (plural, comma-separated); `defi position-detail` takes `--chain` (singular). Passing the wrong one is a parameter error, not an empty result.
- **Empty positions but the user insists they have holdings**: check the address/chain pairing first (84019 class of mistake), then whether the protocol is supported (`defi support-platforms`). Positions on unsupported platforms will not appear.
- **`position-detail` output shape**: `data` is an **array** — iterate it; calling `.get()` on it directly is a client-side bug, not an API error.
- **Missing `--platform-id`**: `position-detail` requires `analysisPlatformId` from a prior `defi positions` call — run that first.
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 323kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 323kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 323kUpdated Claude CodeCodexVerifiedInstall