defi-amm-security

Identify and remediate security vulnerabilities in Solidity AMM contracts.

4|7|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/arbisoft/ai-skillforge --skill defi-amm-security-arbisoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: defi-amm-security
Source: https://github.com/arbisoft/ai-skillforge/tree/main/Claude/skills/defi-amm-security
Command: npx skills add https://github.com/arbisoft/ai-skillforge --skill defi-amm-security-arbisoft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a security-oriented checklist and hardened patterns for Solidity AMM contracts, liquidity pools, and swap flows, helping developers and auditors mitigate common vulnerability vectors and exploit risks.

Core Features & Use Cases

  • Reentrancy-safe entrypoints and CEI-compliant patterns to prevent state modification after external calls.
  • Anti-manipulation safeguards for reserves, oracles, and share calculations, reducing susceptibility to token balance-based attacks.
  • Slippage protection and explicit admin controls to guard critical flows like pausing, upgrades, and parameter updates.
  • Reusable pattern library with concrete examples that can be adapted across DeFi protocols for auditing and secure implementations.

Quick Start

To begin, run the security checklist against your Solidity AMM contract to surface reentrancy, ordering, and admin-control vulnerabilities.

Frequently Asked Questions about defi-amm-security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit a Solidity AMM contract for reentrancy and oracle manipulation?

To audit a Solidity AMM contract, apply a security checklist enforcing reentrancy-safe entrypoints, CEI ordering, and oracle anti-manipulation safeguards. This process surfaces vulnerabilities in swap flows and liquidity pools before deployment.

What security patterns prevent reentrancy in DeFi liquidity pools?

Security patterns preventing reentrancy in DeFi liquidity pools include reentrancy-safe entrypoints and Checks-Effects-Interactions (CEI) ordering. These patterns ensure state modifications complete before external calls execute.

Does this security checklist cover slippage protection and admin controls?

Yes, this security checklist covers slippage protection and explicit admin controls. It guards critical flows like pausing, upgrades, and parameter updates to prevent unauthorized modifications to AMM contracts.

How do I secure oracle reads and reserve calculations in smart contracts?

Secure oracle reads and reserve calculations by applying anti-manipulation safeguards. This reduces susceptibility to token balance-based attacks that exploit AMM pricing mechanisms during swaps.

Can I reuse these DeFi security patterns across different protocols?

Yes, you can reuse these DeFi security patterns across different protocols. The pattern library provides concrete examples adaptable for auditing and implementing secure AMM contracts handling token balances and governance.