/galleon-defi-lending-skills:galleon-euler-lendingfrom galleon-defi-lending-skills
Inspects Euler V2 EVK lending operations: borrow, repay, collateral withdrawal, EVC subaccounts, collateral enablement, and controller risk. Uses the official Euler V2 SDK for read-only analysis.
Ships in galleon-defi-lending-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Resolve chain ID, owner, EVC subaccount, collateral vault, borrowing vault, amount/unit and requested operation. EulerEarn allocation vaults are a separate product. Use the current official @eulerxyz/euler-v2-sdk release and its deployment resolver; pin the tested version. Do not use the archived legacy Euler SDK or derive subaccount ownership from a ticker.
For a read-only TypeScript client built with buildEulerSDK, call accountService.fetchAccount(chainId, owner, { populateAll: true }) and vaultMetaService.fetchVault(chainId, vault). Inspect result and any failures; do not assume a populated account contains every subaccount. Fetch the selected subaccount explicitly through the version-matched service. Record enabled collateral, controller, debt, share balances, oracle unit, rate, cash, caps, hooks and current borrowing/liquidation LTVs.
Synthetic collateral is worth 20,000 in the borrow vault's accounting unit. Its borrow LTV is 70%, liquidation LTV 80%, and accrued debt 13,000. A 2,000 borrow would exceed the 14,000 borrow capacity even though 15,000 remains below 16,000 liquidation capacity. Decline that requested size. A 20% collateral decline reduces liquidation capacity to 12,800, already below existing debt; flag the stress exposure independently of the failed new borrow.
If the oracle is stale, controller differs from the expected vault, a hook rejects the action, or cash cannot cover the withdrawal, return the failed prerequisite with the observed value. Do not bypass a hook or choose another controller to force success.
Return account/vault identities, block, scales, enabled collateral/controller, both capacities, stress assumptions, available liquidity and the exact missing prerequisite. Planning ends with the unsigned complete batch and simulation evidence. Research grants no signing or operator authority. For separately authorized execution, reconcile the original hash and nonce before any retry, then confirm receipt and reread debt, shares and receiver balances.
Read current official sources and interface limits for the selected deployment. This independently installable workflow was reviewed on 2026-10-25; live amounts, access and contract configuration must be refreshed at use time.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
euler-v2, evk, defi-lending, collateral-risk, subaccount-analysis
Other plugins' skills for the same job
npx claudepluginhub galleonlabs/crypto-defi-skills --plugin galleon-defi-lending-skills9 skills in this plugin
/galleon-aave-positionUse when checking an Aave V3 health factor, sizing a borrow, or planning a repay and collateral withdrawal; use for eMode and isolation constraints, not Aave V4./galleon-aave-v4Use when inspecting an Aave V4 Hub/Spoke position, sizing supply or borrowing, preparing repay/withdraw calls, or reconciling a V4 execution plan through official Aave MCP or AaveKit. V3 Pools, eMode and Aptos require their own interfaces./galleon-compound-borrowUse when planning a Compound III Comet base-asset borrow, repayment or collateral withdrawal and checking baseBorrowMin and collateral factors.