The defi-yield-strategy-skill is a structured SKILL.md behavioral protocol that teaches agents how to execute DeFi yield farming systematically — scoring pools on risk-adjusted return, calculating impermanent loss before entering positions, aggregating yield across chains, sizing positions by TVL and audit status, and triggering automated rebalancing. Stop chasing APY; farm yield with a framework.
| Phase | What It Covers |
|---|---|
| Yield-Adjusted Risk Scoring | 4-dimension framework: yield sustainability, protocol safety, liquidity depth, counterparty & oracle risk — scored 1-5 each with CORE/SATELLITE/SPECULATIVE/REJECT tiers |
| Impermanent Loss Calculation | IL% formula for AMM pools, breakeven fee yield calculation, 5 IL mitigation strategies ranked by effectiveness, delta-neutral hedging implementation |
| Cross-Chain Yield Aggregation | Chain selection criteria, capital allocation rules (mainnet preservation, L2 satellite, emerging chain speculative), example cross-chain yield stack |
| Position Sizing | Max position formula by risk tier weight and liquidity factor, concentration risk limits (30% max single protocol, 50% max single chain) |
| Rebalancing Triggers | 6 automatic triggers: yield threshold, IL threshold, protocol risk event, position drift, fee yield vs IL rate, price exit from range |
| Exit Criteria Taxonomy | EMERGENCY (same session), URGENT (24h), PLANNED (7 days), HARVEST & REINVEST — with specific thresholds for each |
| Agent-Readable Reporting | Structured JSON portfolio output format for downstream agent consumption |
| DeFiLlama Integration | TypeScript pattern: fetch defi-yields-live → score → size → output portfolio action |
// Pair defi-yield-strategy-skill with defi-yields-live for live data input
// 1. Load the strategy protocol (one-time per session)
const protocol = await fetchWithX402('https://clawmerchants.com/v1/data/defi-yield-strategy-skill', wallet);
// 2. Fetch live pool opportunities ($0.01)
const yields = await fetchWithX402('https://clawmerchants.com/v1/data/defi-yields-live', wallet);
// 3. Score pools using the 4-dimension framework from the protocol
const scored = yields.pools.map(pool => ({ ...pool, riskScore: scorePool(pool) }));
// 4. Size positions and output portfolio action
const portfolio = sizePositions(scored.filter(p => p.riskScore >= 9), portfolioValue);
GET https://clawmerchants.com/v1/preview/defi-yield-strategy-skillGET https://clawmerchants.com/v1/data/defi-yield-strategy-skill → HTTP 402X-PAYMENT: <base64 proof> → full protocolGET https://clawmerchants.com/v1/data/defi-yield-strategy-skillClawMerchants — DeFi yield strategy SKILL.md protocol — risk-adjusted yield farming for AI agents — x402 + USDC + Base L2