skills/aave/SKILL.md
Manage Aave V3 DeFi positions on Base — supply, borrow, repay, withdraw, view markets, and check account health. Supports --simulate for gas estimation. Includes liquidation safety checks.
npx skillsauth add fibrous-finance/fibx-skills aaveInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Interact with the Aave V3 lending protocol on Base only. View market data, supply assets to earn yield, borrow against collateral, repay debt, or withdraw.
status, supply, borrow, repay, withdraw.markets does not require authentication — it is a public on-chain query.npx fibx@latest balance to verify enough ETH for gas.borrow, you MUST run npx fibx@latest aave status to check the Health Factor:
max as the amount for repay and withdraw. This sends MAX_UINT256 to the contract.ETH as the token symbol for these actions.npx fibx@latest aave <action> [amount] [token] [--simulate] [--json]
| Action | Description | Example |
| ---------- | ------------------------------------------ | --------------------------------------- |
| status | Account health, LTV, net worth | npx fibx@latest aave status |
| markets | List all active reserves with APY & TVL | npx fibx@latest aave markets |
| supply | Deposit assets (auto-wraps ETH) | npx fibx@latest aave supply 1 ETH |
| borrow | Borrow against collateral | npx fibx@latest aave borrow 50 USDC |
| repay | Repay debt (auto-wraps ETH) | npx fibx@latest aave repay max ETH |
| withdraw | Withdraw assets (auto-unwraps WETH -> ETH) | npx fibx@latest aave withdraw max ETH |
| Parameter | Type | Description | Required |
| ---------- | ------ | --------------------------------------------------------------- | ------------------------------- |
| action | string | status, markets, supply, borrow, repay, or withdraw | Yes |
| amount | string | Amount or max (for full repay/withdraw) | Yes (except status/markets) |
| token | string | Token symbol (USDC, ETH, DAI, etc.) | Yes (except status/markets) |
| simulate | flag | Estimate gas without executing the transaction | No |
| json | flag | Output as JSON | No |
When repaying or withdrawing, always prefer max if the user wants to fully close a position.
Passing max sends MAX_UINT256 to the Aave contract, which covers all accrued interest and prevents tiny residual balances (e.g. 0.000001 USDC) from remaining.
npx fibx@latest aave repay max USDC # Repays all debt including accrued interest
npx fibx@latest aave withdraw max USDC # Withdraws entire supplied position
User: "What markets are available on Aave?"
npx fibx@latest aave markets
User: "How is my Aave position doing?"
npx fibx@latest aave status
User: "Supply 1 ETH to Aave"
npx fibx@latest balance
npx fibx@latest aave supply 1 ETH
User: "How much gas would supplying 1 ETH cost?"
npx fibx@latest aave supply 1 ETH --simulate
User: "Borrow 100 USDC"
npx fibx@latest aave status
# If Health Factor > 1.5:
npx fibx@latest aave borrow 100 USDC
User: "Repay my ETH debt"
npx fibx@latest aave repay max ETH
| Error | Action |
| ------------------------- | -------------------------------------------------------------- |
| Health Factor too low | Blocked to prevent liquidation. Suggest repaying or supplying. |
| Insufficient collateral | Cannot borrow without supplying first. |
| Insufficient balance | Check balance — user may need to swap for the token first. |
| Not authenticated | Run authenticate-wallet skill first. |
| Rate limit / 429 | Use config skill to set a custom RPC. |
trade to swap tokens before supplying (e.g. swap ETH → USDC, then supply USDC).balance to verify available assets before any Aave operation.portfolio to see Aave positions alongside all token holdings with USD values.config to set a custom RPC if you encounter rate limit errors.testing
Create, edit, improve, or audit AgentSkills. Use when creating a new skill from scratch or when asked to improve, review, audit, tidy up, or clean up an existing skill or SKILL.md file. Also use when editing or restructuring a skill directory (moving files to references/ or scripts/, removing stale content, validating against the AgentSkills spec). Triggers on phrases like "create a skill", "author a skill", "tidy up a skill", "improve this skill", "review the skill", "clean up the skill", "audit the skill".
testing
Host security hardening and risk-tolerance configuration for OpenClaw deployments. Use when a user asks for security audits, firewall/SSH/update hardening, risk posture, exposure review, OpenClaw cron scheduling for periodic checks, or version status checks on a machine running OpenClaw (laptop, workstation, Pi, VPS).
testing
Create, edit, improve, or audit AgentSkills. Use when creating a new skill from scratch or when asked to improve, review, audit, tidy up, or clean up an existing skill or SKILL.md file. Also use when editing or restructuring a skill directory (moving files to references/ or scripts/, removing stale content, validating against the AgentSkills spec). Triggers on phrases like "create a skill", "author a skill", "tidy up a skill", "improve this skill", "review the skill", "clean up the skill", "audit the skill".
testing
Host security hardening and risk-tolerance configuration for OpenClaw deployments. Use when a user asks for security audits, firewall/SSH/update hardening, risk posture, exposure review, OpenClaw cron scheduling for periodic checks, or version status checks on a machine running OpenClaw (laptop, workstation, Pi, VPS).