galleon-defi-portfolio

Installation
SKILL.md

DeFi portfolio and treasury

Answer what the selected accounts own, owe and can access, what changed, and what evidence is missing. A portfolio report or target allocation is not authorization to move funds.

Define the scope

Establish included accounts and chains, ownership boundaries, reporting currency, valuation time, comparison period and purpose. Distinguish a watchlist from the user's own holdings. Preserve smart accounts, multisigs, exchange subaccounts and vault positions as separate identities; do not infer access to private exchange balances from an onchain address.

Use provider interfaces to fetch bounded account data through existing official tools. Use filters and pagination deliberately: a wallet-token endpoint may omit protocol positions. Mark unsupported chains, partial pages, delayed indexers and missing accounts as coverage gaps, not zero balances. Record provider retrieval time and position observation time separately.

Reconcile before aggregating

  • Identify each position by chain namespace/ID, account, exact token or native-asset identity, protocol deployment, position ID and valuation block/time. Preserve provider IDs as opaque identifiers; a ticker or cross-chain logo is not a key.
  • Represent quantities as base-unit integers plus decimals, or exact decimal strings. Keep conversion rates, units and sources. Avoid binary float rounding when reconciling raw balances or debt.
  • Classify wallet holdings, supplied collateral, borrowed liabilities, LP/vault shares, staking/restaking receipts, locked positions, pending withdrawals/bridges and unclaimed rewards separately.
  • Choose a valuation representation: receipt shares or their attributable underlying exposure. Never add both to equity. Break an LP position into underlying exposures for allocation without also counting its total value again. Reconcile provider overlap and internal account transfers.
  • Show gross assets, debt and net equity. Keep leverage/notional exposure separate from equity; a derivative's notional is not cash value. Price stablecoins from evidence rather than assuming a dollar peg.

For receipt tokens, debt, pending states and performance calculations, apply accounting rules. Corroborate material quantities and time-sensitive risk with chain or protocol state at a recorded block. Market APIs provide marks; they do not establish custody or immediate exit proceeds.

Installs
4
GitHub Stars
11
First Seen
Sep 24, 2026