defi-yield
하는 일
이 스킬은 대출, 유동성 공급, 스테이킹 같은 탈중앙화 금융 상품의 수익을 분석합니다. 수익률을 공정하게 비교하고 그 지속 가능성을 판단하려는 암호화폐 투자자를 위한 스킬입니다.
사용하는 경우
- ✓DeFi 프로토콜들의 대출 또는 스테이킹 수익률을 비교하고 싶을 때.
- ✓높은 유동성 채굴 수익률이 지속 가능한지 판단하고 싶을 때.
- ✓차입 금리를 암호화폐 시장의 레버리지 수요 신호로 읽고 싶은 경우.
스킬 링크
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/defi-yield/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“주요 DeFi 프로토콜들의 스테이블코인 대출 수익률을 비교하고, 지속 가능해 보이는 곳을 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 수익을 대출, LP 수수료, 스테이킹, 인센티브 토큰 같은 출처별로 나눈 뒤 위험을 반영합니다. 주로 인센티브 토큰으로 지급되는 높은 수익률은 오래가지 않을 수 있다고 짚고, 프로토콜들의 지속 가능성을 비교합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
Key lending protocols:
| Protocol | Chain | Specialization | TVL Range |
|---|---|---|---|
| Aave V3 | Multi-chain | Blue-chip lending, institutional grade | $10-20B |
| Compound V3 | Ethereum, Base | Conservative, USDC-focused | $3-5B |
| MakerDAO/Sky | Ethereum | CDP-based DAI/USDS minting | $8-15B |
| Morpho | Ethereum | Rate optimization, P2P matching | $3-8B |
| Spark | Ethereum | MakerDAO lending arm | $2-5B |
| Kamino | Solana | Concentrated LP + lending | $1-3B |
3. LP Yield Analysis
Impermanent Loss (IL) — the core risk of LP positions:
def impermanent_loss(price_ratio_change):
"""
Calculate impermanent loss for a 50/50 AMM pool.
price_ratio_change: new_price / old_price of the volatile asset.
"""
r = price_ratio_change
il = 2 * (r ** 0.5) / (1 + r) - 1
return il * 100 # Return as percentage
# Examples:
# Price +25% → IL = -0.6%
# Price +50% → IL = -2.0%
# Price +100% (2x) → IL = -5.7%
# Price +200% (3x) → IL = -13.4%
# Price -50% → IL = -5.7%
# Price -75% → IL = -20.0%
LP yield = fee income + token incentives - impermanent loss
def net_lp_yield(fee_apy, incentive_apy, estimated_il_annualized):
"""Calculate risk-adjusted LP yield."""
gross_yield = fee_apy + incentive_apy
net_yield = gross_yield - abs(estimated_il_annualized)
return net_yield
# Example: ETH/USDC pool
# Fee APY: 15%, Incentive APY: 20%, Estimated IL: 8%
# Net yield: 15% + 20% - 8% = 27%
LP pool evaluation criteria:
| Metric | Good | Mediocre | Avoid |
|---|---|---|---|
| Fee APY / TVL | > 10% | 5-10% | < 5% |
| IL risk (based on pair volatility) | < 5% annualized | 5-15% | > 15% |
| TVL stability (30d change) | Growing or stable | Declining < 10% | Declining > 30% |
| Volume/TVL ratio | > 0.5x daily | 0.1-0.5x | < 0.1x |
| Incentive dependency | < 30% of yield | 30-70% | > 70% (unsustainable) |
4. Staking Yield Analysis
ETH staking ecosystem:
| Method | APY | Risk | Liquidity |
|---|---|---|---|
| Solo validator | ~3.5% | Slashing, downtime | Locked (exit queue) |
| Lido (stETH) | ~3.3% | Smart contract, governance | Liquid (stETH tradeable) |
| Rocket Pool (rETH) | ~3.2% | Smart contract, more decentralized | Liquid |
| Coinbase (cbETH) | ~3.0% | Custodial, regulatory | Liquid |
| EigenLayer restaking | ~3.5% + AVS rewards | Smart contract, slashing risk | Semi-liquid |
**Staking yi
자주 묻는 질문
높은 수익률이 항상 좋은 것은 아닌가요?
토큰 인센티브로 지급되는 매우 높은 수익률은 대개 일시적이며, 인센티브가 끝나면 사라질 수 있습니다.
DeFi 대출은 위험이 없나요?
아닙니다. 스마트 컨트랙트 위험, 유동성 위험, 시장 위험이 있으며 이 스킬이 이를 짚어 줍니다.
차입 금리는 무엇을 알려 주나요?
차입 금리가 높으면 레버리지 수요가 많다는 뜻인 경우가 많으며, 이는 시장 심리를 반영할 수 있습니다.
상세 정보
작성자의 원본 설명
DeFi yield analysis and optimization — lending rates, LP yields, staking returns, yield farming strategies, risk-adjusted yield comparison, and protocol-level sustainability assessment.
repo: HKUDS/Vibe-Trading
인기도
- GitHub 스타
- 37k
- 순위
- #7511
- 라이선스
- MIT
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
vibe-trading
37k에이전트에게 백테스트, 팩터 분석, 옵션 가격 결정, 여러 시장의 시장 데이터를 포함하는 완전한 금융 연구 도구 모음을 제공합니다.
adr-hshare
37k에이전트에게 미국 ADR과 홍콩 주식처럼 여러 시장에 상장된 중국 기업의 가격을 비교하는 방법을 보여 줍니다.
akshare
37k에이전트가 API 키 없이 중국과 해외 주식, 선물, 외환, 경제 지표의 무료 시장 데이터를 가져오도록 돕습니다.
alpha-zoo
37k에이전트가 만들어진 주식 팩터 라이브러리를 둘러보고, 선택한 시장에서 팩터 묶음이 수익률을 얼마나 잘 예측하는지 시험하도록 돕습니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.