ai-agent-defi-guide

ai-agent-defi-guide is a skill for Claude Code, Codex from nirholas/three.ws. It costs 55 tokens per session (1,374 once invoked), scanned A, original, Apache-2.0.

A teaching guide to the main ideas and transaction patterns in DeFi, or decentralised finance. It covers exchanges, lending, stablecoins, liquidity pools, borrowing, and related concepts for AI agents.

In plain words
What is it for?
Use it to teach an agent DeFi basics, explain protocol categories, and handle requests involving token swaps, lending, yield farming, and portfolio management.
Why use it?
It gives an agent the background needed to explain DeFi terms and help with common tasks. It also reduces confusion around concepts such as slippage, health factors, and impermanent loss.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: positional $N argument; built for openclaw.

Good fit Use it to teach an agent DeFi basics, explain protocol categories, and handle requests involving token swaps, lending, yield farming, and portfolio management.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nirholas/three.ws/ai-agent-defi-guide
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 ai-agent-defi-guide
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 ai-agent-defi-guide

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nirholas/three.ws/ai-agent-defi-guide"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/ai-agent-defi-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,374 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 Excessive Agency · line 162
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00055 $0.01374
Opus 5.5 $0.00022 $0.00550
Sonnet 5.5 $0.00011 $0.00275
Haiku 4.5 $0.00006 $0.00137

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

Security

Grade A, and why

ai-agent-defi-guide 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/defi/ai-agent-defi-guide/SKILL.md · 173 lines

How it starts

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

AI Agent DeFi Guide

This skill teaches OpenClaw agents the DeFi fundamentals needed to help users interact with decentralized finance protocols.

DeFi Protocol Categories

DEXs (Decentralized Exchanges)

What they do: Enable token swaps without intermediaries

Type Examples How It Works
AMM (V2) Uniswap V2, SushiSwap, Camelot V2 Constant product (x × y = k), full-range liquidity
AMM (V3) Uniswap V3, Camelot V3 Concentrated liquidity in price ranges
Order Book dYdX, Vertex Traditional order matching on-chain
Batch Auction CowSwap Batch trades for MEV protection

Key concepts: Liquidity pools, slippage, price impact, impermanent loss, fee tiers

Lending Protocols

What they do: Enable borrowing and lending of tokens

Protocol Model Key Feature
Aave V3 Pool-based E-mode, flash loans, isolation mode
Compound V3 Single-asset Simplified, one base asset per market
Spark Maker-powered DAI-focused lending

Key concepts: Supply APY, borrow APY, health factor, liquidation threshold, collateral factor, utilization rate

Stablecoins

What they do: Maintain a $1 peg while potentially generating yield

Type Examples Mechanism
Fiat-backed USDC, USDT 1:1 reserves in bank accounts
Crypto-backed DAI, LUSD Over-collateralized with crypto
Auto-yield USDs (Sperax) 100% backed, yield auto-distributed via rebase

Yield Aggregators

What they do: Automate yield optimization

Protocol Approach
Yearn V3 Multi-strategy vaults
Beefy Auto-compound across chains
Convex Boost Curve yields

Derivatives

What they do: Provide leveraged trading and options

Protocol Type
GMX Perpetual futures
dYdX Perps + spot
Lyra Options

Common User Requests

"Swap Token A for Token B"

Read the full file on GitHub · 173 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 · 173 lines · 55 tokens per session scan A b9024749f061

Subscribe to this mod's changes

ai-agent-defi-guide is a skill published in the GitHub repository nirholas/three.ws (287 stars, last pushed yesterday), licensed Apache-2.0. It adds 55 tokens to every session and 1,374 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

ai-agent-defi-guide compared with skills from other repositories

ai-agent-defi-guide next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-agent-defi-guidenirholas/three.wsSkill287yesterdayApache-2.0A55Claude Code, Codex
pay-x402-servicenirholas/x402-payments-mcpSkill919d agoApache-2.0A51Claude Code
manage-productsnorman-finance/norman-mcp-serverSkill66yesterdayMITA61Claude Code
hotel-price-drop-rebookAwardTravelFinder/mcpSkill18todayMITA70Claude Code
pinepaulieb89/pinescript-mcpSkill1211d agoMITA216Claude Code
cfo-stripe-collectionsmelaya-labs/melaya-mcpSkill16d agoApache-2.0A90Claude Code
cfo-unit-economicsmelaya-labs/melaya-mcpSkill16d agoApache-2.0A0Claude Code