agentsclimarketplace

Defi expert

Skill ComeOnOliver/skillshub/skills/aiskillstore/marketplace/barissozen/defi-expert

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.From its SKILL.md

Install
npx -y skills add ComeOnOliver/skillshub --skill defi-expert

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.7 KB, 420 tokens by cl100k_base, as published. Nobody here has run it

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;

What ships with it

9.6 KB alongside SKILL.md

GitHub clipped this repository’s file list, so this is at least 1 file and may be more.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.