deleverage
Installation
SKILL.md
Aave deleveraging
Every tool named below comes from Aave's MCP server, https://mcp.aave.com. If get_markets is not
available, add it first: claude mcp add --transport http aave https://mcp.aave.com (Claude Code),
codex mcp add aave --url https://mcp.aave.com (Codex), or point any other MCP client at the URL.
There are three ways to lift a health factor, and they cost the user different things. Compare them before recommending one.
Steps
- Inspect —
get_user_summaryfor the health factor, thenget_user_positionsfor the debt and collateral by asset. Identify the largest debt and the collateral with the highest liquidation threshold. - Route A: repay from wallet —
get_marketswithuserfor the debt asset's wallet balance. If the wallet holds it,preview_action(actionrepay) at the amount that reaches the target health factor. - Route B: repay from collateral — on v4,
get_repay_with_supply_quotefor the debt against the collateral; it is atomic and the health factor never passes through a worse state. On v3 there is no atomic route: a withdraw → repay sequence dips the health factor between steps, and that must be said. - Route C: add collateral —
preview_action(actionsupply,enableCollateral: true) for an asset the wallet holds. - Compare — one table: route, what the user gives up, health factor after, and what remains at risk. Recommend the route that reaches the target with the least the user must part with, and say why the others rank lower.