| name | optimizing-defi-yields |
| description | Find and compare DeFi yield opportunities across protocols with APY calculations, risk assessment, and optimization recommendations.
Use when searching for yield farming opportunities, comparing DeFi protocols, or analyzing APY/APR rates.
Trigger with phrases like "find DeFi yields", "compare APY", "best yield farming", "optimize DeFi returns", "stablecoin yields", or "liquidity pool rates".
|
| allowed-tools | Read, Write, Bash(crypto:yield-*) |
| version | 1.28.0 |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| license | MIT |
| tags | ["crypto","optimizing-defi"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Optimizing DeFi Yields
Overview
Find and compare DeFi yield opportunities across protocols. Aggregates data from DeFiLlama and other sources to provide APY/APR comparisons, risk assessments, and optimization recommendations for yield farming strategies.
Prerequisites
Before using this skill, ensure you have:
- Python 3.8+ installed
- Internet access for API queries
- Understanding of DeFi concepts (APY, APR, TVL, impermanent loss)
Instructions
-
Search for yield opportunities across all chains or filter by a specific chain:
python ${CLAUDE_SKILL_DIR}/scripts/yield_optimizer.py --top 20
python ${CLAUDE_SKILL_DIR}/scripts/yield_optimizer.py --chain ethereum --top 10
-
Filter by criteria -- minimum TVL (for safety), asset type, or protocol:
python ${CLAUDE_SKILL_DIR}/scripts/yield_optimizer.py --min-tvl 10000000 --top 15
python ${CLAUDE_SKILL_DIR}/scripts/yield_optimizer.py --asset USDC --chain ethereum
python ${CLAUDE_SKILL_DIR}/scripts/yield_optimizer.py --protocol aave,compound,curve
-
Apply risk filters -- show only audited protocols or filter by risk level (--risk low, --risk medium, --risk high):
python ${CLAUDE_SKILL_DIR}/scripts/yield_optimizer.py --audited-only --min-tvl 1000000
python ${CLAUDE_SKILL_DIR}/scripts/yield_optimizer.py --risk low --min-apy 3
-
Analyze specific opportunities -- get detailed pool breakdown or compare protocols:
python ${CLAUDE_SKILL_DIR}/scripts/yield_optimizer.py --pool "aave-v3-usdc-ethereum" --detailed
python ${CLAUDE_SKILL_DIR}/scripts/yield_optimizer.py --compare aave,compound,spark --asset USDC
-
Export results to JSON or CSV for further analysis:
python ${CLAUDE_SKILL_DIR}/scripts/yield_optimizer.py --top 50 --format json --output yields.json
python /scripts/yield_optimizer.py --chain ethereum --format csv --output eth_yields.csv