2061/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, Morpho, Pendle, Compound V3, Spark, Fluid, Euler). Auto-routes deposits to the highest-yielding protocol per chain. Includes a full web UI with multi-protocol deposit/withdraw. 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 @2061/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. Auto-routes deposits to the best protocol per chain — Aave V3, Morpho (ERC-4626), or Pendle (PT fixed-rate).
Data sources: DeFi Llama Yields API, Morpho GraphQL API, Pendle Hosted SDK API (all free, no key).
| Protocol | Type | Deposit Method | Chains |
|----------|------|---------------|--------|
| Aave V3 | Lending pool | pool.supply(asset, amount, onBehalfOf, 0) | ETH, ARB, Base, OP, Polygon, Avax |
| Morpho | ERC-4626 vaults | vault.deposit(assets, receiver) | ETH, ARB, Base, OP |
| Pendle | PT fixed-rate | Hosted SDK → router swap | ETH, ARB, Base |
| Compound V3 | Lending | comet.supply(asset, amount) | ETH, ARB, Base, OP, Polygon |
| Spark / Sky | Lending | pool.supply(...) | ETH |
| Fluid | Lending | vault.deposit(...) | ETH |
| Euler | Lending | vault.deposit(...) | ETH, ARB, Base |
Stablecoins tracked: USDC, USDT, DAI, USDS, sDAI, sUSDe, GHO
server.js
├── /api/pools — best protocol per chain (Aave vs Morpho vs Pendle)
├── /api/chains — supported chain list
├── /api/tvl — total TVL from DeFi Llama
├── /api/agent-activity — recent deposit/withdraw log
├── /api/vault/:addr — user positions across all protocols
├── /api/deposit — record deposit event
├── /api/withdraw — record withdraw event
├── /api/usdc-balance/:addr — cross-chain USDC balance (RPC reads)
└── /api/pendle-swap — get Pendle SDK calldata for PT swap
public/
├── index.html — landing page + dashboard
├── styles.css — dark theme, glass-morphic UI
├── app.js — dashboard logic, deposit/withdraw modals
└── wallet.js — multi-protocol deposit routing
For each chain:
1. Fetch Aave V3 APY from DeFi Llama
2. Fetch Morpho vault APY from GraphQL (if vault exists on chain)
3. Fetch Pendle PT implied APY from Hosted SDK (if market exists on chain)
4. Return winner = max(aave_apy, morpho_apy, pendle_apy)
On deposit:
IF winner == "aave" → approve USDC → pool.supply()
IF winner == "morpho" → approve USDC → vault.deposit()
IF winner == "pendle" → approve USDC → router.swapExactTokenForPt()
On withdraw:
Read user balances across all protocols
IF has aTokens → pool.withdraw()
IF has Morpho shares → vault.withdraw() or vault.redeem()
IF has Pendle PT → router swap PT → USDC (or redeem at maturity)
When user asks "what are the best yields?" or "where should I put my USDC?":
python3 skills/yield-optimizer/scripts/scan_pools.pypython3 skills/yield-optimizer/scripts/scan_pools.py # Full report
python3 skills/yield-optimizer/scripts/scan_pools.py --json # JSON for automation
python3 skills/yield-optimizer/scripts/scan_pools.py --chain Arbitrum # Filter by chain
python3 skills/yield-optimizer/scripts/scan_pools.py --protocol pendle # Filter by protocol
python3 skills/yield-optimizer/scripts/scan_pools.py --amount 10000 --risk balanced # Allocation
For the full visual experience with wallet connection:
cd output/yield-agent-v4
npm install
node server.js # starts on port 3456
Then use preview_serve to expose it.
When user confirms a recommendation:
/api/pools)Prerequisites: Load wallet-policy skill and propose standard wildcard policy before on-chain ops.
For scheduled autonomous operation:
schedule_task(
command="python3 skills/yield-optimizer/scripts/scan_pools.py --json",
schedule="every 1 hour"
)
| Tier | Protocols | Characteristics | |------|-----------|----------------| | 🟢 Safe | Aave V3, Compound V3, Spark | Established, audited, >$100M TVL | | 🟡 Moderate | Morpho, Euler, Fluid | Newer but audited, ERC-4626, >$10M TVL | | 🔴 Aggressive | Pendle | Higher yields via PT fixed-rate, maturity risk |
See references/contracts.json for:
Morpho vault addresses:
0xBEEF01735c132Ada46AA9aA4c54623cAA92A64CB (Steakhouse USDC)0xc1256Ae5FF1cf2719D4937adb3bbCCab2E00A2Ca (Steakhouse USDC)0x2C8FBB630Bae56bBC27E286d0D4816D62e4C1509 (Steakhouse USDC)0x7BfA7e0e3De0e3a6B4399F9CAa1E444Dd3d55c54 (Gauntlet USDC Prime)apyReward (token incentives) can vanish. Weight apyBase higher.convertToAssets).parseUnits(amount, 6) not 18.| Skill | Purpose | |-------|---------| | wallet | Balance checks, transaction execution | | across-bridge | Cross-chain USDC transfers when rebalancing | | wallet-policy | Ensure wallet policy is set before on-chain ops | | coinglass / market-data | Broader market context for yield decisions | | charting | Visualize yield trends over time |
development
--- name: "@5326/fvg-delta-forex-engine" version: 6.0.0 --- # FVG-Delta Forex Signal Engine v6.0 A production FastAPI service that scans the global forex market on **15-minute candles**, runs a strict lock-forward Smart-Money-Concept (SMC) staged state machine, and alerts on the late stages. It is the forex evolution of the FVG-Delta crypto engine — **identical strategy**, refined for forex speed and mechanics. ## What it scans A curated, liquidity-screened universe (no illiquid exotics, no
development
--- name: "@5322/fvg-engine" version: 1.0.0 --- # FVG-Delta Crypto Signal Engine v6.0 A production FastAPI service that scans MEXC UST-M perpetual futures on **closed 15-minute candles**, runs a strict lock-forward Smart-Money-Concept (SMC) staged state machine, draws annotated chart screenshots, sends per-trade Telegram alerts, and serves a live dashboard with an in-memory Trade History. Everything lives in `assets/app.py`; the rest is config, docs, and entrypoints. ## The strategy — five lo
development
Builds and app/bot to print Crypto Futures Signals based on a Strategy.
development
--- name: "@5312/delta-strategy" version: 1.0.0 --- # FVG-Delta Crypto Signal Engine — Agent / Maintainer Guide (v5.5) This is the single source of truth for any AI agent or engineer taking over this project. Read it fully before touching `app.py`. It explains the strategy, the code workflow, every bug that was fixed in this revision, the current state, and the rules for updating the app and its docs safely. --- ## 1. What the app is A production-style FastAPI service that scans **MEXC UST-