token-swap-best-practices

token-swap-best-practices is a skill for Claude Code, Codex from nirholas/three.ws. It costs 51 tokens per session (1,347 once invoked), scanned A, original, Apache-2.0.

A practical guide to swapping one cryptocurrency token for another on decentralised exchanges, where trades happen directly through blockchain software. It covers price impact, transaction fees, different networks, and failed swaps.

In plain words
What is it for?
Use it to compare exchange aggregators, choose slippage settings, reduce network fees, handle cross-chain swaps, and troubleshoot failed transactions.
Why use it?
It helps avoid paying too much, setting unsafe price limits, using the wrong network, or losing a transaction to avoidable errors.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to compare exchange aggregators, choose slippage settings, reduce network fees, handle cross-chain swaps, and troubleshoot failed transactions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nirholas/three.ws/token-swap-best-practices
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nirholas/three.ws --skill token-swap-best-practices
Clone the repo
git clone --depth 1 https://github.com/nirholas/three.ws

Made for: Claude Code, Codex.

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 token-swap-best-practices

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nirholas/three.ws/token-swap-best-practices"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/token-swap-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,347 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 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 Prompt Injection · line 28
    Subtle instructions detected that may alter agent decision-making or introduce hidden biases.
    Fix: Review content for implicit steering or bias. Ensure instructions are explicit and align with the skill's stated purpose.
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.00051 $0.01347
Opus 5.5 $0.00020 $0.00539
Sonnet 5.5 $0.00010 $0.00269
Haiku 4.5 $0.00005 $0.00135

Measured 2mo ago against content hash 8586d64157d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

token-swap-best-practices 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.

data/skills/trading/token-swap-best-practices/SKILL.md · 152 lines

How it starts

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

Token Swap Best Practices

A practical guide for AI agents helping users execute safe, efficient token swaps.

DEX Aggregators

Aggregators split your trade across multiple liquidity sources for the best price.

Aggregator Strengths Chains
1inch Most liquidity sources, limit orders Ethereum, Arbitrum, Polygon, BSC, +
0x (Matcha) Professional-grade, RFQ system Ethereum, Arbitrum, Polygon, +
Paraswap MEV protection, gasless swaps Ethereum, Arbitrum, Polygon, +
Jupiter Best for Solana Solana
CowSwap Batch auctions (MEV-free) Ethereum, Arbitrum

Always prefer aggregators over single DEXs — they find better prices by checking multiple sources.

Slippage Settings

Slippage tolerance = how much price movement you'll accept.

Setting When to Use Risk
0.1–0.3% Stablecoin pairs May fail on volatile tokens
0.5% Standard swaps Good default
1.0% Low-liquidity tokens Higher MEV exposure
3–5% Very low liquidity Significant MEV risk
>5% Almost never Extreme MEV vulnerability

Default recommendation: 0.5% for most swaps.

When Swaps Fail

If a swap fails with "insufficient output":

  1. Try slightly higher slippage (0.5% → 1.0%)
  2. Check if the token has transfer taxes (some meme tokens have 5–10% tax)
  3. Try a smaller amount
  4. Wait — price may be moving rapidly

Gas Optimization

Timing

Gas prices fluctuate. For non-urgent swaps:

  • Cheapest: Weekends, early UTC morning
  • Most expensive: Weekdays during US/EU business hours
  • Check: etherscan.io/gastracker or L2-specific dashboards

Chain Selection

Chain Typical Swap Cost Speed
Ethereum L1 $5–50+ 12 sec
Arbitrum $0.01–0.30 2 sec
Base $0.01–0.20 2 sec
Polygon $0.01–0.05 2 sec
BSC $0.05–0.50 3 sec
Solana $0.001–0.01 0.4 sec

Recommendation: For routine swaps, use L2s like Arbitrum (where Sperax ecosystem lives) for cents-level gas costs.

Read the full file on GitHub · 152 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. 2mo ago First seen · 152 lines · 51 tokens per session scan A 8586d64157d3

Subscribe to this mod's changes

token-swap-best-practices is a skill published in the GitHub repository nirholas/three.ws (287 stars, last pushed yesterday), licensed Apache-2.0. It adds 51 tokens to every session and 1,347 once invoked, about $0.0002 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-09-03.

Related

token-swap-best-practices compared with skills from other repositories

token-swap-best-practices next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
token-swap-best-practicesnirholas/three.wsSkill287yesterdayApache-2.0A51Claude Code, Codex
pay-x402-servicenirholas/x402-payments-mcpSkill919d agoApache-2.0A51Claude Code
x402-proxycascade-protocol/x402-proxySkill104d agoApache-2.0A98Claude Code, Codex
birdeyesendaifun/skillsSkill1284mo agoApache-2.0A64Claude Code, Codex
granite-pay-per-callnirholas/ibm-x402-mcpSkill919d agoApache-2.0A49Claude Code
gblin-agent-treasurygblinproject/gblin-treasury-risk-regimeSkill111d agoMITA133Claude Code
phantom-wallet-mcpsendaifun/skillsSkill1284mo agoApache-2.0A41Claude Code, Codex