Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计提醒

31third-safe-rebalancer31 第三安全再平衡器

Agent Skill

31third-safe-rebalancer 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

9,623

周安装

405

GitHub Stars

公开资料未说明

下载量

3,370
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:31third-safe-rebalancer(31 第三安全再平衡器)
来源仓库:https://github.com/phips0812/31third-safe-rebalancer
安装命令:
openclaw skills install 31third-safe-rebalancer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install 31third-safe-rebalancer

简介

该技能是31Third ExecutorModule的策略感知型安全投资组合再平衡助手。

  • 适用于加密资产持仓优化与风险控制场景,支持自动化调仓建议。
  • 基于预设策略计算再平衡阈值与交易指令,降低人为情绪干扰。
  • 使用前需导入钱包地址与资产快照,并授权交易签名权限。
  • 链上操作具有不可逆性,务必在测试网验证无误后再切主网执行。

SKILL.md

name
31third-safe-rebalancer
description
Policy-aware Safe portfolio rebalancing assistant for 31Third ExecutorModule.
homepage
https://31third.com

31Third Safe Rebalancer

This skill helps you monitor portfolio drift and prepare/execute policy-compliant rebalances on a Gnosis Safe through the 31Third ExecutorModule.

Best-practice usage:

  • Use one-step execution by default: npm run cli -- rebalance-now.
  • Only use separated tools (check_drift, plan_rebalance, execute_rebalance, etc.) if you explicitly understand each step and want manual control.
  • If unsure, run help first (npm run cli -- help) and follow that guidance.

Prerequisites

  • Node.js 22+
  • npm

Local Setup

npm install
npm run build

Getting Started

If you have not deployed your policy stack yet, deploy it first: <https://app.31third.com/safe-policy-deployer>

Set required environment variables:

SAFE_ADDRESS=0xYourSafe
CHAIN_ID=8453
TOT_API_KEY=your_api_key
RPC_URL=https://mainnet.base.org
EXECUTOR_MODULE_ADDRESS=0xYourExecutorModule
EXECUTOR_WALLET_PRIVATE_KEY=0x...
ORACLE_MAX_AGE_SECONDS=3600
HEARTBEAT_INTERVAL_SECONDS=21600

TOT_API_KEY (31Third API key) can be requested via <https://31third.com/contact> or by emailing dev@31third.com.

Wallet model and key handling:

  • Safe owner wallet: controls Safe ownership/governance operations. Never share this private key with the skill.
  • Executor wallet: configured as executor on ExecutorModule in the wizard. This private key is required by the skill for execute_rebalance.
  • The final step of the 31Third wizard provides an overview of all required environment variables. Use that as source of truth when configuring this skill.

What This Skill Does

  • Reads active on-chain policies from ExecutorModule.
  • Computes current-vs-target drift (check_drift).
  • Validates trades against Asset Universe + Slippage boundaries (validate_trade).
  • Runs a configurable heartbeat monitor (automation) and returns an alert payload when drift exceeds threshold.
  • Simulates and executes approved rebalance batches (execute_rebalance) with pre-execution checkPoliciesVerbose validation and one retry on unknown execution failures.
  • Accepts SDK plan_rebalance output directly for execution (txData + requiredAllowances) and decodes batch trade calldata internally.
  • Fast-fails execution if scheduler != registry on the ExecutorModule, printing both addresses.
  • Generates SDK-based policy-aware trade plans (plan_rebalance) using current Safe balances (bounded by Asset Universe when present) as baseEntries.
  • Provides one-command execution (rebalance_now) for non-technical users: drift check -> SDK plan -> execution.
  • Returns setup and capability guidance (help).

Execution Safety

Before execution, the agent provides a clear reason, for example:

  • BTC is at 54.00%, target is 50.00% (drift 400 bps). Rebalance required.

The skill uses:

  • Viem publicClient for all reads.
  • Viem walletClient for execution.

Execution Contract (Important)

When using SDK/trading-api rebalancing output, execution must follow this exact pattern:

  1. Build approvals from requiredAllowances as (tokenAddress, neededAllowance).
  2. Decode txData as batchTrade(trades, config).
  3. Re-encode encodedTradeData as ABI tuple:

- tuple(string,address,uint256,address,uint256,bytes,bytes)[] - tuple(bool,bool)

  1. Run checkPoliciesVerbose(tradesInput, configInput) before submitting.
  2. Read scheduler and registry from ExecutorModule.
  3. Ensure the signing executor wallet address equals registry (required by onlyRegistry).
  4. Only execute immediate path (executeTradeNow(approvals, encodedTradeData)) when scheduler == registry.
  5. If scheduler != registry, fail fast and show both addresses.

This is the required execution semantics for this skill and should not be changed to raw passthrough calldata execution.

CLI

Run the bundled CLI:

npm run cli -- help
npm run cli -- check-drift
npm run cli -- automation --last-heartbeat-ms 0
npm run cli -- plan-rebalance --signer 0xYourSigner --min-trade-value 100
npm run cli -- rebalance-now
npm run cli -- validate-trade --trade '{"from":"0x...","to":"0x...","fromAmount":"1000000000000000000","minToReceiveBeforeFees":"990000000000000000"}'
npm run cli -- execute-rebalance --trades '[{"exchangeName":"0x","from":"0x...","fromAmount":"1000000000000000000","to":"0x...","minToReceiveBeforeFees":"990000000000000000","data":"0x...","signature":"0x..."}]' --approvals '[{"token":"0x...","amount":"1000000000000000000"}]'
npm run cli -- execute-rebalance --rebalancing '{"txData":"0x...","requiredAllowances":[{"token":{"address":"0x..."},"neededAllowance":"1000000000000000000"}]}'

Read-only smoke preflight:

npm run smoke -- --signer 0xYourSigner
npm run smoke -- --trades '[...]' --approvals '[...]'

Notes

  • This skill is automation infrastructure, not investment advice.
  • Validate behavior in test/staging before running in production.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

84.21%
按下载量换算2,838

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills