Learn-skills.dev aave-security-foundations
Security baseline for AAVE integration and execution scripts. Use when user asks for AAVE security review, pre-trade checks, liquidation safety, allowance minimization, or execution hardening.
install
source · Clone the upstream repo
git clone https://github.com/NeverSight/learn-skills.dev
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/NeverSight/learn-skills.dev "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/skills-md/0xweaksheep/aave_farmore/aave-security-foundations" ~/.claude/skills/neversight-learn-skills-dev-aave-security-foundations && rm -rf "$T"
manifest:
data/skills-md/0xweaksheep/aave_farmore/aave-security-foundations/SKILL.mdsource content
AAVE Security Foundations
Security-first checklist for AAVE script development and operations.
Threat Areas
- Over-approval risk: unlimited ERC20 approvals can expose wallet funds.
- Health factor drift: market volatility can liquidate leveraged positions quickly.
- Interest rate mode mismatch: stable mode assumptions can fail per asset.
- RPC/data inconsistency: stale or failing RPC can produce bad decisions.
- Execution race conditions: quote-time assumptions may be invalid at execution.
Required Pre-Execution Checks
- Validate chain/token/account/amount format.
- Read reserve status (
,isActive
,isFrozen
).borrowingEnabled - Read account health (
,healthFactor
).availableBorrowsBase - Enforce HF safety threshold before
and aggressivewithdraw
.borrow - Reject execution if allowance/balance preconditions fail.
References
references/audit-checklist.mdreferences/common-failures.md