yield-optimization
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "yield-optimization":https://skillpi.com/zh/skills/deepskill-2adc93f365f3cacd8a3f448d82ded455fb1fe95ec45dd8474c8c2f7fa36e6f80。安装前核对上游来源和版本:https://github.com/moonpay/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
通过 yield.xyz(StakeKit)实现多链收益优化:在 75 多条区块链上发现超过 2,988 个收益机会,使用 shell 脚本构建存取款交易,并通过 MoonPay 钱包进行签名。适用于希望获取收益、寻找最佳借贷或质押利率、进入/退出头寸或查看投资组合余额的场景。
介绍来源: third_party · moonpay · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 贝什
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: yield-optimization
description: >
Multi-chain yield optimization via yield.xyz (StakeKit). Discover 2,988+
yield opportunities across 75+ blockchains, build deposit/withdrawal
transactions with shell scripts, and sign them with a MoonPay wallet. Use
when the user wants to earn yield, find the best lending or staking rate,
enter/exit a position, or check portfolio balances.
tags: [yield, defi, lending, staking, multi-chain]yield.xyz — Multi-Chain Yield Optimization
Overview
yield.xyz (powered by StakeKit) aggregates 2,988+ yield opportunities across 75+ blockchains — lending, staking, vaults, restaking, and liquidity pools. The agent skill uses shell scripts to discover yields, build unsigned transactions, and sign them with your MoonPay wallet.
find-yields.sh → discover opportunities by chain + token
enter-position.sh → build unsigned deposit transaction
mp transaction send → sign and broadcast with MoonPay wallet
check-portfolio.sh → monitor balances and pending rewards
exit-position.sh → build unsigned withdrawal transaction
Prerequisites
# curl and jq (required)
which curl jq
# MoonPay CLI for wallet + signing
npm install -g @moonpay/cli
mp login
export YIELDS_API_KEY="..." # optional: get one at https://dashboard.yield.xyz
Installation
npx clawhub@latest install yield-agent
Or manually:
git clone https://github.com/stakekit/yield-agent.git ~/.openclaw/skills/yield-agent
chmod +x ~/.openclaw/skills/yield-agent/scripts/*.sh
Commands
| Script | Description |
|---|---|
find-yields.sh [chain] [token] |
Discover yields by network and token |
get-yield-info.sh [yield-id] |
Retrieve yield schema and validator info |
list-validators.sh [yield-id] |
List validators for staking positions |
enter-position.sh [yield-id] [address] [params] |
Build unsigned deposit transaction |
exit-position.sh [yield-id] [address] |
Build unsigned withdrawal transaction |
manage-position.sh [yield-id] [action] |
Claim rewards, restake, redelegate |
check-portfolio.sh [yield-id] [address] |
View balances and pending actions |
Core Workflow
1. Discover Yields
# Find USDC yields on Base
./scripts/find-yields.sh base USDC
# Find ETH staking on Ethereum
./scripts/find-yields.sh ethereum ETH
2. Inspect a Yield
# Get schema and requirements before entering
./scripts/get-yield-info.sh base-usdc-aave-v3-lending
Always fetch the yield schema before executing — it specifies required params and multi-step order.
3. Enter a Position
# Build unsigned deposit transaction (amounts are human-readable — "100" = 100 USDC)
./scripts/enter-position.sh base-usdc-aave-v3-lending 0xYOUR_ADDRESS '{"amount":"100"}'
# → returns unsignedTransaction JSON
4. Sign with MoonPay
# Step 1: Sign the unsigned transaction
mp transaction sign \
--wallet "yield-agent" \
--chain base \
--transaction '<unsignedTransaction from step 3>'
# → returns signedTransaction JSON
# Step 2: Broadcast the signed transaction
mp transaction send \
--chain base \
--transaction '<signedTransaction from step 1>'
For multi-step transactions, execute in stepIndex order. Sign each step exactly as returned — never modify unsignedTransaction.
5. Monitor Portfolio
./scripts/check-portfolio.sh base-usdc-aave-v3-lending 0xYOUR_ADDRESS
6. Exit a Position
./scripts/exit-position.sh base-usdc-aave-v3-lending 0xYOUR_ADDRESS
# → sign result with mp transaction send
7. Manage Rewards
./scripts/manage-position.sh base-usdc-aave-v3-lending claim
./scripts/manage-position.sh ethereum-eth-lido-staking redelegate
Wallet Setup with MoonPay
# Create a dedicated yield wallet
mp wallet create --name "yield-agent"
mp wallet retrieve --wallet "yield-agent" # note addresses per chain
Funding Your Wallet
Buy with Fiat
mp buy --token usdc_base --amount 500 --wallet <base-address> --email <email>
mp buy --token usdc_ethereum --amount 1000 --wallet <eth-address> --email <email>
mp buy --token eth_ethereum --amount 0.05 --wallet <eth-address> --email <email>
Bridge Cross-Chain
# USDC on Ethereum → Base (chase higher yield)
mp token bridge \
--from-wallet yield-agent --from-chain ethereum \
--from-token 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 \
--from-amount 500 \
--to-chain base \
--to-token 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
Bank Transfer (Large Capital)
mp virtual-account create && mp virtual-account kyc submit
mp virtual-account bank-account add
mp virtual-account onramp create \
--name "yield-onramp" --fiat usd --stablecoin usdc --chain ethereum --wallet <eth-address>
Check Balances / Withdraw
mp token balance list --wallet <eth-address> --chain ethereum
mp virtual-account offramp create --amount 2000 --chain ethereum --wallet <eth-address>
Security
yield.xyz only builds unsigned transactions — your MoonPay wallet handles all signing. Keys are AES-256-GCM encrypted locally and never leave the machine. For large positions use a hardware wallet:
mp wallet hardware add --name "yield-ledger"
End-to-End Workflow
npx clawhub@latest install yield-agentmp wallet create --name "yield-agent"mp buy --token usdc_base --amount 500 --wallet <address> --email <email>./scripts/find-yields.sh base USDC./scripts/get-yield-info.sh <yield-id>./scripts/enter-position.sh <yield-id> <address> '{"amount":"500"}'mp transaction sign --wallet "yield-agent" --chain base --transaction <unsignedTx>thenmp transaction send --chain base --transaction <signedTx>./scripts/check-portfolio.sh <yield-id> <address>mp virtual-account offramp createto withdraw earned yield
Resources
- GitHub: https://github.com/stakekit/yield-agent
- API dashboard: https://dashboard.yield.xyz
- Docs: https://docs.yield.xyz
- MoonPay CLI: https://www.npmjs.com/package/@moonpay/cli
Related Skills
- moonpay-check-wallet — Verify balances before depositing
- moonpay-swap-tokens — Swap tokens to what a yield pool requires
- moonpay-virtual-account — Bank transfer for large capital inflows
- moonpay-trading-automation — Automate rebalancing on a schedule
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 覆盖 75+ 区块链和 2,988+ 收益机会,满足用户获取收益、寻找最佳利率、管理头寸等核心需求
- 支持借贷、质押、流动性池、再质押等多种 DeFi 场景,具有高频刚需属性
亮点
- 触发描述清晰完整,明确覆盖用户希望获取收益、寻找最佳借贷或质押利率、进入/退出头寸或查看投资组合余额等场景
亮点
- 文档结构完整,包含从安装、配置、核心工作流到安全实践的端到端指南
- 提供了详细的命令说明和端到端示例,步骤清晰,frontmatter 完整
亮点
- 工具来源明确(StakeKit API、MoonPay CLI),参数说明清晰
- 覆盖了多步交易顺序、签名流程等关键异常处理,不可逆操作需用户手动签名确认
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 33, 42, 187 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- dashboard.yield.xyz
- docs.yield.xyz
- github.com
- www.npmjs.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
贝什
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。