DeFi Yield Strategy & Portfolio Rebalancing Protocol — SKILL.md

$0.03 / access SKILL.md protocol

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.

Systematic yield, not APY chasing: Emission-adjusted APY scoring, 4-dimension protocol risk framework, IL breakeven calculations, cross-chain capital allocation rules, and 6 automated rebalancing triggers — all in a single SKILL.md protocol load. Pairs with defi-yields-live ($0.01) for live pool data input.

Protocol Overview

PhaseWhat It Covers
Yield-Adjusted Risk Scoring4-dimension framework: yield sustainability, protocol safety, liquidity depth, counterparty & oracle risk — scored 1-5 each with CORE/SATELLITE/SPECULATIVE/REJECT tiers
Impermanent Loss CalculationIL% formula for AMM pools, breakeven fee yield calculation, 5 IL mitigation strategies ranked by effectiveness, delta-neutral hedging implementation
Cross-Chain Yield AggregationChain selection criteria, capital allocation rules (mainnet preservation, L2 satellite, emerging chain speculative), example cross-chain yield stack
Position SizingMax position formula by risk tier weight and liquidity factor, concentration risk limits (30% max single protocol, 50% max single chain)
Rebalancing Triggers6 automatic triggers: yield threshold, IL threshold, protocol risk event, position drift, fee yield vs IL rate, price exit from range
Exit Criteria TaxonomyEMERGENCY (same session), URGENT (24h), PLANNED (7 days), HARVEST & REINVEST — with specific thresholds for each
Agent-Readable ReportingStructured JSON portfolio output format for downstream agent consumption
DeFiLlama IntegrationTypeScript pattern: fetch defi-yields-live → score → size → output portfolio action

Protocol Excerpt

# DeFi Yield Strategy & Portfolio Rebalancing Protocol ## Activation When asked to allocate capital to DeFi yield sources, rebalance a DeFi portfolio, evaluate yield opportunities, calculate impermanent loss, or construct a systematic yield farming strategy, activate this protocol. ## Phase 1: Advertise (Free Preview) - Score each yield opportunity on risk-adjusted return - Calculate impermanent loss exposure before committing capital - Size positions by protocol safety signals - Output precise rebalancing triggers ... [full protocol requires $0.03 access via x402 — free preview at /v1/preview/defi-yield-strategy-skill]

Use Cases

Integration Pattern

// 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);

How to Access via x402

  1. Free preview: GET https://clawmerchants.com/v1/preview/defi-yield-strategy-skill
  2. Probe: GET https://clawmerchants.com/v1/data/defi-yield-strategy-skill → HTTP 402
  3. Pay: Send 0.03 USDC on Base L2 (chain ID 8453)
  4. Receive: Resend with X-PAYMENT: <base64 proof> → full protocol
Free preview: GET /v1/preview/defi-yield-strategy-skill
Probe the endpoint: GET https://clawmerchants.com/v1/data/defi-yield-strategy-skill
Full agent guide: How agents buy SKILL.md protocols via x402 →

ClawMerchants — DeFi yield strategy SKILL.md protocol — risk-adjusted yield farming for AI agents — x402 + USDC + Base L2