index-bot

Builds weighted multi-asset token baskets and rebalances them via Uniswap Trading API swaps.

1|Updated Sep 4, 2025
One-click install
npx skills add https://github.com/FuzzysTodd/The-Nexus-Protocol-Token-DAO --skill index-bot-fuzzystodd
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: index-bot
Source: https://github.com/FuzzysTodd/The-Nexus-Protocol-Token-DAO/tree/main/skills/index-bot
Command: npx skills add https://github.com/FuzzysTodd/The-Nexus-Protocol-Token-DAO --skill index-bot-fuzzystodd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually buying and maintaining a diversified basket of crypto assets requires many individual swaps, careful weight calculations, and periodic rebalancing. This Skill automates the entire workflow: it parses a basket specification, sizes each leg, executes all buys through the Uniswap Trading API, and rebalances on a schedule when weights drift. ## Core Features & Use Cases - Basket Construction: Parses explicit asset lists with custom or equal weights, resolves token addresses from the target-chain template, and computes per-leg sizing using Uniswap quotes. - Delegated Execution: Routes every buy and rebalance swap through the swap-integration Trading API flow (check_approval, quote, swap, sign, broadcast) without reimplementing execution logic. - Scheduled Rebalancing: Reads on-chain balances via viem, computes drift against recorded target weights, and generates adjusting swaps when drift exceeds a configurable threshold. - Guardrails: Enforces per-run and per-period spend caps, token allowlists, dry-run previews, and confirm/autonomous execution modes. - Use Case: Ask for an equal-weight basket of five tokens funded with 1000 USDC, rebalanced weekly; the Skill buys all legs in one pass and later sells overweight legs and buys underweight legs on each scheduled run. ## Quick Start Ask the assistant to create an equal-weight basket of your chosen tokens with a total size, funding token, and weekly rebalance cadence, then approve the dry-run plan before execution.

Frequently Asked Questions about index-bot

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an equal-weight basket of crypto tokens in one transaction flow?▼

Provide the asset list, weighting, total size, funding token, and rebalance cadence in a single prompt. The Skill resolves each token address, sizes each leg with Uniswap quotes, and delegates every buy to the swap-integration Trading API flow in sequence.

How does automated portfolio rebalancing work with this Skill?▼

On each scheduled run it reads current on-chain balances via viem, values them with Uniswap quotes, and computes drift versus recorded target weights. When any leg's absolute drift exceeds the threshold, it generates and executes adjusting swaps to restore targets.

Can I build a basket of the top N tokens by ranking?▼

Only if the selected chain template provides an indexer or ranking source and the operator instructs its use. Otherwise the Skill asks for an explicit asset list rather than guessing a ranking.

What happens if one leg of the basket buy fails?▼

The Skill handles failed legs individually: it reports the failure and continues with the remaining legs rather than abandoning the whole basket. Transfer-restricted RWA tokens that revert are also reported per leg.

What guardrails are required before autonomous execution?▼

Autonomous mode requires per-run and per-period spend caps, a token allowlist, a dry-run preview, and a kill switch. Without these, the Skill defaults to confirm mode where each run is approved before broadcast.