用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/modbender/skill-library-mcp --skill 31third-safe-rebalancer-simple命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | 31third-safe-rebalancer-simple |
| description | One-step Safe rebalancer using on-chain 31Third policies. |
| homepage | https://31third.com |
This skill is intentionally minimal for non-technical users.
Best practice: use only one command / one tool:
rebalance_nowverify_deployment_config (post-deploy troubleshooting)If you are unsure, use the help command first:
npm run cli -- helpnpm install
npm run build
ExecutorModule; this private key is used by this skill.Required env vars:
SAFE_ADDRESS=0xYourSafe
EXECUTOR_MODULE_ADDRESS=0xYourExecutorModule
EXECUTOR_WALLET_PRIVATE_KEY=0x...
TOT_API_KEY=your_31third_api_key
RPC_URL=https://mainnet.base.org
CHAIN_ID=8453
TOT_API_KEY can be requested via https://31third.com/contact or by emailing dev@31third.com.
AssetUniverse and StaticAllocation policy state from ExecutorModule.baseEntries from current Safe balances for AssetUniverse tokens.targetEntries from on-chain StaticAllocation targets.calculateRebalancing(...).executeRebalancing(...) using ethers wallet signer.Safety checks:
scheduler != registry.registry.driftThresholdBps from StaticAllocation and skips execution when drift is below threshold.maxSlippageBps from SlippagePolicy and uses:
maxSlippage = policySlippage - 0.1%maxPriceImpact = policySlippage - 0.1%minTradeValue = 0.1.Partial policy deployment behavior:
[].targetEntries.
Do this only when StaticAllocation policy is intentionally not deployed.
CLI fallback example:
npm run cli -- rebalance-now --target-entries '[{"tokenAddress":"0x...","allocation":0.5},{"tokenAddress":"0x...","allocation":0.5}]'npm run cli -- help
npm run cli -- rebalance-now
npm run cli -- rebalance-now --target-entries '[{"tokenAddress":"0x...","allocation":0.5},{"tokenAddress":"0x...","allocation":0.5}]'
npm run cli -- verify-deployment --troubleshooting-file ./summary.txt
npm run cli -- verify-deployment --troubleshooting-summary "Safe=0x..."
If your rebalance fails, check these common issues:
Use the verify-deployment tool to verify the deployed contracts against your environment.
Copy the troubleshooting info from the Safe Policy Deployer (Step 4 or Step 5). It has the following schema:
Safe=0x123...456
ExecutorModule=0x123...456 | Deployed
Scheduler=0x123...456
Registry=0x123...456
BatchTrade=0xD20c024560ccA40288C05BAB650ac087ae9b0f6e
FeedRegistry=0x1d4999242A24C8588c4f5dB7dFF1D74Df6bC746A
CooldownSec=3600
AssetUniversePolicy=0x123...456 | Deployed
AssetUniverseAssets:
- USDC | 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
- WETH | 0x4200000000000000000000000000000000000006
StaticAllocationPolicy=0x123...456 | Deployed
StaticAllocationDriftThresholdPercent=0.50%
StaticAllocationToleranceThresholdPercent=0.50%
StaticAllocationTargets:
- USDC | 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 | AllocationPercent=10.00%
- WETH | 0x4200000000000000000000000000000000000006 | AllocationPercent=90.00%
SlippagePolicy=0x123...456 | Deployed
MaxSlippagePercent=0.50%
IMPORTANT: The framework is deployed with a Safe batch transaction. It might happen that an internal transaction runs out of gas and fails. The batch transaction itself still succeeds, but not all policies might be deployed. In this case, execution of rebalancings might fail.
Your AssetUniverse policy is blocking the trade.
The trade slippage is too high.
aTokens or wrapped assets on new chains).The script can't find a target allocation on-chain.
Bloom Mission Discovery — find missions matched to your taste, submit content, and track rewards. Powered by Bloom Protocol.
DESCRIPTION of what this skill does. Include specific trigger keywords and scenarios. Use when: scenario1, scenario2, scenario3.
First-time setup for the Durable Agents stack (Mastra + Trigger.dev). Run once before using the main skill.