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-portfolio/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-portfolio)<a href="https://agentmods.dev/skills/nirholas/three.ws/okx-defi-portfolio"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/okx-defi-portfolio/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-portfolio"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/okx-defi-portfolio.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Output Handling · line 141 Output size or generation rate is not bounded. Unbounded output enables denial-of-service through resource exhaustion, log flooding, or context-window stuffing.Fix: Set explicit limits on output length, generation count, and rate. Use max_tokens and truncation to prevent unbounded output.
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.00237 | $0.02658 |
| Opus 5.5 | $0.00095 | $0.01063 |
| Sonnet 5.5 | $0.00047 | $0.00532 |
| Haiku 4.5 | $0.00024 | $0.00266 |
Grade A, and why
okx-defi-portfolio 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 — 197 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OKX DeFi Portfolio
2 commands for viewing DeFi positions and holdings across protocols and chains.
Skill Routing
- For DeFi deposit/redeem/claim → use
okx-defi-invest - For token price/chart → use
okx-dex-market - For wallet token balances → use
okx-wallet-portfolio - For DEX spot swap → use
okx-dex-swap
Quickstart
# Get DeFi holdings overview across chains
onchainos defi positions \
--address 0xYourWallet \
--chains ethereum,bsc,solana
# Get detailed holdings for a specific protocol (analysisPlatformId from positions output)
onchainos defi position-detail \
--address 0xYourWallet \
--chain ethereum \
--platform-id 67890
Command Index
| # | Command | Description |
|---|---|---|
| 1 | onchainos defi support-chains |
Get supported chains for DeFi |
| 2 | onchainos defi support-platforms |
Get supported platforms for DeFi |
| 3 | onchainos defi positions --address <addr> --chains <chains> |
Get user DeFi holdings overview |
| 4 | onchainos defi position-detail --address <addr> --chain <chain> --platform-id <id> |
Get detailed holdings for a protocol |
Chain Support
| Chain | Name / Aliases | chainIndex |
|---|---|---|
| Ethereum | ethereum, eth |
1 |
| BSC | bsc, bnb |
56 |
| Polygon | polygon, matic |
137 |
| Arbitrum | arbitrum, arb |
42161 |
| Base | base |
8453 |
| X Layer | xlayer, okb |
196 |
| Avalanche | avalanche, avax |
43114 |
| Optimism | optimism, op |
10 |
| Fantom | fantom, ftm |
250 |
| Sui | sui |
784 |
| Tron | tron, trx |
195 |
| TON | ton |
607 |
| Linea | linea |
59144 |
| Scroll | scroll |
534352 |
| zkSync | zksync |
324 |
| Solana | solana, sol |
501 |
Operation Flow
Step 0: Address Resolution
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
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 · 197 lines · 237 tokens per session scan A 9b6cea13832c
okx-defi-portfolio is a skill published in the GitHub repository nirholas/three.ws (269 stars, last pushed yesterday), licensed Apache-2.0. It adds 237 tokens to every session and 2,658 once invoked, about $0.0009 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-portfolio compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| okx-defi-portfolionirholas/three.ws | Skill | 269 | yesterday | Apache-2.0 | A | 237 | 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 |