defi-yield

defi-yield is a skill for Claude Code, Codex from skloxo/TideTrading. It costs 37 tokens per session (2,761 once invoked), scanned A, a copy of defi-yield, MIT.

A framework for comparing returns from decentralised-finance (DeFi) activities, where financial services run through blockchain protocols rather than traditional intermediaries. It covers lending, liquidity pools, staking, yield farming, risk-adjusted returns, and whether protocol rewards are sustainable.

In plain words
What is it for?
Comparing lending rates, liquidity-provider fees, staking and yield-farming returns, assessing protocol sustainability, and ranking DeFi opportunities by expected return relative to their risks.
Why use it?
A high advertised yield can come with borrowing, token-price, smart-contract, liquidity, or incentive risks. Comparing the source and durability of the return gives a clearer view than looking at the percentage alone.

Skill for Claude CodeCodex

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

Good fit Comparing lending rates, liquidity-provider fees, staking and yield-farming returns, assessing protocol sustainability, and ranking DeFi opportunities by expected return relative to their risks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/skloxo/tidetrading/defi-yield
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 skloxo/TideTrading --skill defi-yield
Clone the repo
git clone --depth 1 https://github.com/skloxo/TideTrading

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-yield

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/skloxo/tidetrading/defi-yield"><img src="https://agentmods.dev/badge/skills/skloxo/tidetrading/defi-yield.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,761 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.
Origin 100% copy Near-identical to another mod 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.00037 $0.02761
Opus 5 $0.00018 $0.01380
Sonnet 5 $0.00007 $0.00552
Haiku 4.5 $0.00004 $0.00276

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

Security

Grade A, and why

defi-yield 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 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.

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.

Origin

This is a copy

100% identical to defi-yield — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agent/src/skills/defi-yield/SKILL.md · 265 lines

How it starts

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

DeFi Yield Analysis & Optimization

Overview

Analyze and compare yields across DeFi protocols — lending, liquidity provision, staking, and yield farming — to identify the best risk-adjusted opportunities and assess sustainability. DeFi yields are a real-time proxy for crypto market leverage demand, capital allocation, and protocol health.

Core Concepts

1. DeFi Yield Sources

Yield Source Mechanism Typical APY Range Risk Level
Lending (supply) Earn interest from borrowers 1-15% (stablecoins 3-8%) Low-medium
Borrowing cost Interest paid by borrowers 3-20% N/A (cost side)
LP fees (AMM) Trading fee share from DEX 5-50% (varies by pair) Medium-high
Staking Validator/delegation rewards 3-15% Low-medium
Liquidity mining Protocol token incentives 10-500% (unsustainable) High
Restaking Re-hypothecated staking yield 5-20% (ETH + AVS rewards) Medium-high
Points farming Off-chain points → future airdrop Unknown (speculative) Very high

2. Lending Rate Analysis

Lending rates as market signal:

# High borrow rates = high leverage demand = bullish sentiment
# Low borrow rates = low leverage demand = bearish / waiting

def lending_rate_signal(borrow_rate_stable, borrow_rate_eth):
    """Analyze DeFi lending rates for market sentiment."""
    if borrow_rate_stable > 15:
        stable_signal = "extreme_demand"    # Leveraged long via stablecoin borrowing
    elif borrow_rate_stable > 8:
        stable_signal = "elevated_demand"
    elif borrow_rate_stable > 3:
        stable_signal = "normal"
    else:
        stable_signal = "low_demand"        # Bear market, no one borrowing

    if borrow_rate_eth > 10:
        eth_signal = "extreme_demand"       # Shorting or leveraged strategies
    elif borrow_rate_eth > 5:
        eth_signal = "elevated"
    else:
        eth_signal = "low_demand"

    return stable_signal, eth_signal

Read the full file on GitHub · 265 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 · 265 lines · 37 tokens per session scan A d91fa57daade

Subscribe to this mod's changes

defi-yield is a skill published in the GitHub repository skloxo/TideTrading (10 stars, last pushed 2d ago), licensed MIT. It adds 37 tokens to every session and 2,761 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to defi-yield, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

tychi-agent-finance-mcp

Operate Tychi Agent Finance via MCP — financial home for AI agents. Self-custody wallets, policy-gated on-chain actions, x402 payments, ERC-8004 identity. Use when the user asks for agent wallet, balance, portfolio, transfer, mint, on-chain spend, x402 paywall, or Tychi/TYI money tasks. Requires tychi-agent-finance…

TychiWallet/agent-finance · 90 tokens

defi-protocol-templates

Implement DeFi protocols with production-ready templates for staking, AMMs, governance, and flash loans. Use when building decentralized finance applications or smart contract protocols.

wshobson/agents · 38 tokens

defi-yield

DeFi yield analysis and optimization — lending rates, LP yields, staking returns, yield farming strategies, risk-adjusted yield comparison, and protocol-level sustainability assessment.

HKUDS/Vibe-Trading · 37 tokens

crypto-derivatives

Crypto-derivatives strategies — perpetual funding-rate arbitrage, futures term-structure contango/backwardation trading, and option volatility-smile / Greeks analysis.

HKUDS/Vibe-Trading · 37 tokens

crypto-market-rank

Crypto market rankings and leaderboards. Query trending tokens, top searched tokens, Binance Alpha tokens, tokenized stocks, social hype sentiment ranks, smart money inflow token rankings, top meme token rankings from Pulse launchpad, and top trader PnL leaderboards. Use this skill when users ask about token rankings…

tradecatlabs/tradecat-public · 85 tokens

query-token-info

Query token details by keyword, contract address, or chain. Search tokens, get metadata and social links, retrieve real-time market data (price, price trend, volume, holders, liquidity), and fetch K-Line candlestick charts. Use this skill when users search tokens, check token prices, view market data, or request…

tradecatlabs/tradecat-public · 75 tokens