1247/yield-optimizer/SKILL.md
Autonomous USDC yield optimization across DeFi protocols. Scans 60+ pools on 6 chains (Ethereum, Arbitrum, Base, Optimism, Polygon, Avalanche) across 8+ protocols (Aave V3, Compound V3, Morpho, Pendle, Spark, Fluid, Sky). Use when the user asks about yield farming, best stablecoin rates, DeFi yields, where to deposit USDC, or wants autonomous yield management.
npx skillsauth add starchild-ai-agent/community-skills @1247/yield-optimizerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Autonomous USDC yield optimization across DeFi lending protocols and chains.
Scans real-time yields from DeFi Llama, ranks opportunities by risk-adjusted return, recommends allocations, and can execute deposits/withdrawals via the wallet skill.
Data source: DeFi Llama Yields API (free, no key, real-time).
| Protocol | Type | Chains |
|----------|------|--------|
| Aave V3 | Lending | ETH, ARB, Base, OP, Polygon, Avax |
| Compound V3 | Lending | ETH, ARB, Base, OP, Polygon |
| Morpho (V1 + Blue) | Lending | ETH, Base |
| Pendle | Yield tokenization | ETH, ARB |
| Spark / Sky | Lending | ETH |
| Fluid | Lending | ETH |
| Euler | Lending | ETH, ARB, Base |
Stablecoins tracked: USDC, USDT, DAI, USDS, sDAI, sUSDe, GHO
When user asks "what are the best yields?" or "where should I put my USDC?":
python3 skills/yield-optimizer/scripts/scan_pools.pyRisk tiers:
When user has a specific amount to deploy:
When user confirms a recommendation:
wallet_balance on target chain)references/contracts.jsonPrerequisites — Wallet Policy: Before any on-chain execution, load the wallet-policy skill and propose the standard wildcard policy.
For scheduled autonomous operation:
Schedule via: schedule_task(command="python3 skills/yield-optimizer/scripts/scan_pools.py --json", schedule="every 1 hour")
scan pools → filter (TVL > $100K, supported protocols) → rank by APY
IF no current position:
→ recommend deposit to best risk-adjusted pool
IF current position exists:
apy_delta = best_available - current_apy
IF apy_delta < 0.5%: HOLD (not worth gas)
IF gas_cost > 0.1% of position: HOLD (too expensive)
ELSE: REBALANCE (withdraw → bridge if needed → deposit)
apyReward (token incentives) can vanish overnight. Weight apyBase higher for stability.| Script | Purpose | Usage |
|--------|---------|-------|
| scan_pools.py | Fetch & rank all pools | python3 scripts/scan_pools.py |
| scan_pools.py --json | JSON output for automation | Scheduled monitoring |
| scan_pools.py --chain Base | Filter by chain | Chain-specific query |
| scan_pools.py --protocol aave-v3 | Filter by protocol | Protocol-specific query |
tools
TQX (tqx.trade) HK/US stock quant workflow via tqx-cli: cross-sectional factor analysis, event-driven strategy backtests on the panda_backtest engine, and agent-driven automated paper trading. Use when the user wants to run factor IC/IR analysis, backtest a Python trading strategy on Hong Kong or US stocks, or set up agent-automated trading (e.g. "backtest a moving-average strategy on AAPL", "analyze a momentum factor on HK stocks", "let the agent trade my paper account").
tools
中学物理实验教学参赛方案套件。包含四个完整实验(单摆测g、声悬浮测声速、向心力定量演示仪、电磁阻尼定量研究),每套含固件源码、3D打印图纸、教学PPT、教学文稿、采购清单、调试手册、视频分镜脚本、模拟器。Use when a teacher/student needs a complete, classroom-ready physics experiment package for competition or teaching.
development
End-to-end blog management for AI agents. Write, import, build, preview, and publish articles using the blog template. Covers draft workflow, article import, SEO, OG images, and deployment.
development
ESP8266/ESP32 + 磁簧开关/霍尔传感器 单摆测重力加速度实验套件。 硬件搭建→固件烧录→数据采集→Web仪表盘→g值计算→教学文档,一站式完成。 Use when the user wants to build a pendulum g-measurement experiment, measure gravity with a micro-controller, or needs a complete physics experiment package with hardware + firmware + dashboard + teaching materials.