Back to list
aiskillstore

defi-expert

by aiskillstore

Security-audited skills for Claude, Codex & Claude Code. One-click install, quality verified.

102🍴 3📅 Jan 23, 2026

SKILL.md


name: defi-expert description: DeFi protocol expert ensuring correct data formats, types, denominations, and API structures. MUST be consulted before writing ANY protocol integration code. Triggers on ANY mention of Aave, Compound, Uniswap, Curve, Balancer, or DeFi terms like liquidation, swap, flash loan, health factor.

DeFi Expert

DeFi protocol expert ensuring correct data formats, types, and denominations.

When to Use

  • Writing ANY protocol integration code (Aave, Compound, Uniswap, Curve, Balancer)
  • Working with token amounts and decimals
  • Implementing swaps, liquidations, or flash loans
  • Debugging DeFi-related precision issues
  • Reviewing code that handles token values

Workflow

Step 1: Verify Token Decimals

Check decimals for each token (USDC=6, WBTC=8, ETH=18).

Step 2: Check Denomination

Verify correct unit (wei, ray, wad, bps).

Step 3: Validate Addresses

Ensure checksummed addresses are used.


CRITICAL: Before writing ANY DeFi code, verify:

  1. Token decimals (USDC=6, not 18!)
  2. Denomination (wei, ray, wad, bps)
  3. Checksummed addresses

Denomination Standards

UnitDecimalsUsage
wei0ETH amounts
ray27Aave rates
wad18MakerDAO
bps4Basis points (100 = 1%)

Token Decimals

TokenDecimals
ETH/WETH18
USDC6 ⚠️
USDT6 ⚠️
DAI18
WBTC8 ⚠️

Common Errors

// ❌ WRONG
const amount = parseEther(value);  // USDC has 6 decimals!
const hf = rawHF / 1e18;  // Aave uses 1e27!

// ✓ CORRECT
const decimals = await token.decimals();
const amount = parseUnits(value, decimals);
const hf = rawHF / 1e27;

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

+5
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon