Defi Amm Security Skill
- Installs
- 11k
- Repo stars
- 316k
- Repo updated
- Dec 1, 2026
TL;DR
defi-amm-security is a Claude Code skill that runs a structured security checklist when writing or auditing Solidity AMM, liquidity pool, or swap contracts for developers who need DeFi economic and exploit coverage befor
Install if
Solidity developers auditing or implementing AMM, liquidity pool, or swap contracts who need structured DeFi exploit coverage beyond generic linting.
Skip if
Teams building non-DeFi backends or centralized exchange APIs without on-chain AMM logic should skip defi-amm-security.
npx skills add https://github.com/affaan-m/ECC --skill defi-amm-securityTry it first through the Skillselion MCP - nothing to install, nothing on disk.
1. Add the remote connector:
claude mcp add --transport http skillselion https://mcp.skillselion.com/mcp2. Ask your agent:
Use Skillselion load_skill to load skill:affaan-m/ecc#defi-amm-security (Defi Amm Security) and follow it.Try it first through the Skillselion MCP - nothing to install, nothing on disk.
1. Add this URL as a custom connector (Claude.ai, ChatGPT or Cursor):
https://mcp.skillselion.com/mcp2. Ask your agent:
Use Skillselion load_skill to load skill:affaan-m/ecc#defi-amm-security (Defi Amm Security) and follow it.On this page
- What defi-amm-security covers
- defi-amm-security by the numbers
- What does the Defi Amm Security skill produce?
- What files ship with defi-amm-security?
- Which skills are related to defi-amm-security?
- What are the Defi Amm Security skill forks?
- How does defi-amm-security compare?
- Defi Amm Security skill FAQ
- More in this repo
What defi-amm-security covers
- Covers reentrancy, CEI ordering, donation/inflation attacks, oracle manipulation, slippage, admin controls, and integer
- Checklist-plus-pattern library with hardened implementations for every user entrypoint
- Specifically targets contracts using token.balanceOf(address(this)) in share or reserve math
- Includes swap, deposit, withdraw, mint, burn, fee setters, pausers, and oracle update flows
- Local audit examples with strict execution safety rules
defi-amm-security by the numbers
| All-time installs | 10,958 (11k) | skills.sh registry |
|---|---|---|
| Repo stars | ★ 316k | GitHub |
| Repo last updated | December 1, 2026 | GitHub |
| Repository | affaan-m/ECC ↗ | |
Data as of Dec 4, 2026 (Skillselion catalog sync)
What does the Defi Amm Security skill produce?
Completed AMM security checklist, documented vulnerability findings, and hardened swap or pool contract recommendations
- Security checklist results
- Vulnerability findings report
- Hardening recommendations
What files ship with defi-amm-security?
DeFi AMM セキュリティ
自動マーケットメーカー(AMM)スマートコントラクトのセキュリティパターンと監査チェックリスト。
使用時期
- Uniswap、Curve、BalancerなどのようなAMMコントラクトをレビュー
- スワップ関数、ミント、バーンロジックでセキュリティの問題を検出
- フラッシュローン、価格操作脆弱性を特定
- DeFiプロトコルの経済セキュリティをテスト
一般的な脆弱性
1. フラッシュローン攻撃
ローンが同一ブロック内で返却されたと仮定するコントラクトを攻撃。
2. スリッページ不足
ユーザーが予期しない不利な価格変更を受ける。
3. 再入攻撃
外部呼び出し後の状態チェック。
4. 価格操作
オンチェーン価格参照の信頼不足。
セキュリティチェックリスト
- [ ] すべての価格参照はオラクルから取得
- [ ] フラッシュローンは考慮(価格を信頼しない)
- [ ] スリッページ保護が実装
- [ ] チェック・エフェクト・相互作用パターン使用
- [ ] 再入保護(ミューテックス/チェック付き)
- [ ] 整数オーバーフロー/アンダーフロー処理
- [ ] アクセス制御とロール分離
詳細については、ドキュメントを参照してください。
Which skills are related to defi-amm-security?
What are the Defi Amm Security skill forks?
Defi Amm Security has 1 known copy in the catalog totaling 4.1k installs. They canonicalize to this original listing.
- affaan-m - 4.1k installs
How does defi-amm-security compare?
Use defi-amm-security when you need AMM-specific economic exploit patterns rather than general Solidity style or syntax review alone.
Defi Amm Security skill FAQ
Who is the Defi Amm Security skill for?
Solidity developers auditing or implementing AMM, liquidity pool, or swap contracts who need structured DeFi exploit coverage beyond generic linting. Skip if: Teams building non-DeFi backends or centralized exchange APIs without on-chain AMM logic should skip defi-amm-security.
When should I use defi-amm-security?
Solidity AMM, pool, or swap code is written or modified and needs structured review for flash loans, slippage, reentrancy, or price oracle risks.
What vulnerabilities does defi-amm-security cover?
defi-amm-security covers flash-loan attacks, missing slippage protection, sandwiching, unsafe on-chain price references, reentrancy, and integer overflow or underflow in AMM swap, mint, and burn logic.
Which DeFi contract types does defi-amm-security audit?
defi-amm-security targets automated market maker contracts, liquidity pools, and swap functions similar to Uniswap, Curve, or Balancer-style protocols written in Solidity.
What checklist items does defi-amm-security enforce?
defi-amm-security enforces oracle-based pricing, flash-loan-safe assumptions, slippage limits, checks-effects-interactions ordering, reentrancy mutexes, and correct integer arithmetic handling.
Add a defi-amm-security badge
Show developers this skill is listed on Skillselion. Paste this into your README.