[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-aave-deleverage":3,"mdc--ps4njp-key":35,"related-org-aave-deleverage":267,"related-repo-aave-deleverage":328},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":25,"repoUrl":26,"updatedAt":27,"license":28,"forks":29,"topics":30,"repo":31,"sourceUrl":33,"mdContent":34},"deleverage","reduce risk on Aave positions","Reduce the risk on an Aave position — \"reduce my risk\", \"unwind\", \"get my health factor up\", \"I'm close to liquidation\" — by comparing the routes (repay, repay from collateral, add collateral) on the resulting health factor before recommending one.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"aave","Aave","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Faave.png",[12,16,19,22],{"name":13,"slug":14,"type":15},"Finance","finance","tag",{"name":17,"slug":18,"type":15},"Web3","web3",{"name":20,"slug":21,"type":15},"DeFi","defi",{"name":23,"slug":24,"type":15},"Risk Assessment","risk-assessment",0,"https:\u002F\u002Fgithub.com\u002Faave\u002Fskills","2026-08-30T08:53:35.023521",null,1,[],{"repoUrl":26,"stars":25,"forks":29,"topics":32,"description":28},[],"https:\u002F\u002Fgithub.com\u002Faave\u002Fskills\u002Ftree\u002FHEAD\u002Fplugins\u002Fmcp\u002Fskills\u002Fdeleverage","---\nname: deleverage\ndescription: Reduce the risk on an Aave position — \"reduce my risk\", \"unwind\", \"get my health factor up\", \"I'm close to liquidation\" — by comparing the routes (repay, repay from collateral, add collateral) on the resulting health factor before recommending one.\n---\n\n# Aave deleveraging\n\nThere are three ways to lift a health factor, and they cost the user different things. Compare them before recommending one.\n\n## Steps\n\n1. **Inspect** — `get_user_summary` for the health factor, then `get_user_positions` for the debt and collateral by asset. Identify the largest debt and the collateral with the highest liquidation threshold.\n2. **Route A: repay from wallet** — `get_markets` with `user` for the debt asset's wallet balance. If the wallet holds it, `preview_action` (action `repay`) at the amount that reaches the target health factor.\n3. **Route B: repay from collateral** — on v4, `get_repay_with_supply_quote` for 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.\n4. **Route C: add collateral** — `preview_action` (action `supply`, `enableCollateral: true`) for an asset the wallet holds.\n5. **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.\n\n## Rules\n\n- Default target health factor is **1.5** unless the user names one. Below 1.1 is urgent: say so first, then compare routes.\n- Every simulated route reports its `healthFactorAfter`; a route that cannot be simulated is described as unsimulated, not estimated.\n- Build nothing until the user picks a route; then hand over to the `safe-transactions` skill for the build.\n\n## Done when\n\n- Every route the position allows was simulated or quoted, with the health factor after.\n- The answer says which route reaches the target with the least given up, and why.\n- If the position is on v3, the answer says there is no atomic repay-from-collateral and names the health-factor dip.\n",{"data":36,"body":37},{"name":4,"description":6},{"type":38,"children":39},"root",[40,49,55,62,195,201,243,249],{"type":41,"tag":42,"props":43,"children":45},"element","h1",{"id":44},"aave-deleveraging",[46],{"type":47,"value":48},"text","Aave deleveraging",{"type":41,"tag":50,"props":51,"children":52},"p",{},[53],{"type":47,"value":54},"There are three ways to lift a health factor, and they cost the user different things. Compare them before recommending one.",{"type":41,"tag":56,"props":57,"children":59},"h2",{"id":58},"steps",[60],{"type":47,"value":61},"Steps",{"type":41,"tag":63,"props":64,"children":65},"ol",{},[66,95,136,154,185],{"type":41,"tag":67,"props":68,"children":69},"li",{},[70,76,78,85,87,93],{"type":41,"tag":71,"props":72,"children":73},"strong",{},[74],{"type":47,"value":75},"Inspect",{"type":47,"value":77}," — ",{"type":41,"tag":79,"props":80,"children":82},"code",{"className":81},[],[83],{"type":47,"value":84},"get_user_summary",{"type":47,"value":86}," for the health factor, then ",{"type":41,"tag":79,"props":88,"children":90},{"className":89},[],[91],{"type":47,"value":92},"get_user_positions",{"type":47,"value":94}," for the debt and collateral by asset. Identify the largest debt and the collateral with the highest liquidation threshold.",{"type":41,"tag":67,"props":96,"children":97},{},[98,103,104,110,112,118,120,126,128,134],{"type":41,"tag":71,"props":99,"children":100},{},[101],{"type":47,"value":102},"Route A: repay from wallet",{"type":47,"value":77},{"type":41,"tag":79,"props":105,"children":107},{"className":106},[],[108],{"type":47,"value":109},"get_markets",{"type":47,"value":111}," with ",{"type":41,"tag":79,"props":113,"children":115},{"className":114},[],[116],{"type":47,"value":117},"user",{"type":47,"value":119}," for the debt asset's wallet balance. If the wallet holds it, ",{"type":41,"tag":79,"props":121,"children":123},{"className":122},[],[124],{"type":47,"value":125},"preview_action",{"type":47,"value":127}," (action ",{"type":41,"tag":79,"props":129,"children":131},{"className":130},[],[132],{"type":47,"value":133},"repay",{"type":47,"value":135},") at the amount that reaches the target health factor.",{"type":41,"tag":67,"props":137,"children":138},{},[139,144,146,152],{"type":41,"tag":71,"props":140,"children":141},{},[142],{"type":47,"value":143},"Route B: repay from collateral",{"type":47,"value":145}," — on v4, ",{"type":41,"tag":79,"props":147,"children":149},{"className":148},[],[150],{"type":47,"value":151},"get_repay_with_supply_quote",{"type":47,"value":153}," for 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.",{"type":41,"tag":67,"props":155,"children":156},{},[157,162,163,168,169,175,177,183],{"type":41,"tag":71,"props":158,"children":159},{},[160],{"type":47,"value":161},"Route C: add collateral",{"type":47,"value":77},{"type":41,"tag":79,"props":164,"children":166},{"className":165},[],[167],{"type":47,"value":125},{"type":47,"value":127},{"type":41,"tag":79,"props":170,"children":172},{"className":171},[],[173],{"type":47,"value":174},"supply",{"type":47,"value":176},", ",{"type":41,"tag":79,"props":178,"children":180},{"className":179},[],[181],{"type":47,"value":182},"enableCollateral: true",{"type":47,"value":184},") for an asset the wallet holds.",{"type":41,"tag":67,"props":186,"children":187},{},[188,193],{"type":41,"tag":71,"props":189,"children":190},{},[191],{"type":47,"value":192},"Compare",{"type":47,"value":194}," — 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.",{"type":41,"tag":56,"props":196,"children":198},{"id":197},"rules",[199],{"type":47,"value":200},"Rules",{"type":41,"tag":202,"props":203,"children":204},"ul",{},[205,217,230],{"type":41,"tag":67,"props":206,"children":207},{},[208,210,215],{"type":47,"value":209},"Default target health factor is ",{"type":41,"tag":71,"props":211,"children":212},{},[213],{"type":47,"value":214},"1.5",{"type":47,"value":216}," unless the user names one. Below 1.1 is urgent: say so first, then compare routes.",{"type":41,"tag":67,"props":218,"children":219},{},[220,222,228],{"type":47,"value":221},"Every simulated route reports its ",{"type":41,"tag":79,"props":223,"children":225},{"className":224},[],[226],{"type":47,"value":227},"healthFactorAfter",{"type":47,"value":229},"; a route that cannot be simulated is described as unsimulated, not estimated.",{"type":41,"tag":67,"props":231,"children":232},{},[233,235,241],{"type":47,"value":234},"Build nothing until the user picks a route; then hand over to the ",{"type":41,"tag":79,"props":236,"children":238},{"className":237},[],[239],{"type":47,"value":240},"safe-transactions",{"type":47,"value":242}," skill for the build.",{"type":41,"tag":56,"props":244,"children":246},{"id":245},"done-when",[247],{"type":47,"value":248},"Done when",{"type":41,"tag":202,"props":250,"children":251},{},[252,257,262],{"type":41,"tag":67,"props":253,"children":254},{},[255],{"type":47,"value":256},"Every route the position allows was simulated or quoted, with the health factor after.",{"type":41,"tag":67,"props":258,"children":259},{},[260],{"type":47,"value":261},"The answer says which route reaches the target with the least given up, and why.",{"type":41,"tag":67,"props":263,"children":264},{},[265],{"type":47,"value":266},"If the position is on v3, the answer says there is no atomic repay-from-collateral and names the health-factor dip.",{"items":268,"total":327},[269,282,289,301,314],{"slug":270,"name":270,"fn":271,"description":272,"org":273,"tags":274,"stars":25,"repoUrl":26,"updatedAt":281},"account-activity","review Aave account activity history","An Aave account's history — past supplies, borrows, repays, withdrawals and collateral changes, and how net worth or health factor moved over time — for \"transaction history\", \"how has my position changed\", what a wallet did on Aave.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[275,278,279,280],{"name":276,"slug":277,"type":15},"Analytics","analytics",{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"name":17,"slug":18,"type":15},"2026-08-30T08:53:32.35737",{"slug":4,"name":4,"fn":5,"description":6,"org":283,"tags":284,"stars":25,"repoUrl":26,"updatedAt":27},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[285,286,287,288],{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"name":23,"slug":24,"type":15},{"name":17,"slug":18,"type":15},{"slug":240,"name":240,"fn":290,"description":291,"org":292,"tags":293,"stars":25,"repoUrl":26,"updatedAt":300},"prepare Aave protocol transactions","Prepare an Aave state change — supply, borrow, withdraw, repay, or any other prepare_* action — when asked to supply\u002Fborrow\u002Frepay\u002Fwithdraw, close or adjust a position, or build an Aave transaction.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[294,295,298,299],{"name":20,"slug":21,"type":15},{"name":296,"slug":297,"type":15},"Ethereum","ethereum",{"name":13,"slug":14,"type":15},{"name":17,"slug":18,"type":15},"2026-08-30T08:53:31.822763",{"slug":302,"name":302,"fn":303,"description":304,"org":305,"tags":306,"stars":25,"repoUrl":26,"updatedAt":313},"tx-confirmation","confirm Aave transaction status","Confirm what an Aave transaction did after the user signed it — \"did it go through\", \"was my supply processed\", \"check my transaction\" — by reading the position it left behind and comparing with what was simulated.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[307,308,309,312],{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"name":310,"slug":311,"type":15},"Monitoring","monitoring",{"name":17,"slug":18,"type":15},"2026-08-30T08:53:36.065957",{"slug":315,"name":315,"fn":316,"description":317,"org":318,"tags":319,"stars":25,"repoUrl":26,"updatedAt":326},"yield-analysis","analyze Aave yield and interest rates","Compare Aave yields and rates — best APY for an asset, rates across chains or between V3 and V4, APY history and stability, GHO savings (sGHO) — before recommending where to supply or borrow.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[320,323,324,325],{"name":321,"slug":322,"type":15},"Analysis","analysis",{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"name":17,"slug":18,"type":15},"2026-08-30T08:53:35.543006",5,{"items":329,"total":327},[330,337,344,351,358],{"slug":270,"name":270,"fn":271,"description":272,"org":331,"tags":332,"stars":25,"repoUrl":26,"updatedAt":281},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[333,334,335,336],{"name":276,"slug":277,"type":15},{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"name":17,"slug":18,"type":15},{"slug":4,"name":4,"fn":5,"description":6,"org":338,"tags":339,"stars":25,"repoUrl":26,"updatedAt":27},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[340,341,342,343],{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"name":23,"slug":24,"type":15},{"name":17,"slug":18,"type":15},{"slug":240,"name":240,"fn":290,"description":291,"org":345,"tags":346,"stars":25,"repoUrl":26,"updatedAt":300},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[347,348,349,350],{"name":20,"slug":21,"type":15},{"name":296,"slug":297,"type":15},{"name":13,"slug":14,"type":15},{"name":17,"slug":18,"type":15},{"slug":302,"name":302,"fn":303,"description":304,"org":352,"tags":353,"stars":25,"repoUrl":26,"updatedAt":313},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[354,355,356,357],{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"name":310,"slug":311,"type":15},{"name":17,"slug":18,"type":15},{"slug":315,"name":315,"fn":316,"description":317,"org":359,"tags":360,"stars":25,"repoUrl":26,"updatedAt":326},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[361,362,363,364],{"name":321,"slug":322,"type":15},{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"name":17,"slug":18,"type":15}]