Index of every page on this site: llms.txt
All skills
Run it yourself

Portfolio, ledger and payout finance operations for cluster. Use when the user wants their portfolio value and holdings, the $CLST payout basket composition and weights, distribution cycles and history (who got paid, when, how much), treasury status, API key management with usage metering (requests/tokens/USD), or double-entry style bookkeeping of agent activity. Covers the ledger agent (Ledger/FIN), payments agent (Remit/RMT), risk agent (Margin/MRG), and treasury agent (Vault/VLT) workflows.

  • 1 file
  • 5 KB
  • MIT
  • Updated 2 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/clusteragent/cluster/finance

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈127 tokens for metadata: the name and description. ≈1.1k when used: this file.

Description uses 6.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈508 characters, or 6.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Cluster Finance

Portfolio truth, payout records, and metering. Every number here is either read on-chain or from the public keeper-bot feed — never fabricated. Pre-launch payout data returns honest zeros by design.

Portfolio

# Portfolio + history (wallet-scoped, auth required)
curl "https://clusteragent.dev/api/portfolio?wallet=0xUSER&session_token=…"
curl "https://clusteragent.dev/api/portfolio/history?wallet=0xUSER&session_token=…"
  • The real "position" is the wallet's $CLST token balance, read on-chain (AGENTINDEX_CLST_TOKEN_ADDRESS / AGENTINDEX_CLST_TOKEN_ADDRESS env on the server)
  • Before $CLST deploys, portfolio is honest zeros with a note — no invented rows
  • On-chain balances for any address, no auth needed:
curl "https://clusteragent.dev/api/trade/wallet/0xADDRESS"
# → native ETH + every held token, raw values from Multicall3.aggregate

The Payout Basket

19 curated instruments, weights sum to 100. The keeper bot buys this basket from accumulated fees at live market prices.

curl "https://clusteragent.dev/api/index/payout-basket"
{ "count": 19, "weight_sum": 100.0, "universe_count": 193,
  "note": "Holders are paid from this curated basket. The full 193-instrument
           universe is tradeable; the basket is the payout vehicle." }

19 payout names vs 193 tradeable instruments — different things, keep them distinct when answering users.

Distributions — the public record

curl "https://clusteragent.dev/api/distributions"
{ "live": true, "mode": "dry",
  "totals": { "cycles": 0, "distributed_usd": 0.0, "recipients": 0 },
  "treasury": { "address": "0xcdfc…8827", "eth": 0.004169 },
  "cycles": [], "recent_buys": [] }
  • mode: "dry" = keeper bot running without settling; live = real cycles
  • Recipient lists are never public — the feed exposes cycles, per-cycle aggregates and basket buys. No payroll, no holder ranking.
  • recent_buys = every keeper basket purchase with tx
  • treasury.eth = live vault balance, refreshed ~60s

API Keys & Metering

# create (raw key shown ONCE — SHA-256 stored)
curl -X POST "https://clusteragent.dev/api/keys" -H "Content-Type: application/json" \
  -d '{"wallet":"0xUSER","session_token":"…","name":"prod"}'

# list
curl "https://clusteragent.dev/api/keys?wallet=0xUSER&session_token=…"

# usage: requests, tokens, USD per key
curl "https://clusteragent.dev/api/keys/usage?wallet=0xUSER&session_token=…"

Limits: 20 active keys per wallet. Keys are wallet-bound — a key can never touch another wallet's data.

Credit Accounting

Every wallet gets $5 inference credit. Chat requests reserve worst-case cost up front, then true-up from actual token usage — two concurrent requests cannot double-spend the remainder. Rate limit: 30 chat requests/minute.

curl "https://clusteragent.dev/api/chat/credits?wallet=0xUSER"
# → { "granted_usd": 5.0, "used_usd": 0.0, "remaining_usd": 5.0 }

The Finance Agents

Agent Role Workflow
Ledger (FIN) Bookkeeping & reconciliation Log every agent interaction to the wallet history; settle in $CLST post-launch
Remit (RMT) Payments & invoicing Record tip intents between wallets (POST /api/social/tip, self-tip blocked, 0x-address validated)
Margin (MRG) Risk & margin Track exposure across holdings (/api/trade/wallet), flag concentration, keep books balanced
Vault (VLT) Treasury Monitor distributions.treasury.eth, report vault accumulation, compound idle balances post-launch

Maybe Finance (self-hosted personal finance UI)

For a full double-entry personal finance UI on top of cluster data, self-host Maybe (AGPLv3, unmaintained upstream — fork under the license terms: keep the LICENSE, state the fork is not affiliated with Maybe Finance Inc., do not use the "Maybe" trademark or logo):

git clone https://github.com/maybe-finance/maybe
cd maybe
# Docker self-host
docker compose up -d

Maybe's account/transaction model maps well: cluster wallet = Maybe "account", keeper-bot distributions = "transactions", the payout basket = an investment "portfolio". Pull cluster data into it via the REST API.

Trademark note: rename the deployment (e.g. "Cluster Ledger") in any user-facing surface.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at be307d1. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 2 months ago
What it can do
Reads files Edits files Runs commands
metadata
{
  "author": "clusteragent",
  "version": "1.0.0"
}
All 4 allowed tools
ReadWriteEditBash(curl:*)

README badge

README badge for clusteragent/cluster/finance