blockchain-defi
Use this skill when asked about decentralized finance, DeFi protocols, AMM mechanics, lending and borrowing protocols, perpetual futures, yield farming…
от j4flmao★ 47 звёзд на GitHub
Установить blockchain-defi в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Blockchain DeFi
Purpose
Guide decentralized finance protocol design, analysis, and implementation. Covers AMM mechanics, lending/borrowing, derivatives, liquid staking, yield strategies, and DeFi security with focus on economic security and incentive alignment.
Agent Protocol
Trigger
"defi", "decentralized finance", "amm", "automated market maker", "lending protocol", "borrowing", "liquidation", "yield farming", "liquidity mining", "perpetual futures", "perps", "liquid staking", "restaking", "eigenlayer", "lido", "uniswap", "curve", "aave", "compound", "yearn", "convex", "yield optimization", "mev defi", "flash loan", "liquidation", "oracle price defi"
Input Context
- Protocol category (AMM/lending/derivatives/LSD/yield aggregator)
- Target blockchain (EVM/Solana/Cosmos)
- Capital base and liquidity requirements
- Risk tolerance (collateral factors, liquidation thresholds)
- Oracle integration requirements
- Governance model (on-chain/off-chain, emergency pause mechanism)
Output Artifact
DeFi protocol specification including: mechanism design, economic security analysis, contract architecture, risk assessment, and integration guide.
Response Format
- Protocol category: AMM / lending / derivatives / LSD / yield aggregator
- Mechanism design: core invariants, pricing formulas, incentive model, fee structure
- Economic security: oracle risk, liquidation safety, capital efficiency trade-offs, MEV exposure
- Implementation: key contract architecture, integration points, Solidity/EVM patterns
- Risk analysis: smart contract risk, impermanent loss, depeg risk, regulatory exposure, composability risk
Completion Criteria
- Mechanism design includes: invariant function, fee model, incentive alignment analysis
- Economic security analysis covers: oracle manipulation, flash loan attacks, liquidity crises
- Contract architecture follows established patterns (checks-effects-interactions, access control)
- Risk assessment quantifies: IL, liquidation risk, depeg scenarios, protocol composability risks
- Governance and emergency procedures specified
Max Response Length
5000 tokens
Decision Trees
Protocol Category Selection
DeFi protocol type:
├── Token swapping / trading?
│ ├── Constant product (x*y=k) → Uniswap v2 style
│ │ ├── Pros: Simple, proven, always liquid
│ │ └── Cons: High slippage, IL for LPs
│ ├── Stable/fixed product → Curve style (stableswap)
│ │ ├── Pros: Low slippage for stable pairs
│ │ └── Cons: Complex math, only stable pairs
│ ├── Weighted pools → Balancer style
│ │ ├── Pros: Multi-token pools, custom weights
│ │ └── Cons: Higher complexity, gas costs
│ └── Concentrated liquidity → Uniswap v3 style
│ ├── Pros: Capital efficient, custom price ranges
│ └── Cons: Active position management needed
├── Lending / borrowing?
│ ├── Pool-based → Aave / Compound style
│ │ ├── Pros: Passive supply, variable rates
│ │ └── Cons: Pool risk (all depositors share risk)
│ ├── P2P lending → Morpho style
│ │ ├── Pros: Better rates, P2P matching
│ │ └── Cons: Liquidity fragmentation
│ └── Isolated lending → Euler style
│ ├── Pros: Per-market risk isolation
│ └── Cons: Higher complexity
├── Derivatives / perpetuals?
│ ├── vAMM → GMX style (synthetic AMM)
│ ├── Order book → dYdX style (on-chain order book)
│ └── Synthetic assets → Synthetix style (debt pool)
├── Liquid staking / restaking?
│ ├── ETH staking → Lido (stETH), Rocket Pool (rETH)
│ └── Restaking → EigenLayer (AVS security)
└── Yield optimization?
├── Auto-compounding → Yearn style (strategist-managed vaults)
└── Reward token boosting → Convex style (veTokenomics)
AMM Invariant Selection
Target asset type:
├── Volatile assets (ETH/USDC) → x*y=k (Uniswap v2/v3)
├── Stable assets (USDC/USDT) → Stableswap (Curve)
├── Multiple assets (ETH/USDC/DAI) → Weighted pool (Balancer)
└── Correlated assets (stETH/ETH) → L2S (Paraswap, Curve Tricrypto)
Fee tier selection (Uniswap v3):
├── 0.01%: Stable pairs, very tight range (USDC/USDT)
├── 0.05%: Correlated pairs (wstETH/ETH, WBTC/renBTC)
├── 0.30%: Standard volatile pairs (ETH/USDC)
└── 1.00%: Exotic tokens, low liquidity pairs
Liquidation Strategy Decision
Collateral type:
├── Volatile (ETH, wBTC) → Conservative parameters
│ ├── LTV: 70-80%
│ ├── Liquidation threshold: 80-85%
│ └── Liquidation bonus: 5-10%
├── Stable (USDC, DAI) → Aggressive parameters
│ ├── LTV: 80-90%
│ ├── Liquidation threshold: 90-95%
│ └── Liquidation bonus: 3-5%
├── LSD (stETH, rETH) → Moderate parameters
│ ├── LTV: 75-82%
│ ├── Liquidation threshold: 83-88%
│ └── Bonus: 3-7% (prevent connected asset manipulation)
└── LP tokens → Conservative parameters
├── LTV: 40-70% (depends on pool composition)
├── Liquidation threshold: 50-75%
└── Bonus: 10-15% (compound IL risk)
AMM Mechanics
Constant Product AMM (Uniswap v2
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/amm-mechanics.md
- references/blockchain-defi-advanced.md
- references/blockchain-defi-fundamentals.md
- references/blockchain-defi-ref-1.md
- references/blockchain-defi-ref-2.md
- references/defi-risk-management.md
- references/derivatives-perps.md
- references/lending-borrowing.md
- references/lsd-lrt-restaking.md
- references/merged-defi-protocols.md
- references/merged-defi-smart-contracts.md
- references/yield-strategies.md
FAQ
Что делает скилл blockchain-defi?
Use this skill when asked about decentralized finance, DeFi protocols, AMM mechanics, lending and borrowing protocols, perpetual futures, yield farming, liquidity mining, liquid staking, restaking, yield optimization, DeFi security, MEV, and protocol composability. Covers AMM design (Uniswap, Curve, Balancer), lending protocols (Aave, Compound, Morpho), derivatives (dYdX, GMX, Synthetix), liquid staking (Lido, Rocket Pool, EigenLayer restaking), and yield strategies (Yearn, Convex). Do NOT use for: general smart contract development (use blockchain-application), blockchain core protocol (use blockchain-core), or web3 UI integration (use blockchain-web3).
Как установить скилл blockchain-defi?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл blockchain-defi запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…