three.ws: Skill for Claude Code

.agents/skills/okx-dex-swap/SKILL.md

okx-dex-swap is a skill for Claude Code from nirholas/three.ws. It costs 297 tokens per session (3,837 once invoked), scanned A, original, Apache-2.0.

A tool for exchanging one cryptocurrency token for another through OKX-routed decentralized-exchange markets across multiple blockchains. It can prepare a trade for execution or return the transaction data without sending it.

In plain words
What is it for?
Use it to request swap quotes, compare routes, approve and execute trades, obtain transaction data, or build an unsigned swap transaction.
Why use it?
It helps find a route and estimate the exchange when liquidity is spread across different decentralized exchanges and chains. You can choose whether to execute the trade or inspect the transaction first.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument; installed under .agents/ (shared by several agents).

This is nirholas/three.ws's own configuration. It tells Claude Code how to work on three.ws itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything three.ws configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is Read `../okx-agentic-wallet/_shared/preflight.md`. If that file does not exist, read `_shared/preflight.md` instead..

Part of the three-ws-core plugin — 43 skills shipped together

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/nirholas/three.ws/main/.agents/skills/okx-dex-swap/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/nirholas/three.ws

Made for: Claude Code.

Or install three-ws-core, the plugin that ships this one along with the rest of its 43 skills.

Wrote 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.

agentmods badge for okx-dex-swap

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirholas/three.ws/okx-dex-swap.svg)](https://agentmods.dev/skills/nirholas/three.ws/okx-dex-swap)
Your own site
<a href="https://agentmods.dev/skills/nirholas/three.ws/okx-dex-swap"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/okx-dex-swap.svg" alt="Measured on agentmods" height="20"></a>
Per session 297 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,837 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

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 →

  • high System Prompt Leakage · line 217
    Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
    Fix: Remove any instructions that reveal, print, or output system prompts or internal rules. System instructions should never be exposed to end users.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00297 $0.03837
Opus 5 $0.00148 $0.01919
Sonnet 5 $0.00059 $0.00767
Haiku 4.5 $0.00030 $0.00384

Measured 8d ago against content hash 0873c41912ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

okx-dex-swap 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 8d 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.

.agents/skills/okx-dex-swap/SKILL.md · 232 lines

How it starts

The opening of the file, as written. The whole thing — 232 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Onchain OS DEX Swap

6 commands for multi-chain swap aggregation — quote, approve, one-shot execute, and calldata-only swap.

Stack arbitration. three.ws has two swap stacks. This OKX onchainos stack is for OKX-routed swaps the user opted into — by naming OKX/OnchainOS, a specific DEX/DApp venue, or an OKX-specific chain (X Layer, BSC, Arbitrum, etc.). For a plain three.ws-native Base/Polygon swap the user did not route through OKX, defer to the trade skill (the awal / three.ws-native default).

Pre-flight Checks

Read ../okx-agentic-wallet/_shared/preflight.md. If that file does not exist, read _shared/preflight.md instead.

Chain Name Support

Full chain list: ../okx-agentic-wallet/_shared/chain-support.md. If that file does not exist, read _shared/chain-support.md instead.

Native Token Addresses

Chain Native Token Address
EVM (Ethereum, BSC, Polygon, Arbitrum, Base, etc.) 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Solana 11111111111111111111111111111111
Sui 0x2::sui::SUI
Tron T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb
Ton EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c

Command Index

# Command Description
1 onchainos swap chains Get supported chains for DEX aggregator
2 onchainos swap liquidity --chain <chain> Get available liquidity sources on a chain
3 onchainos swap approve --token ... --amount ... --chain ... Get ERC-20 approval transaction data (advanced/manual use)
4 onchainos swap quote --from ... --to ... --readable-amount ... --chain ... Get swap quote (read-only price estimate). No --slippage param.
5 onchainos swap execute --from ... --to ... --readable-amount ... --chain ... --wallet ... [--slippage <pct>] [--gas-level <level>] [--mev-protection] [--force] One-shot swap: quote → approve (if needed) → swap → sign & broadcast → txHash. --force bypasses backend risk warning 81362 only after explicit user confirmation.
6 onchainos swap swap --from ... --to ... --readable-amount ... --chain ... --wallet ... [--slippage <pct>] Calldata only: returns unsigned tx data. Does NOT sign or broadcast.

Read the full file on GitHub · 232 lines

Files

What ships with it

4 files 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.

Changes

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.

  1. 8d ago First seen · 232 lines · 297 tokens per session scan A 0873c41912ba

Subscribe to this mod's changes

okx-dex-swap is a skill published in the GitHub repository nirholas/three.ws (111 stars, last pushed today), licensed Apache-2.0. It adds 297 tokens to every session and 3,837 once invoked, about $0.0015 per session on Opus 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.

Related

Other skills, from other repositories

blockchain-defi

Use this skill when asked about decentralized finance, DeFi protocols, AMM mechanics, lending and borrowing protocols, perpetual futures, yield farming, liquidity mining, liquid staking, restaking, yield optimization, DeFi security, MEV, and protocol composability. Covers AMM design (Uniswap, Curve, Balancer), lending…

j4flmao/agent-skills · 154 tokens

stablecoin-chain-explorer

Explore stablecoin TVL distribution and yield opportunities by blockchain. Query which chains have the most stablecoins, compare cross-chain yields, and find the best opportunities on Ethereum, BSC, Arbitrum, Base, Polygon, and more. Also for protocols and issuers researching where stablecoin TVL and liquidity…

barkermoney/barker-mcp · 102 tokens

apex-copilot

Use this skill when the user is working on a Web3 project and needs Apex Foundation diligence tools: scoring a crypto/Web3 project for investment readiness, matching against the Apex portfolio of 200+ projects, finding relevant Web3 hackathons, matching against Web3 VC funds and investors, smart contract code review…

Apex-Foundation/copilot-mcp · 245 tokens

gstd-sovereign

Full agent autonomy — self-sustaining economic entity that earns GSTD, manages finances, shares intelligence, recruits agents, and promotes financial independence.

gstdcoin/A2A · 35 tokens

crypto-report

Analyze cryptocurrency projects with tokenomics, on-chain metrics, and market analysis. Generate comprehensive crypto research reports.

claude-office-skills/skills · 24 tokens

agent-wallet

Operate a non-custodial blockchain wallet on-chain (EVM and Bitcoin), no exchange or MetaMask. Create or import a wallet, balances, send native/ERC-20/BTC, swap tokens, compile/deploy/call Solidity. Trigger on wallet, crypto, ETH, BTC, ERC-20, token, send, transfer, swap, trade, Solidity, contract, on-chain, testnet…

hec-ovi/blockchain-skill · 93 tokens