Agent skill · data analytics · jeremylongshore
optimizing-defi-yields
Find and compare DeFi yield opportunities across protocols with APY
Why this skill is useful
Adds executable scripts for yield optimization and risk assessment that are specific to DeFi protocols and not commonly known.
What it needs
Requires python installed locally. About 2k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.
What this skill does
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 1. Search for yield opportunities across all chains or filter by a specific chain: 2. Filter by criteria -- minimum TVL (for safety), asset type, or protocol: 3. Apply risk filters -- show only audited protocols or filter by risk level (--risk low, --risk medium, --risk high): 4. Analyze specific opportunities -- get detailed pool breakdown or compare protocols: 5. Export results to JSON or CSV for further analysis: Output Yield Summary Table Risk Assessment Error Handling See ${CLAUDESKILLDIR}/references/errors.md for comprehensive error handling. Common issues: API timeout: Uses cached data with staleness warning No pools found: Broaden search criteria Invalid protocol: Check supported protocols list Examples See ${CLAUDESKILLDIR}/references/examples.md for detailed usage examples. Quick Examples Find stablecoin yields: Low-risk opportunities: Multi-chain search: Export top yields: Configuration Settings in ${CLAUDESKILLDIR}/config/settings.yaml: Default chain: Primary chain to search Cache TTL: How long to cache API responses Risk weights: Customize risk scoring factors Min TVL default: Default minimum TVL filter Resources DeFiLlama: https://defillama.com/yields - Yield data source DeFi Safety: - Protocol security scores Impermanent Loss Calculator: Understand LP risks
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills jeremylongshore/optimizing-defi-yields