Borrowing it
Nothing to install: this file belongs to nirholas/three.ws. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/nirholas/three.ws/main/.agents/skills/okx-defi-invest/SKILL.mdgit clone --depth 1 https://github.com/nirholas/three.wsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/nirholas/three.ws/okx-defi-invest)<a href="https://agentmods.dev/skills/nirholas/three.ws/okx-defi-invest"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/okx-defi-invest/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/nirholas/three.ws/okx-defi-invest"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/okx-defi-invest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00276 | $0.04723 |
| Opus 5.5 | $0.00110 | $0.01889 |
| Sonnet 5.5 | $0.00055 | $0.00945 |
| Haiku 4.5 | $0.00028 | $0.00472 |
Grade A, and why
okx-defi-invest scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 305 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OKX DeFi Invest
Multi-chain DeFi product discovery and investment execution. The CLI handles precision conversion, multi-step orchestration, and validation internally.
For CLI parameter details, see references/cli-reference.md.
Skill Routing
- For DApp-named investing/lending/staking → use
okx-dapp-discovery - For DeFi positions / holdings → use
okx-defi-portfolio - For token price/chart → use
okx-dex-market - For token search by name/contract → use
okx-dex-token - For DEX spot swap execution → use
okx-dex-swap - For wallet token balances → use
okx-wallet-portfolio - For broadcasting signed transactions → use
okx-onchain-gateway - For Agentic Wallet login, balance, contract-call → use
okx-agentic-wallet
Command Index
| # | Command | Description |
|---|---|---|
| 1 | defi support-chains |
Get supported chains for DeFi |
| 2 | defi support-platforms |
Get supported platforms for DeFi |
| 3 | defi list |
List top DeFi products by APY |
| 4 | defi search --token <tokens> [--platform <names>] [--chain <chain>] [--product-group <group>] |
Search DeFi products |
| 5 | defi detail --investment-id <id> |
Get full product details |
| 6 | defi invest --investment-id <id> --address <addr> --token <symbol_or_addr> --amount <minimal_units> [--chain <chain>] [--slippage <pct>] [--tick-lower <n>] [--tick-upper <n>] [--token-id <nft>] |
One-step deposit (CLI handles prepare + precision + calldata) |
| 7 | defi withdraw --investment-id <id> --address <addr> --chain <chain> [--ratio <0-1>] [--amount <minimal_units>] [--token-id <nft>] [--platform-id <pid>] [--slippage <pct>] |
One-step withdrawal (CLI handles position lookup + calldata) |
| 8 | defi collect --address <addr> --chain <chain> --reward-type <type> [--investment-id <id>] [--platform-id <pid>] [--token-id <nft>] [--principal-index <idx>] |
One-step reward claim (CLI handles reward check + calldata) |
| 9 | defi positions --address <addr> --chains <chains> |
List DeFi positions by platform |
| 10 | defi position-detail --address <addr> --chain <chain> --platform-id <pid> |
Get detailed position info |
| 11 | defi rate-chart --investment-id <id> [--time-range <range>] |
Historical APY chart data |
| 12 | defi tvl-chart --investment-id <id> [--time-range <range>] |
Historical TVL chart data |
| 13 | defi depth-price-chart --investment-id <id> [--chart-type <type>] [--time-range <range>] |
V3 Pool depth or price history chart |
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 305 lines · 276 tokens per session scan A cf23625c56d3
okx-defi-invest is a skill published in the GitHub repository nirholas/three.ws (269 stars, last pushed yesterday), licensed Apache-2.0. It adds 276 tokens to every session and 4,723 once invoked, about $0.0011 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
okx-defi-invest compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| okx-defi-investnirholas/three.ws | Skill | 269 | yesterday | Apache-2.0 | A | 276 | Claude Code |
| evmNousResearch/hermes-agent | Skill | 261k | yesterday | MIT | A | 19 | Claude Code, Codex |
| hyperliquidNousResearch/hermes-agent | Skill | 261k | yesterday | MIT | A | 16 | Claude Code, Codex |
| solanaNousResearch/hermes-agent | Skill | 261k | yesterday | MIT | A | 18 | Claude Code, Codex |
| crypto-dataBlockRunAI/blockrun-mcp | Skill | 389 | yesterday | MIT | A | 194 | Claude Code, Codex |
| polymarket-tradingBlockRunAI/blockrun-mcp | Skill | 389 | yesterday | MIT | A | 72 | Claude Code, Codex |
| surfBlockRunAI/blockrun-mcp | Skill | 389 | yesterday | MIT | A | 110 | Claude Code, Codex |