defi-protocols

defi-protocols is a skill for Claude Code, Codex from LuuOW/meridian-mcp. It costs 81 tokens per session (1,615 once invoked), scanned A, original, MIT.

A reference for decentralized finance, or financial services built on blockchains, including lending, token exchanges, liquidity, and trading across several networks.

In plain words
What is it for?
It helps with flashloans, automated market makers, lending markets, concentrated liquidity, arbitrage, stablecoin price disruptions, and routing capital across supported protocols.
Why use it?
It explains how on-chain capital moves and how prices and liquidity differ between decentralized exchanges and blockchains.

Skill for Claude CodeCodex

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

Good fit It helps with flashloans, automated market makers, lending markets, concentrated liquidity, arbitrage, stablecoin price disruptions, and routing capital across supported protocols.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luuow/meridian-mcp/defi-protocols
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 LuuOW/meridian-mcp --skill defi-protocols
Clone the repo
git clone --depth 1 https://github.com/LuuOW/meridian-mcp

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 defi-protocols

README.md
[![agentmods](https://agentmods.dev/badge/skills/luuow/meridian-mcp/defi-protocols/github.svg)](https://agentmods.dev/skills/luuow/meridian-mcp/defi-protocols)
Your own site
<a href="https://agentmods.dev/skills/luuow/meridian-mcp/defi-protocols"><img src="https://agentmods.dev/badge/skills/luuow/meridian-mcp/defi-protocols/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 defi-protocols

Your own site · 80×15
<a href="https://agentmods.dev/skills/luuow/meridian-mcp/defi-protocols"><img src="https://agentmods.dev/badge/skills/luuow/meridian-mcp/defi-protocols.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,615 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00081 $0.01615
Opus 5 $0.00041 $0.00807
Sonnet 5 $0.00016 $0.00323
Haiku 4.5 $0.00008 $0.00161

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

Security

Grade A, and why

defi-protocols scanned grade A with 1 finding 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 9d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

r = requests.get("https://api.1inch.dev/swap/v6.0/8453/quote",
skills/defi-protocols/SKILL.md · 117 lines

How it starts

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

defi-protocols

Production DeFi routing across lending, AMMs, and arbitrage. Covers how capital moves on-chain: flashloan mechanics, AMM math, liquidity fragmentation, and the physics of price discovery across DEXes and chains.

Flashloan Mechanics

Flashloans let you borrow uncollateralised capital for a single transaction, provided you repay with fee in the same block. Aave V3 is the dominant provider — 0.05% fee, supports all major assets.

function executeOperation(
    address asset,
    uint256 amount,
    uint256 premium,
    address initiator,
    bytes calldata params
) external returns (bool) {
    // 1. Flashloan asset is now in this contract
    // 2. Execute arbitrage path: e.g. USDC → WETH (Uniswap) → cbETH (Aerodrome) → USDC (Curve)
    // 3. Repay amount + premium before this function returns
    IERC20(asset).approve(address(POOL), amount + premium);
    return true;
}

Balancer V2 offers 0-fee flashloans for pool assets — cheaper but asset-limited. Uniswap V3 has flash swaps (borrow tokenA, repay tokenB in same tx).

Triangular Arbitrage

Three-leg price loops across DEXes exploit stale pricing on correlated assets. Classic examples: USDC/USDT/DAI, WETH/cbETH/ETH, WBTC/tBTC.

# Detect a USDC → WETH → cbETH → USDC arbitrage
r1 = quote_uniswap_v3(USDC, WETH, 10_000_000_000)        # USDC → WETH
r2 = quote_aerodrome(WETH, cbETH, r1)                     # WETH → cbETH
r3 = quote_curve(cbETH, USDC, r2)                         # cbETH → USDC
profit_bps = (r3 - 10_000_000_000) * 10_000 // 10_000_000_000

Profit requires: gross_bps - (2 * swap_fee_bps + flashloan_fee_bps + gas_in_bps) > threshold. Most triangles are <5bps — sub-basis-point precision on quotes matters.

AMM Math — Uniswap V3 Concentrated Liquidity

V3 pools expose liquidity in price ranges (ticks), not uniformly. Price is sqrtPriceX96^2 / 2^192. Out-of-range liquidity earns nothing; in-range liquidity earns fees but suffers impermanent loss.

# Quote from a V3 pool (simplified, in-range only)
from eth_abi import decode
def quote_v3(pool, amount_in, zero_for_one):
    # Delegate to quoter contract — it simulates the swap
    result = quoter.quoteExactInputSingle(
        token_in, token_out, fee_tier, amount_in, 0
    )
    return result.amountOut

Read the full file on GitHub · 117 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. 9d ago First seen · 117 lines · 81 tokens per session scan A dd6c16173342

Subscribe to this mod's changes

defi-protocols is a skill published in the GitHub repository LuuOW/meridian-mcp (0 stars, last pushed yesterday), licensed MIT. It adds 81 tokens to every session and 1,615 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

Aerodrome Slipstream

Swap tokens and manage concentrated liquidity positions on Aerodrome Slipstream (CLMM) on Base. Trigger phrases: aerodrome swap, aerodrome liquidity, aerodrome slipstream, add liquidity aerodrome, remove liquidity aerodrome, aerodrome position, aerodrome CL pool, concentrated liquidity base.

okx/plugin-store · 72 tokens

Flash Loan Arbitrage Executor

Production-ready DeFi arbitrage system that detects and executes profitable price differences across multiple DEXs using Aave V3 flash loans. Real smart contract integration with Uniswap V3, Curve, and SushiSwap.

XSpoonAi/spoon-awesome-skill · 49 tokens

suwappu

Build with the Suwappu REST API: cross-chain quotes, simulation, self-custody or managed swaps, managed-wallet portfolio/prices, Polymarket research and orders, Hyperliquid market research, and Morpho lending-market research.

0xSoftBoi/suwappubot · 55 tokens

suwappu-dex

Use Suwappu's hosted MCP server for cross-chain quotes, swap simulation and unsigned transaction preparation, managed-wallet portfolio reads, prices, prediction-market research, Hyperliquid research, and Morpho market data.

0xSoftBoi/suwappubot · 50 tokens

crypto-defi-trading

Crypto and DeFi trading: DEX analysis (Uniswap, SushiSwap, Curve), on-chain analytics, MEV detection, impermanent loss, yield farming metrics, DeFi risk analysis, token metrics, liquidity pool analysis, whale tracking, exchange netflow. USE FOR: crypto, defi, dex, uniswap, sushiswap, curve, impermanent loss, yield…

mahmoud20138/Tradecraft · 107 tokens

aave-v2-plugin

Aave V2 exit tool on Ethereum, Polygon, and Avalanche - all reserves are governance-frozen. Redeem aTokens, repay debt cleanly via uint256.max sentinel, claim stkAAVE/WMATIC/WAVAX rewards. New supply/borrow rejected; redirects to aave-v3-plugin.

okx/plugin-store · 67 tokens