[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DTHPZ5ZYRZK8EREHVPN1GR":3,"skill-same:01M7DTHPZ5ZYRZK8EREHVPN1GR":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":52,"ownerDescription":53,"updatedAt":54,"install":55,"resources":68},"01M7DTHPZ5ZYRZK8EREHVPN1GR","lending",null,"Manage Vesu V2 lending positions on Starknet — supply assets, borrow against collateral, repay debt, withdraw, close positions, monitor health factors, and auto-rebalance risky positions. Use this skill when the user mentions lending, borrowing, supplying collateral, Vesu, earn interest, health factor, liquidation risk, monitoring positions, auto-rebalancing, protecting against liquidation, \"my position is risky\", \"health factor low\", or DeFi yield from lending protocols — even if they don't say \"lending\" explicitly.","jiayaoqijia\u002Fcryptoskill","jiayaoqijia","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1453879?v=4","01M6GMYTX7Q7S504VC6E756ENR","YQ","01M6GMYV1QKJ1CC75MTTGT9PR0",81,"MIT","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-lending\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-lending\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: lending\ndescription: Manage Vesu V2 lending positions on Starknet — supply assets, borrow against collateral, repay debt, withdraw, close positions, monitor health factors, and auto-rebalance risky positions. Use this skill when the user mentions lending, borrowing, supplying collateral, Vesu, earn interest, health factor, liquidation risk, monitoring positions, auto-rebalancing, protecting against liquidation, \"my position is risky\", \"health factor low\", or DeFi yield from lending protocols — even if they don't say \"lending\" explicitly.\nlicense: MIT\ncompatibility: Requires Node.js 22+ and npx.\nmetadata:\n    version: 0.2.0\n    author: ahmetenesdur\n    category: transaction\nallowed-tools:\n    - Bash(npx starkfi@latest lend-pools)\n    - Bash(npx starkfi@latest lend-pools *)\n    - Bash(npx starkfi@latest lend-status *)\n    - Bash(npx starkfi@latest lend-supply *)\n    - Bash(npx starkfi@latest lend-withdraw *)\n    - Bash(npx starkfi@latest lend-borrow *)\n    - Bash(npx starkfi@latest lend-repay *)\n    - Bash(npx starkfi@latest lend-close *)\n    - Bash(npx starkfi@latest lend-monitor)\n    - Bash(npx starkfi@latest lend-monitor *)\n    - Bash(npx starkfi@latest lend-auto *)\n    - Bash(npx starkfi@latest status)\n    - Bash(npx starkfi@latest balance)\n    - Bash(npx starkfi@latest balance *)\n    - Bash(npx starkfi@latest tx-status *)\n---\n\n# Lending (Vesu V2)\n\nManage lending and borrowing positions on Vesu V2 protocol on Starknet. Supply assets to earn yield, borrow against collateral, repay debt, monitor health factors, auto-rebalance risky positions, and close positions.\n\n## Prerequisites\n\n- Active session required.\n- Sufficient token balance for supply\u002Frepay operations + gas fees.\n\n## Rules\n\n1. BEFORE any lending action, run `npx starkfi@latest lend-pools` to discover available pools and tokens. Use `lend-pools \u003Cname>` for detailed pool info including APY rates.\n2. Pool can be specified by **name** (e.g. `Prime`, `Genesis`) or by **contract address** (`0x...`).\n3. BEFORE borrowing, run `npx starkfi@latest lend-status` to check existing positions, or with `--pool` and `--collateral-token` for Health Factor. Health Factor = collateral value × the pair's max LTV \u002F debt value (shown as `maxLtv`); **below 1.0 Vesu can liquidate the position**.\n    - Health Factor **> 2.0** → Safe to borrow.\n    - Health Factor **1.5 – 2.0** → WARN the user about increasing risk.\n    - Health Factor **\u003C 1.5** → STRONGLY advise against borrowing. Suggest repaying instead.\n    - Health Factor **\u003C 1.1** → DO NOT proceed without explicit double-confirmation from the user.\n    - Health Factor **\u003C 1.0** → The position can be liquidated now. Tell the user immediately and suggest `lend-auto --simulate`.\n4. AFTER any transactional operation, verify with `tx-status`.\n5. When using `--use-supplied`, the borrow is backed by the user's existing earn positions (supplied positions) rather than transferring from wallet.\n6. When the user asks about health, risk, or liquidation — use `lend-monitor` first for a comprehensive overview with 4-level risk classification (SAFE\u002FWARNING\u002FDANGER\u002FCRITICAL).\n7. When a position's health factor is low, suggest `lend-auto` to automatically rebalance. Always use `--simulate` first to preview the action before executing.\n\n## Commands\n\n### Discovery\n\n```bash\n# List all pools (overview table)\nnpx starkfi@latest lend-pools [--json]\n\n# Detailed pool info with APY rates\nnpx starkfi@latest lend-pools \u003Cname> [--json]\n\n# View all lending positions (auto-scan)\nnpx starkfi@latest lend-status\n\n# View specific position status\nnpx starkfi@latest lend-status --pool \u003Cname|address> --collateral-token \u003Csymbol> [--borrow-token \u003Csymbol>]\n```\n\n### Supply & Withdraw\n\n```bash\n# Supply (deposit assets to earn yield)\nnpx starkfi@latest lend-supply \u003Camount> --pool \u003Cname|address> --token \u003Csymbol> [--simulate]\n\n# Withdraw (remove supplied assets)\nnpx starkfi@latest lend-withdraw \u003Camount> --pool \u003Cname|address> --token \u003Csymbol> [--simulate]\n```\n\n### Borrow & Repay\n\n```bash\n# Borrow (provide collateral and take loan)\nnpx starkfi@latest lend-borrow \\\n  --pool \u003Cname|address> \\\n  --collateral-amount \u003Cn> --collateral-token \u003Csymbol> \\\n  --borrow-amount \u003Cn> --borrow-token \u003Csymbol> \\\n  [--use-supplied] [--simulate]\n\n# Repay (pay back borrowed amount)\nnpx starkfi@latest lend-repay \u003Camount> --pool \u003Cname|address> --token \u003Csymbol> --collateral-token \u003Csymbol> [--simulate]\n```\n\n### Close Position\n\n```bash\n# Atomically repay all debt and withdraw all collateral\nnpx starkfi@latest lend-close --pool \u003Cname|address> --collateral-token \u003Csymbol> --borrow-token \u003Csymbol> [--simulate]\n```\n\n### Health Monitoring\n\n```bash\n# Scan all positions across all pools\nnpx starkfi@latest lend-monitor [--json]\n\n# Monitor specific position\nnpx starkfi@latest lend-monitor --pool \u003Cname|address> --collateral-token \u003Csymbol> --borrow-token \u003Csymbol>\n\n# Custom warning threshold\nnpx starkfi@latest lend-monitor --warning-threshold 1.5\n```\n\n### Auto-Rebalance\n\n```bash\n# Auto-rebalance (picks best strategy — repay or add collateral)\nnpx starkfi@latest lend-auto --pool \u003Cname|address> --collateral-token \u003Csymbol> --borrow-token \u003Csymbol>\n\n# With specific strategy\nnpx starkfi@latest lend-auto --pool \u003Cname|address> --collateral-token \u003Csymbol> --borrow-token \u003Csymbol> --strategy repay\nnpx starkfi@latest lend-auto --pool \u003Cname|address> --collateral-token \u003Csymbol> --borrow-token \u003Csymbol> --strategy add-collateral\n\n# Simulate first (always recommended)\nnpx starkfi@latest lend-auto --pool \u003Cname|address> --collateral-token \u003Csymbol> --borrow-token \u003Csymbol> --simulate\n```\n\n## Parameters\n\n### lend-supply \u002F lend-withdraw\n\n| Parameter | Type   | Description                                | Required |\n| --------- | ------ | ------------------------------------------ | -------- |\n| `amount`     | number | Amount (positional)                        | Yes      |\n| `--pool`     | string | Pool name or address                       | Yes      |\n| `--token`    | string | Token symbol (`USDC`, `ETH`, `STRK`, etc.) | Yes      |\n| `--simulate` | flag   | Estimate fees and validate without executing | No     |\n\n### lend-borrow\n\n| Parameter             | Type   | Description                           | Required |\n| --------------------- | ------ | ------------------------------------- | -------- |\n| `--pool`              | string | Pool name or address                  | Yes      |\n| `--collateral-amount` | number | Collateral amount to supply           | Yes      |\n| `--collateral-token`  | string | Collateral token (e.g. `ETH`, `STRK`) | Yes      |\n| `--borrow-amount`     | number | Amount to borrow                      | Yes      |\n| `--borrow-token`      | string | Token to borrow (e.g. `USDC`, `USDT`) | Yes      |\n| `--use-supplied`      | flag   | Use existing earn positions as collateral    | No       |\n| `--simulate`          | flag   | Estimate fees and validate without executing | No       |\n\n### lend-repay\n\n| Parameter            | Type   | Description                      | Required |\n| -------------------- | ------ | -------------------------------- | -------- |\n| `amount`             | number | Amount to repay (positional)     | Yes      |\n| `--pool`             | string | Pool name or address             | Yes      |\n| `--token`            | string | Token to repay (e.g. `USDC`)     | Yes      |\n| `--collateral-token` | string | Collateral token of the position | Yes      |\n| `--simulate`         | flag   | Estimate fees and validate without executing | No |\n\n### lend-close\n\n| Parameter            | Type   | Description             | Required |\n| -------------------- | ------ | ----------------------- | -------- |\n| `--pool`             | string | Pool name or address    | Yes      |\n| `--collateral-token` | string | Collateral token symbol | Yes      |\n| `--borrow-token`     | string | Borrow token symbol     | Yes      |\n| `--simulate`         | flag   | Estimate fees and validate without executing | No |\n\n### lend-status\n\nRun without arguments to **auto-scan all pools**. Or specify `--pool` + `--collateral-token` for a detailed position view.\n\n| Parameter            | Type   | Description                            | Required              |\n| -------------------- | ------ | -------------------------------------- | --------------------- |\n| `--pool`             | string | Pool name or address                   | No (auto-scan if omitted) |\n| `--collateral-token` | string | Token supplied\u002Fused as collateral      | No*                   |\n| `--borrow-token`     | string | Borrow token (needed to see debt + HF) | No                    |\n\n> \\* Required when `--pool` is specified.\n\n### lend-monitor\n\nRun without arguments to **scan all pools**. Or specify `--pool` + `--collateral-token` + `--borrow-token` for a single position.\n\n| Parameter              | Type   | Description                          | Required                  |\n| ---------------------- | ------ | ------------------------------------ | ------------------------- |\n| `--pool`               | string | Pool name or address                 | No (scans all if omitted) |\n| `--collateral-token`   | string | Collateral token symbol              | No*                       |\n| `--borrow-token`       | string | Debt token symbol                    | No*                       |\n| `--warning-threshold`  | number | Custom warning threshold (default: 1.3) | No                     |\n\n> \\* Required when `--pool` is specified.\n\n**Risk Levels:**\n\nHealth Factor = collateral value × the pair's max LTV \u002F debt value. 1.0 is the liquidation point.\n\n| Level        | Health Factor | Meaning                                            |\n| ------------ | ------------- | -------------------------------------------------- |\n| **SAFE**     | > 1.3         | No action needed                                   |\n| **WARNING**  | 1.1 – 1.3     | Monitor closely                                    |\n| **DANGER**   | 1.05 – 1.1    | Repay debt or add collateral                       |\n| **CRITICAL** | ≤ 1.05        | Liquidation imminent; below 1.0 it can happen now  |\n\n### lend-auto\n\n| Parameter              | Type   | Description                                    | Required |\n| ---------------------- | ------ | ---------------------------------------------- | -------- |\n| `--pool`               | string | Pool name or address                           | Yes      |\n| `--collateral-token`   | string | Collateral token symbol                        | Yes      |\n| `--borrow-token`       | string | Debt token symbol                              | Yes      |\n| `--strategy`           | string | `repay`, `add-collateral`, or `auto` (default) | No       |\n| `--target-hf`          | number | Target health factor (default: 1.3)            | No       |\n| `--simulate`           | flag   | Estimate fees and validate without executing | No       |\n\n## Examples\n\n**User:** \"What lending pools are available?\"\n\n```bash\nnpx starkfi@latest lend-pools\n```\n\n**User:** \"Show me details for the Prime pool\"\n\n```bash\nnpx starkfi@latest lend-pools Prime\n```\n\n**User:** \"Supply 500 USDC to Prime\"\n\n```bash\nnpx starkfi@latest status\nnpx starkfi@latest balance --token USDC\nnpx starkfi@latest lend-supply 500 --pool Prime --token USDC --simulate  # Preview first\nnpx starkfi@latest lend-supply 500 --pool Prime --token USDC             # Execute\nnpx starkfi@latest tx-status \u003Chash>\n```\n\n**User:** \"Borrow 100 USDC with ETH collateral from Prime\"\n\n```bash\nnpx starkfi@latest lend-status\n# Check Health Factor before proceeding\nnpx starkfi@latest lend-borrow \\\n  --pool Prime \\\n  --collateral-amount 0.1 --collateral-token ETH \\\n  --borrow-amount 100 --borrow-token USDC\nnpx starkfi@latest tx-status \u003Chash>\n```\n\n**User:** \"Repay my 100 USDC loan from Prime\"\n\n```bash\nnpx starkfi@latest lend-repay 100 --pool Prime --token USDC --collateral-token ETH\nnpx starkfi@latest tx-status \u003Chash>\n```\n\n**User:** \"Close my ETH\u002FUSDC position in Prime\"\n\n```bash\nnpx starkfi@latest lend-close --pool Prime --collateral-token ETH --borrow-token USDC\nnpx starkfi@latest tx-status \u003Chash>\n```\n\n**User:** \"How healthy is my position?\"\n\n```bash\n# Comprehensive health monitoring with risk levels\nnpx starkfi@latest lend-monitor\n\n# Detailed health factor for specific position\nnpx starkfi@latest lend-monitor --pool Prime --collateral-token ETH --borrow-token USDC\n```\n\n**User:** \"My position is at risk, fix it\"\n\n```bash\n# First, check current state\nnpx starkfi@latest lend-monitor --pool Prime --collateral-token ETH --borrow-token USDC\n\n# Simulate the auto-rebalance action\nnpx starkfi@latest lend-auto --pool Prime --collateral-token ETH --borrow-token USDC --simulate\n\n# Execute after user confirms\nnpx starkfi@latest lend-auto --pool Prime --collateral-token ETH --borrow-token USDC\nnpx starkfi@latest tx-status \u003Chash>\n```\n\n**User:** \"Protect my ETH\u002FUSDC position from liquidation\"\n\n```bash\n# Choose a specific strategy — repay debt\nnpx starkfi@latest lend-auto --pool Prime --collateral-token ETH --borrow-token USDC --strategy repay --simulate\n```\n\n## Error Handling\n\n| Error                     | Action                                                        |\n| ------------------------- | ------------------------------------------------------------- |\n| `Pool not found`          | Run `lend-pools` to list valid pool names.                    |\n| `Health Factor too low`   | Warn of liquidation risk. Suggest repaying or supplying more. |\n| `Insufficient collateral` | Cannot borrow without supplying first.                        |\n| `Dust limit`              | Borrow amount is below the pool's minimum dollar value (~$10). Increase it. |\n| `Insufficient balance`    | Check `balance` — user may need to swap for the token.        |\n| `Not authenticated`       | Run `authenticate-wallet` skill first.                        |\n| `Monitor failed`          | Check pool\u002Ftoken params and retry.                            |\n| `Rebalance failed`        | Check balances, health factor, and retry.                     |\n\n## Related Skills\n\n- Use `balance` to verify available assets before supplying.\n- Use `trade` to swap tokens if the user doesn't have the right asset.\n- Use `portfolio` for a full overview including lending positions with USD values.\n- Use `batch` to combine supply operations with swaps, staking, or vault deposits.\n- Use `troves` for vault-based yield strategies (different from lending).\n- Use `lst` for liquid staking yield (xSTRK can also be supplied to lending pools).\n- Use `portfolio-rebalance` (within `portfolio` skill) to optimize overall portfolio allocation.\n","# Lending (Vesu V2)\n\nManage lending and borrowing positions on Vesu V2 protocol on Starknet. Supply assets to earn yield, borrow against collateral, repay debt, monitor health factors, auto-rebalance risky positions, and close positions.\n\n## Prerequisites\n\n- Active session required.\n- Sufficient token balance for supply\u002Frepay operations + gas fees.\n\n## Rules\n\n1. BEFORE any lending action, run `npx starkfi@latest lend-pools` to discover available pools and tokens. Use `lend-pools \u003Cname>` for detailed pool info including APY rates.\n2. Pool can be specified by **name** (e.g. `Prime`, `Genesis`) or by **contract address** (`0x...`).\n3. BEFORE borrowing, run `npx starkfi@latest lend-status` to check existing positions, or with `--pool` and `--collateral-token` for Health Factor. Health Factor = collateral value × the pair's max LTV \u002F debt value (shown as `maxLtv`); **below 1.0 Vesu can liquidate the position**.\n    - Health Factor **> 2.0** → Safe to borrow.\n    - Health Factor **1.5 – 2.0** → WARN the user about increasing risk.\n    - Health Factor **\u003C 1.5** → STRONGLY advise against borrowing. Suggest repaying instead.\n    - Health Factor **\u003C 1.1** → DO NOT proceed without explicit double-confirmation from the user.\n    - Health Factor **\u003C 1.0** → The position can be liquidated now. Tell the user immediately and suggest `lend-auto --simulate`.\n4. AFTER any transactional operation, verify with `tx-status`.\n5. When using `--use-supplied`, the borrow is backed by the user's existing earn positions (supplied positions) rather than transferring from wallet.\n6. When the user asks about health, risk, or liquidation — use `lend-monitor` first for a comprehensive overview with 4-level risk classification (SAFE\u002FWARNING\u002FDANGER\u002FCRITICAL).\n7. When a position's health factor is low, suggest `lend-auto` to automatically rebalance. Always use `--simulate` first to preview the action before executing.\n\n## Commands\n\n### Discovery\n\n```bash\n# List all pools (overview table)\nnpx starkfi@latest lend-pools [--json]\n\n# Detailed pool info with APY rates\nnpx starkfi@latest lend-pools \u003Cname> [--json]\n\n# View all lending positions (auto-scan)\nnpx starkfi@latest lend-status\n\n# View specific position status\nnpx starkfi@latest lend-status --pool \u003Cname|address> --collateral-token \u003Csymbol> [--borrow-token \u003Csymbol>]\n```\n\n### Supply & Withdraw\n\n```bash\n# Supply (deposit assets to earn yield)\nnpx starkfi@latest lend-supply \u003Camount> --pool \u003Cname|address> --token \u003Csymbol> [--simulate]\n\n# Withdraw (remove supplied assets)\nnpx starkfi@latest lend-withdraw \u003Camount> --pool \u003Cname|address> --token \u003Csymbol> [--simulate]\n```\n\n### Borrow & Repay\n\n```bash\n# Borrow (provide collateral and take loan)\nnpx starkfi@latest lend-borrow \\\n  --pool \u003Cname|address> \\\n  --collateral-amount \u003Cn> --collateral-token \u003Csymbol> \\\n  --borrow-amount \u003Cn> --borrow-token \u003Csymbol> \\\n  [--use-supplied] [--simulate]\n\n# Repay (pay back borrowed amount)\nnpx starkfi@latest lend-repay \u003Camount> --pool \u003Cname|address> --token \u003Csymbol> --collateral-token \u003Csymbol> [--simulate]\n```\n\n### Close Position\n\n```bash\n# Atomically repay all debt and withdraw all collateral\nnpx starkfi@latest lend-close --pool \u003Cname|address> --collateral-token \u003Csymbol> --borrow-token \u003Csymbol> [--simulate]\n```\n\n### Health Monitoring\n\n```bash\n# Scan all positions across all pools\nnpx starkfi@latest lend-monitor [--json]\n\n# Monitor specific position\nnpx starkfi@latest lend-monitor --pool \u003Cname|address> --collateral-token \u003Csymbol> --borrow-token \u003Csymbol>\n\n# Custom warning threshold\nnpx starkfi@latest lend-monitor --warning-threshold 1.5\n```\n\n### Auto-Rebalance\n\n```bash\n# Auto-rebalance (picks best strategy — repay or add collateral)\nnpx starkfi@latest lend-auto --pool \u003Cname|address> --collateral-token \u003Csymbol> --borrow-token \u003Csymbol>\n\n# With specific strategy\nnpx starkfi@latest lend-auto --pool \u003Cname|address> --collateral-token \u003Csymbol> --borrow-token \u003Csymbol> --strategy repay\nnpx starkfi@latest lend-auto --pool \u003Cname|address> --collateral-token \u003Csymbol> --borrow-token \u003Csymbol> --strategy add-collateral\n\n# Simulate first (always recommended)\nnpx starkfi@latest lend-auto --pool \u003Cname|address> --collateral-token \u003Csymbol> --borrow-token \u003Csymbol> --simulate\n```\n\n## Parameters\n\n### lend-supply \u002F lend-withdraw\n\n| Parameter | Type   | Description                                | Required |\n| --------- | ------ | ------------------------------------------ | -------- |\n| `amount`     | number | Amount (positional)                        | Yes      |\n| `--pool`     | string | Pool name or address                       | Yes      |\n| `--token`    | string | Token symbol (`USDC`, `ETH`, `STRK`, etc.) | Yes      |\n| `--simulate` | flag   | Estimate fees and validate without executing | No     |\n\n### lend-borrow\n\n| Parameter             | Type   | Description                           | Required |\n| --------------------- | ------ | ------------------------------------- | -------- |\n| `--pool`              | string | Pool name or address                  | Yes      |\n| `--collateral-amount` | number | Collateral amount to supply           | Yes      |\n| `--collateral-token`  | string | Collateral token (e.g. `ETH`, `STRK`) | Yes      |\n| `--borrow-amount`     | number | Amount to borrow                      | Yes      |\n| `--borrow-token`      | string | Token to borrow (e.g. `USDC`, `USDT`) | Yes      |\n| `--use-supplied`      | flag   | Use existing earn positions as collateral    | No       |\n| `--simulate`          | flag   | Estimate fees and validate without executing | No       |\n\n### lend-repay\n\n| Parameter            | Type   | Description                      | Required |\n| -------------------- | ------ | -------------------------------- | -------- |\n| `amount`             | number | Amount to repay (positional)     | Yes      |\n| `--pool`             | string | Pool name or address             | Yes      |\n| `--token`            | string | Token to repay (e.g. `USDC`)     | Yes      |\n| `--collateral-token` | string | Collateral token of the position | Yes      |\n| `--simulate`         | flag   | Estimate fees and validate without executing | No |\n\n### lend-close\n\n| Parameter            | Type   | Description             | Required |\n| -------------------- | ------ | ----------------------- | -------- |\n| `--pool`             | string | Pool name or address    | Yes      |\n| `--collateral-token` | string | Collateral token symbol | Yes      |\n| `--borrow-token`     | string | Borrow token symbol     | Yes      |\n| `--simulate`         | flag   | Estimate fees and validate without executing | No |\n\n### lend-status\n\nRun without arguments to **auto-scan all pools**. Or specify `--pool` + `--collateral-token` for a detailed position view.\n\n| Parameter            | Type   | Description                            | Required              |\n| -------------------- | ------ | -------------------------------------- | --------------------- |\n| `--pool`             | string | Pool name or address                   | No (auto-scan if omitted) |\n| `--collateral-token` | string | Token supplied\u002Fused as collateral      | No*                   |\n| `--borrow-token`     | string | Borrow token (needed to see debt + HF) | No                    |\n\n> \\* Required when `--pool` is specified.\n\n### lend-monitor\n\nRun without arguments to **scan all pools**. Or specify `--pool` + `--collateral-token` + `--borrow-token` for a single position.\n\n| Parameter              | Type   | Description                          | Required                  |\n| ---------------------- | ------ | ------------------------------------ | ------------------------- |\n| `--pool`               | string | Pool name or address                 | No (scans all if omitted) |\n| `--collateral-token`   | string | Collateral token symbol              | No*                       |\n| `--borrow-token`       | string | Debt token symbol                    | No*                       |\n| `--warning-threshold`  | number | Custom warning threshold (default: 1.3) | No                     |\n\n> \\* Required when `--pool` is specified.\n\n**Risk Levels:**\n\nHealth Factor = collateral value × the pair's max LTV \u002F debt value. 1.0 is the liquidation point.\n\n| Level        | Health Factor | Meaning                                            |\n| ------------ | ------------- | -------------------------------------------------- |\n| **SAFE**     | > 1.3         | No action needed                                   |\n| **WARNING**  | 1.1 – 1.3     | Monitor closely                                    |\n| **DANGER**   | 1.05 – 1.1    | Repay debt or add collateral                       |\n| **CRITICAL** | ≤ 1.05        | Liquidation imminent; below 1.0 it can happen now  |\n\n### lend-auto\n\n| Parameter              | Type   | Description                                    | Required |\n| ---------------------- | ------ | ---------------------------------------------- | -------- |\n| `--pool`               | string | Pool name or address                           | Yes      |\n| `--collateral-token`   | string | Collateral token symbol                        | Yes      |\n| `--borrow-token`       | string | Debt token symbol                              | Yes      |\n| `--strategy`           | string | `repay`, `add-collateral`, or `auto` (default) | No       |\n| `--target-hf`          | number | Target health factor (default: 1.3)            | No       |\n| `--simulate`           | flag   | Estimate fees and validate without executing | No       |\n\n## Examples\n\n**User:** \"What lending pools are available?\"\n\n```bash\nnpx starkfi@latest lend-pools\n```\n\n**User:** \"Show me details for the Prime pool\"\n\n```bash\nnpx starkfi@latest lend-pools Prime\n```\n\n**User:** \"Supply 500 USDC to Prime\"\n\n```bash\nnpx starkfi@latest status\nnpx starkfi@latest balance --token USDC\nnpx starkfi@latest lend-supply 500 --pool Prime --token USDC --simulate  # Preview first\nnpx starkfi@latest lend-supply 500 --pool Prime --token USDC             # Execute\nnpx starkfi@latest tx-status \u003Chash>\n```\n\n**User:** \"Borrow 100 USDC with ETH collateral from Prime\"\n\n```bash\nnpx starkfi@latest lend-status\n# Check Health Factor before proceeding\nnpx starkfi@latest lend-borrow \\\n  --pool Prime \\\n  --collateral-amount 0.1 --collateral-token ETH \\\n  --borrow-amount 100 --borrow-token USDC\nnpx starkfi@latest tx-status \u003Chash>\n```\n\n**User:** \"Repay my 100 USDC loan from Prime\"\n\n```bash\nnpx starkfi@latest lend-repay 100 --pool Prime --token USDC --collateral-token ETH\nnpx starkfi@latest tx-status \u003Chash>\n```\n\n**User:** \"Close my ETH\u002FUSDC position in Prime\"\n\n```bash\nnpx starkfi@latest lend-close --pool Prime --collateral-token ETH --borrow-token USDC\nnpx starkfi@latest tx-status \u003Chash>\n```\n\n**User:** \"How healthy is my position?\"\n\n```bash\n# Comprehensive health monitoring with risk levels\nnpx starkfi@latest lend-monitor\n\n# Detailed health factor for specific position\nnpx starkfi@latest lend-monitor --pool Prime --collateral-token ETH --borrow-token USDC\n```\n\n**User:** \"My position is at risk, fix it\"\n\n```bash\n# First, check current state\nnpx starkfi@latest lend-monitor --pool Prime --collateral-token ETH --borrow-token USDC\n\n# Simulate the auto-rebalance action\nnpx starkfi@latest lend-auto --pool Prime --collateral-token ETH --borrow-token USDC --simulate\n\n# Execute after user confirms\nnpx starkfi@latest lend-auto --pool Prime --collateral-token ETH --borrow-token USDC\nnpx starkfi@latest tx-status \u003Chash>\n```\n\n**User:** \"Protect my ETH\u002FUSDC position from liquidation\"\n\n```bash\n# Choose a specific strategy — repay debt\nnpx starkfi@latest lend-auto --pool Prime --collateral-token ETH --borrow-token USDC --strategy repay --simulate\n```\n\n## Error Handling\n\n| Error                     | Action                                                        |\n| ------------------------- | ------------------------------------------------------------- |\n| `Pool not found`          | Run `lend-pools` to list valid pool names.                    |\n| `Health Factor too low`   | Warn of liquidation risk. Suggest repaying or supplying more. |\n| `Insufficient collateral` | Cannot borrow without supplying first.                        |\n| `Dust limit`              | Borrow amount is below the pool's minimum dollar value (~$10). Increase it. |\n| `Insufficient balance`    | Check `balance` — user may need to swap for the token.        |\n| `Not authenticated`       | Run `authenticate-wallet` skill first.                        |\n| `Monitor failed`          | Check pool\u002Ftoken params and retry.                            |\n| `Rebalance failed`        | Check balances, health factor, and retry.                     |\n\n## Related Skills\n\n- Use `balance` to verify available assets before supplying.\n- Use `trade` to swap tokens if the user doesn't have the right asset.\n- Use `portfolio` for a full overview including lending positions with USD values.\n- Use `batch` to combine supply operations with swaps, staking, or vault deposits.\n- Use `troves` for vault-based yield strategies (different from lending).\n- Use `lst` for liquid staking yield (xSTRK can also be supplied to lending pools).\n- Use `portfolio-rebalance` (within `portfolio` skill) to optimize overall portfolio allocation.\n",{"name":5,"license":15,"metadata":25,"description":7,"allowed-tools":29,"compatibility":45},{"author":26,"version":27,"category":28},"ahmetenesdur","0.2.0","transaction",[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],"Bash(npx starkfi@latest lend-pools)","Bash(npx starkfi@latest lend-pools *)","Bash(npx starkfi@latest lend-status *)","Bash(npx starkfi@latest lend-supply *)","Bash(npx starkfi@latest lend-withdraw *)","Bash(npx starkfi@latest lend-borrow *)","Bash(npx starkfi@latest lend-repay *)","Bash(npx starkfi@latest lend-close *)","Bash(npx starkfi@latest lend-monitor)","Bash(npx starkfi@latest lend-monitor *)","Bash(npx starkfi@latest lend-auto *)","Bash(npx starkfi@latest status)","Bash(npx starkfi@latest balance)","Bash(npx starkfi@latest balance *)","Bash(npx starkfi@latest tx-status *)","Requires Node.js 22+ and npx.","main","7055fe8b7fc1651f646e93279b95b1b0bc29132c","skills\u002Fmcp-servers\u002Fahmetenesdur-lending",17,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia","https:\u002F\u002Feth2030.com","Hardcore infra. Building @alt-research and applied cryptography.","2026-11-15 02:28:10",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add jiayaoqijia\u002Fcryptoskill --skill lending",{"tool":61,"command":62},"bunx","bunx skills add jiayaoqijia\u002Fcryptoskill --skill lending",{"tool":64,"command":65},"pnpm","pnpm dlx skills add jiayaoqijia\u002Fcryptoskill --skill lending","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-lending\u002FSKILL.md",true,[69,73,79],{"path":70,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":16},"LICENSE","许可证",1069,{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"SOURCE.md","REFERENCE","参考文档",339,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-lending\u002FSOURCE.md",{"path":80,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":81,"sourceHtmlUrl":82},"TRUST.auto.yaml",2351,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-lending\u002FTRUST.auto.yaml",[84,92,100,108,116,124],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":88,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":20},"01M7DTKCERMV0RNX3HZJP4CZ26","troves","Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say \"Troves\" explicitly.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":20},"01M7DTK6CJSMGC8KCQHGNYFZBD","trade","Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say \"swap\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":20},"01M7DTJZ6A0X4PAW3Y8W4J9K64","staking","Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say \"stake\" explicitly.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":20},"01M7DTJSDZJKCDMW7GHRF4BRH5","send","Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say \"pay 10 STRK to 0x...\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":120,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":20},"01M7DTJG1E480D51ZQ7WKDQ26K","portfolio","View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks \"what do I have\", \"show me everything\", \"how much am I worth\", \"my positions\", \"my investments\", \"rebalance my portfolio\", \"I want 50% ETH\", \"optimize my holdings\", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say \"portfolio\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":128,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":20},"01M7DTJ7M8TE9R2N36HFBZDGVD","multi-swap","Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions \"two swaps\", \"three swaps\", \"swap X and Y at the same time\", or wants to convert multiple tokens in a single call.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FSKILL.md",[],[]]