# Review DeFi Protocol Integrations

DeFi integrations often fail because token units, decimals, and protocol formats are easy to confuse. This skill guides Claude, Codex, and Claude Code through focused checks before code is written or reviewed.

## Install

```bash
npx skillstore add barissozen/defi-expert
```

## Metadata

- - Slug: barissozen-defi-expert
- - Version: 1.0.0
- - Author: BarisSozen
- - GitHub username: BarisSozen
- - License: MIT
- - Repository: https://github.com/BarisSozen/claude/tree/main/.claude/skills/defi-expert
- - Ref: main
- - Supported tools: Claude, Codex, Claude Code
- - Risk level: low
- - Quality score: 77
- - Quality tier: bronze
- - Public page: https://skillstore.pages.dev/skills/barissozen-defi-expert
- - Manifest: https://skillstore.pages.dev/api/skills/barissozen-defi-expert/manifest

## Capabilities

- Checks token decimals for assets such as USDC, USDT, WBTC, ETH, and DAI.
- Reviews denomination choices such as wei, ray, wad, and basis points.
- Prompts validation of checksummed addresses before integration work.
- Highlights common precision mistakes in swaps, liquidations, and flash loans.
- Supports reviews for Aave, Compound, Uniswap, Curve, and Balancer integrations.

## Use Cases

- Validate Integration Inputs: Check token decimals, units, and addresses before implementing a protocol adapter.
- Review DeFi Pull Requests: Find precision and denomination mistakes before a DeFi change is merged.
- Plan Protocol Support: Create a checklist for supporting Aave, Compound, Uniswap, Curve, or Balancer.

## Prompt Templates

### Check Token Units

```
Review this DeFi task for token decimal and denomination risks before implementation.
```

### Validate Protocol Adapter

```
Review this protocol adapter plan for address validation, token decimals, and protocol-specific units.
```

### Audit Precision Handling

```
Review this DeFi code path for precision loss, incorrect scaling, and unsafe amount conversions.
```

### Compare Protocol Requirements

```
Build a protocol integration checklist for these DeFi protocols and identify unit, API, and data format risks.
```

## Limitations

- Does not execute code, query blockchains, or verify live protocol state.
- Does not replace formal smart contract audits or protocol documentation.
- Requires current token and protocol details from the user or project context.
- Provides guidance, not financial, legal, or investment advice.

## Best Practices

- Provide the target protocol, token list, and expected units with each request.
- Verify decimals from token contracts or trusted protocol documentation.
- Ask for a checklist before writing code that moves or prices assets.

## Anti Patterns

- Do not assume every ERC-20 token uses 18 decimals.
- Do not mix wei, wad, ray, and basis points without explicit conversion.
- Do not treat this skill as a replacement for live protocol verification.

## Security Audit

- - Safe to publish: true
- - Audited at: 2026-06-28T14:13:45.041\+00:00
- - Summary: Static findings were reviewed in context and dismissed as false positives. SKILL.md contains instructional DeFi guidance only, with no executable commands, network access, credential access, or prompt injection text.

## Stats

- - Views: 190
- - Downloads: 5
- - Favorites: 0
- - Popularity score: 0
