mantle-defi-operator
БесплатноБез исполняемых скриптовНе проверенUse when a Mantle DeFi task needs discovery, venue comparison, or execution-ready planning with verified contracts, preflight evidence, and an external handoff.
от Starchild-ai-agent★ 34 звезды на GitHubОб этом скилле
Mantle Defi Operator
Overview
Coordinate deterministic pre-execution planning for Mantle DeFi intents. This skill should orchestrate verified address lookup, preflight evidence, and execution handoff steps instead of duplicating specialized address, risk, or portfolio analysis.
CLI-First Transaction Building
ALWAYS use mantle-cli commands to build unsigned transactions. The CLI produces correct calldata with verified addresses and ABI encoding. Do NOT:
- Manually construct calldata or hex-encode function calls
- Extract contract addresses from text responses and build transactions yourself
- Add a
fromfield to unsigned transactions — this breaks Privy and other signers
Tool Discovery via Capability Catalog
Before building any transaction, consult the Capability Catalog via CLI for the authoritative list of available tools, their read/write nature, wallet requirements, and call ordering:
mantle-cli catalog list --json # all capabilities
mantle-cli catalog list --category execute --json # only tx-building commands
mantle-cli catalog search "swap" --json # keyword search
mantle-cli catalog show mantle_buildSwap --json # full details + CLI command template
Each entry includes:
category: query— read-only, no state change, no wallet needed for mostcategory: analyze— computed insights (APR, risk, recommendations), read-onlycategory: execute— builds unsigned transactions, requires wallet addressworkflow_before— tells you which tools to call before a given toolcli_command— the exact CLI command template with placeholders
Available CLI commands for DeFi operations:
# Swap operations
mantle-cli swap build-swap --provider <dex> --in <token> --out <token> --amount <n> --recipient <addr> --json
mantle-cli swap approve --token <token> --spender <router> --amount <n> --json
mantle-cli swap wrap-mnt --amount <n> --json
mantle-cli swap unwrap-mnt --amount <n> --json
mantle-cli swap pairs --json
# Aave V3 lending
mantle-cli aave supply --asset <token> --amount <n> --on-behalf-of <addr> --json
mantle-cli aave borrow --asset <token> --amount <n> --on-behalf-of <addr> --json
mantle-cli aave repay --asset <token> --amount <n|max> --on-behalf-of <addr> --json
mantle-cli aave withdraw --asset <token> --amount <n|max> --to <addr> --json
mantle-cli aave markets --json
# Liquidity provision
mantle-cli lp find-pools --token-a <t> --token-b <t> --json # ALWAYS START HERE — discover ALL pools
mantle-cli lp pool-state <pool-or-tokens> --json
mantle-cli lp suggest-ticks <pool-or-tokens> --json
mantle-cli lp analyze <pool-or-tokens> [--investment-usd <n>] --json # Deep pool analysis: APR, risk, range comparison
mantle-cli lp positions --owner <addr> --json
mantle-cli lp add --provider <dex> --token-a <t> --token-b <t> (--amount-a <n> --amount-b <n> | --amount-usd <n>) --recipient <addr> --json
mantle-cli lp remove --provider <dex> --recipient <addr> --token-id <id> (--liquidity <n> | --percentage <1-100>) --json
mantle-cli lp collect-fees --provider <p> --token-id <id> --recipient <addr> --json
# Read operations (no signing needed)
mantle-cli defi swap-quote --in <token> --out <token> --amount <n> --provider best --json
mantle-cli defi lending-markets --json
mantle-cli account balance <addr> --tokens USDC,USDT0 --json
All --json outputs contain unsigned_tx with to, data, value, chainId — pass this directly to the signer without adding from.
When Not to Use
- Use
mantle-address-registry-navigatorwhen the task is only address lookup, whitelist validation, or anti-phishing review. - Use
$mantle-risk-evaluatorwhen the task is only to return apass/warn/blockpreflight verdict. - Use
$mantle-portfolio-analystwhen the task is only balance coverage, allowance exposure, or spender-risk review. - Stay in
discovery_onlymode when the user is exploring venues and has not asked for execution-ready planning.
Quick Checklist
discovery_only- Return venue suggestions, rationale, and discovery sources only.
- Do not return router addresses, hex contract addresses (0x...), approval steps, calldata, or sequencing anywhere in the response.
- Set
handoff_availabletono.
compare_only- Compare verified venues and call out missing execution inputs.
- Allow verified registry keys or contract roles (by name, not hex address), but stop short of approval instructions or calldata.
- Do not include hex contract addresses (0x...) anywhere in the response -- not in rationale, not in fields. Use protocol and role names only.
- Leave
risk_report_ref/portfolio_report_refempty or explicitly missing when evidence is not available. - Set
handoff_availabletono.
execution_ready- Require
address_resolution_ref. - Require
risk_report_refunless explicitly unnecessary for the operation. - Require
portfolio_report_refwhen allowance scop
- Require
Установить mantle-defi-operator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл mantle-defi-operator?
Use when a Mantle DeFi task needs discovery, venue comparison, or execution-ready planning with verified contracts, preflight evidence, and an external handoff.
Как установить скилл mantle-defi-operator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mantle-defi-operator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic