LaunchKit · 2026
Back to Skills

31third-safe-rebalancer-simple

One-step Safe rebalancer using on-chain 31Third policies.

1
490 downloads
by @phips0812

Setup & Installation

openclaw skills install @phips0812/31third-safe-rebalancer-simple

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install 31third-safe-rebalancer-simple

Version History

v0.1.5Feb 27, 2026 - Version note by skill developer:

- Updated dependencies in package.json and package-lock.json. - Improvements made to CLI and troubleshooting scripts. - test/cli.test.ts updated to reflect latest CLI behaviors and options. - Metadata in skill.json and skill.yaml updated for consistency.

What This Skill Does

Rebalances a Gnosis Safe's token portfolio to on-chain allocation targets defined via 31Third policies. It reads AssetUniverse and StaticAllocation policy state from the deployed ExecutorModule, calculates required trades, and executes them using an executor wallet. Skips execution when portfolio drift is below the configured threshold.

Reads allocation targets and slippage limits directly from on-chain policies, so no manual configuration is needed at execution time.

When to use it

  • Rebalancing a Safe wallet to a target token allocation
  • Running automated drift corrections on a scheduled basis
  • Verifying 31Third policy contracts after Safe deployment
  • Executing portfolio trades without manual trade configuration
  • Troubleshooting failed rebalancing with deployment verification

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Rebalance my Safe now

AGENT
  1. 1Reads AssetUniverse and StaticAllocation policy state from ExecutorModule on-chain
  2. 2Fetches current Safe token balances for all AssetUniverse tokens
  3. 3Calculates required trades using the 31Third SDK
  4. 4Executes rebalancing via the executor wallet signer
  5. 5Waits for confirmation and returns the transaction hash
OUTPUT

Transaction hash confirming the rebalancing execution

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

TOT_API_KEY — request at 31third.com/contact or dev@31third.comGnosis Safe with 31Third policies deployed via app.31third.com/safe-policy-deployerExecutor wallet private key (EXECUTOR_WALLET_PRIVATE_KEY)