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.
npx skills add nirholas/three.ws --skill token-swap-best-practicesgit 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/token-swap-best-practices)<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.
<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>- 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 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.
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.00051 | $0.01347 |
| Opus 5.5 | $0.00020 | $0.00539 |
| Sonnet 5.5 | $0.00010 | $0.00269 |
| Haiku 4.5 | $0.00005 | $0.00135 |
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.
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":
- Try slightly higher slippage (0.5% → 1.0%)
- Check if the token has transfer taxes (some meme tokens have 5–10% tax)
- Try a smaller amount
- 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.
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 · 152 lines · 51 tokens per session scan A 8586d64157d3
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.
token-swap-best-practices compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| token-swap-best-practicesnirholas/three.ws | Skill | 287 | yesterday | Apache-2.0 | A | 51 | Claude Code, Codex |
| pay-x402-servicenirholas/x402-payments-mcp | Skill | 9 | 19d ago | Apache-2.0 | A | 51 | Claude Code |
| x402-proxycascade-protocol/x402-proxy | Skill | 10 | 4d ago | Apache-2.0 | A | 98 | Claude Code, Codex |
| birdeyesendaifun/skills | Skill | 128 | 4mo ago | Apache-2.0 | A | 64 | Claude Code, Codex |
| granite-pay-per-callnirholas/ibm-x402-mcp | Skill | 9 | 19d ago | Apache-2.0 | A | 49 | Claude Code |
| gblin-agent-treasurygblinproject/gblin-treasury-risk-regime | Skill | 1 | 11d ago | MIT | A | 133 | Claude Code |
| phantom-wallet-mcpsendaifun/skills | Skill | 128 | 4mo ago | Apache-2.0 | A | 41 | Claude Code, Codex |