three.ws: Skill for Claude Code

.agents/skills/trade/SKILL.md

trade is a skill for Claude Code from nirholas/three.ws. It costs 143 tokens per session (1,924 once invoked), scanned A, original, Apache-2.0.

A token-swapping tool for exchanging assets such as USDC, ETH, and POL on Base or Polygon.

In plain words
What is it for?
Use it to trade one supported token for another, such as converting USDC to ETH or selling ETH for USDC.
Why use it?
It provides one way to buy, sell, or convert supported tokens without manually using a separate exchange interface.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. 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 →

Part of the three-ws-core plugin — 49 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/trade/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 49 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 trade

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirholas/three.ws/trade/github.svg)](https://agentmods.dev/skills/nirholas/three.ws/trade)
Your own site
<a href="https://agentmods.dev/skills/nirholas/three.ws/trade"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/trade/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.

agentmods 80×15 button for trade

Your own site · 80×15
<a href="https://agentmods.dev/skills/nirholas/three.ws/trade"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/trade.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 143 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,924 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 pass 7 Sept 2026
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.00143 $0.01924
Opus 5.5 $0.00057 $0.00770
Sonnet 5.5 $0.00029 $0.00385
Haiku 4.5 $0.00014 $0.00192

Measured 14d ago against content hash ad12768905ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

trade 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 14d 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/trade/SKILL.md · 156 lines

How it starts

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

Trading Tokens

Use the npx [email protected] trade command to swap tokens on Base or Polygon via the CDP Swap API. You must be authenticated to trade.

Which swap stack (arbitration)

three.ws runs two swap stacks. Pick one deterministically: never route a swap through a signing path the user didn't ask for.

  • This stack (awal / three.ws-native): the default. Use it for CDP swaps on Base/Polygon unless the user explicitly opts into OKX.
  • OKX onchainos stack (okx-dex-swap): use only when the user names OKX, OnchainOS, an OKX-managed account, a specific DEX/DApp venue, or an OKX-specific chain (X Layer, BSC, Arbitrum, and the other 20+ OKX-routed chains). Hand off to okx-dex-swap and do not trade from here.

Confirm wallet is initialized and authed

npx [email protected] status

If the wallet is not authenticated, refer to the authenticate-wallet skill.

Command Syntax

npx [email protected] trade <amount> <from> <to> [options]

The command is also available as npx [email protected] swap (alias).

Arguments

Argument Description
amount Amount to swap (see Amount Formats below)
from Source token: alias (usdc, eth, pol) or contract address (0x...)
to Destination token: alias (usdc, eth, pol) or contract address (0x...)

Amount Formats

The amount can be specified in multiple formats:

Format Example Description
Dollar prefix '$1.00', '$0.50' USD notation (decimals based on token)
Decimal 1.0, 0.50, 0.001 Human-readable with decimal point
Whole number 5, 100 Interpreted as whole tokens
Atomic units 500000 Large integers treated as atomic units

Read the full file on GitHub · 156 lines

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. 14d ago Changed ad12768905ca
  2. 20d ago Changed d6081f3da828
  3. 2mo ago First seen · 156 lines · 143 tokens per session scan A e05d3d6f1b77

Subscribe to this mod's changes

trade is a skill published in the GitHub repository nirholas/three.ws (269 stars, last pushed yesterday), licensed Apache-2.0. It adds 143 tokens to every session and 1,924 once invoked, about $0.0006 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.

Related

trade compared with skills from other repositories

trade next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tradenirholas/three.wsSkill269yesterdayApache-2.0A143Claude Code
evmNousResearch/hermes-agentSkill261kyesterdayMITA19Claude Code, Codex
hyperliquidNousResearch/hermes-agentSkill261kyesterdayMITA16Claude Code, Codex
solanaNousResearch/hermes-agentSkill261kyesterdayMITA18Claude Code, Codex
crypto-dataBlockRunAI/blockrun-mcpSkill389yesterdayMITA194Claude Code, Codex
polymarket-tradingBlockRunAI/blockrun-mcpSkill389yesterdayMITA72Claude Code, Codex
surfBlockRunAI/blockrun-mcpSkill389yesterdayMITA110Claude Code, Codex