index-bot

Installation
SKILL.md

Index Bot

Build a weighted basket of assets from one instruction, buy the whole basket in one pass, and rebalance on a cadence when weights drift. This skill is a thin strategy layer: it decides what to buy and how much, then delegates every quote, approval, swap, and signing step to existing skills.

Runtime Compatibility: This skill uses AskUserQuestion for interactive prompts. If AskUserQuestion is not available in your runtime, collect the same parameters through natural language conversation instead.

Overview

From a single prompt (for example "equal-weight basket of the top 5 RWAs, rebalance weekly"), index-bot:

  1. Parses the basket spec (explicit assets with weights, or a top-N ranking request).
  2. Resolves each asset to a token address and computes per-leg sizing.
  3. Applies guardrails (spend cap, token allowlist, dry-run).
  4. Delegates each buy to the swap-integration Trading API flow on the target chain.
  5. Records target weights and the last rebalance in a state file.

On a later invocation by the host scheduler, it reads current positions, computes drift versus target weights, generates the adjusting swaps, and delegates them.

The trigger is twofold: a prompt to create the basket, and the host scheduler (cron or the agent runtime wake-up) for each rebalance run.

Installs
24
GitHub Stars
215
First Seen
7 days ago
index-bot — uniswap/uniswap-ai