$npx -y skills add franalgaba/grimoire --skill grimoire-aaveFetches Aave V3 public market data using the Grimoire venue CLI. Use when you need Aave health checks, chain listings, market metadata, or reserve info.
| 1 | # Grimoire Aave Skill |
| 2 | |
| 3 | Use this skill to query Aave V3 metadata and reserve snapshots for strategy inputs. |
| 4 | |
| 5 | Preferred invocations: |
| 6 | |
| 7 | - `grimoire venue aave ...` |
| 8 | - `npx -y @grimoirelabs/cli venue aave ...` (no-install) |
| 9 | - `bun run packages/cli/src/index.ts venue aave ...` (repo-local) |
| 10 | - `grimoire-aave ...` (direct binary from `@grimoirelabs/venues`) |
| 11 | |
| 12 | Recommended preflight: |
| 13 | |
| 14 | - `grimoire venue doctor --adapter aave --chain 1 --rpc-url <rpc> --json` |
| 15 | |
| 16 | ## Commands |
| 17 | |
| 18 | - `grimoire venue aave health` — check Aave protocol health |
| 19 | - `grimoire venue aave chains` — list supported chains |
| 20 | - `grimoire venue aave markets --chain <id> [--user <address>]` — list markets on a chain (optionally with user positions) |
| 21 | - `grimoire venue aave market --chain <id> --address <market> [--user <address>]` — single market details |
| 22 | - `grimoire venue aave reserve --chain <id> --market <address> --token <address>` — single reserve details |
| 23 | - `grimoire venue aave reserves --chain <id> [--market <address>] [--asset <symbol|address>]` — list reserves with optional filters |
| 24 | - `grimoire venue aave reserves-snapshot --chain <id> [--market <address>] [--asset <symbol|address>]` — generate spell `params:` block for reserves (agent-only) |
| 25 | |
| 26 | ## Examples |
| 27 | |
| 28 | ```bash |
| 29 | grimoire venue aave health |
| 30 | grimoire venue aave health --format table |
| 31 | grimoire venue aave chains |
| 32 | grimoire venue aave markets --chain 1 --format table |
| 33 | grimoire venue aave market --chain 1 --address 0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2 |
| 34 | grimoire venue aave reserve --chain 1 --market 0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2 --token 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 |
| 35 | grimoire venue aave reserves --chain 1 --asset USDC --format table |
| 36 | grimoire venue aave reserves --chain 1 --asset USDC --format spell |
| 37 | grimoire venue aave reserves-snapshot --chain 1 --asset USDC |
| 38 | ``` |
| 39 | |
| 40 | Use `reserves-snapshot` to emit a `params:` block for spell inputs. This is an agent-only command (output suppressed in interactive mode). |
| 41 | |
| 42 | ## Supported Chains |
| 43 | |
| 44 | | Chain | Market Address | |
| 45 | |-------|---------------| |
| 46 | | Ethereum (1) | `0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2` | |
| 47 | | Base (8453) | `0xA238Dd80C259a72e81d7e4664a9801593F98d1c5` | |
| 48 | |
| 49 | ## Spell Constraints |
| 50 | |
| 51 | Aave V3 actions do not currently support runtime constraints (`max_slippage`, `min_output`, etc.). The adapter handles approvals and amount conversion automatically. |
| 52 | |
| 53 | ```spell |
| 54 | aave_v3.lend(USDC, params.amount) |
| 55 | aave_v3.withdraw(USDC, params.amount) |
| 56 | aave_v3.borrow(USDC, params.amount) |
| 57 | aave_v3.repay(USDC, params.amount) |
| 58 | ``` |
| 59 | |
| 60 | ## Metric Surface (Spell Comparisons) |
| 61 | |
| 62 | Aave exposes the `apy` metric surface for comparisons: |
| 63 | |
| 64 | ```spell |
| 65 | aave_apy = apy(aave, USDC) |
| 66 | aave_apy_generic = metric("apy", aave, USDC) |
| 67 | ``` |
| 68 | |
| 69 | Use this in conditional logic (for example, compare against Morpho APY before reallocating). |
| 70 | |
| 71 | ## Amount Format |
| 72 | |
| 73 | The `@aave/client` SDK uses different amount formats per action: |
| 74 | |
| 75 | | Action | Format | Example (0.1 USDC) | |
| 76 | |--------|--------|---------------------| |
| 77 | | supply | `value: "0.1"` | Human-readable BigDecimal | |
| 78 | | borrow | `value: "0.1"` | Human-readable BigDecimal | |
| 79 | | withdraw | `value: { exact: "100000" }` | Raw amount in `exact` wrapper | |
| 80 | | repay | `value: { exact: "100000" }` | Raw amount in `exact` wrapper | |
| 81 | |
| 82 | The adapter handles this conversion automatically. |
| 83 | |
| 84 | ## Notes |
| 85 | |
| 86 | - Read-only metadata endpoints only. |
| 87 | - Outputs JSON/table; `reserves` also supports `--format spell`. |
| 88 | - Prefer `--format json` in automation; use table for quick interactive checks. |