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 |
development
OpenSea API integration for NFT and token discovery, marketplace intelligence, and order/transaction workflows. Use when working with OpenSea data or trading flows (e.g. collection stats, trending collections/tokens, NFT metadata, listings/offers, swap quotes, transaction receipt polling).
development
Generate a warm, healing parallel-universe fairy tale (~1000 words) plus 3 cohesive storybook illustrations, themed "if this person had never been born, what would the world miss." Output is a polished HTML storybook that can be previewed and published. Use when the user wants a personalized "if I had never been born" / "如果我没出生" tale for a real person — input is a name, age, and 3 key life events. Great for birthdays, memorials, encouragement gifts, or healing keepsakes.
development
Onboard a user to Phala Cloud and deploy a verifiable Starchild TEE agent — a minimal FastAPI runtime running inside an Intel TDX confidential VM, plus a published chat dashboard with attestation verification. Use when the user wants to "try TEE", "run an agent in a confidential VM", "deploy to Phala", or replicate the internal Starchild TEE test setup.
tools
Trade on Polymarket prediction markets (CLOB V2) from a Privy EOA wallet. Search markets, place/cancel orders, manage positions. No private key handling. Use when the user wants to bet on event outcomes (e.g. "buy YES at 0.65 on the ceasefire market", "what are my open positions", "close my Trump bet").