openportfolio-book

openportfolio-book is a skill for Claude Code, Codex from seonglae/openportfolio. It costs 73 tokens per session (664 once invoked), scanned A, original, Apache-2.0.

A read-only skill for examining an OpenPortfolio book, which combines investment accounts into one view. It reports net worth, accounts, holdings, exposure to a particular asset, investor money flows, and scheduled market events.

In plain words
What is it for?
Use it to inspect total value, account balances, positions, exposure across accounts, buying and selling flows, and upcoming catalysts such as scheduled events.
Why use it?
Investment information spread across accounts can hide the total picture or concentration in one asset. This provides a single view without placing trades or changing the portfolio.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect total value, account balances, positions, exposure across accounts, buying and selling flows, and upcoming catalysts such as scheduled events.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/seonglae/openportfolio/openportfolio-book
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add seonglae/openportfolio --skill openportfolio-book
Clone the repo
git clone --depth 1 https://github.com/seonglae/openportfolio

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for openportfolio-book

README.md
[![agentmods](https://agentmods.dev/badge/skills/seonglae/openportfolio/openportfolio-book/github.svg)](https://agentmods.dev/skills/seonglae/openportfolio/openportfolio-book)
Your own site
<a href="https://agentmods.dev/skills/seonglae/openportfolio/openportfolio-book"><img src="https://agentmods.dev/badge/skills/seonglae/openportfolio/openportfolio-book/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for openportfolio-book

Your own site · 80×15
<a href="https://agentmods.dev/skills/seonglae/openportfolio/openportfolio-book"><img src="https://agentmods.dev/badge/skills/seonglae/openportfolio/openportfolio-book.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 664 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.00664
Opus 5.5 $0.00029 $0.00266
Sonnet 5.5 $0.00015 $0.00133
Haiku 4.5 $0.00007 $0.00066

Measured 16d ago against content hash e8a7fa642749, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

openportfolio-book scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/openportfolio-book/SKILL.md · 40 lines

How it starts

The opening of the file, as written. The whole thing — 40 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Reading the book

openportfolio holds every account as one book in one base currency. This skill reads it. It never writes, and nothing in openportfolio places an order: there is no tool for it because the backend has no function that does.

Setup

The tools come from the stdio MCP server in the openportfolio repo. Register it once with your agent CLI, from the repo root:

claude mcp add openportfolio -- node "$PWD/mcp/portfolio-server.mjs"

It reads CONVEX_DEPLOYMENT, OPENPORTFOLIO_SERVICE_KEY and, optionally, OPENPORTFOLIO_TENANT from the environment or from .env.local beside it. A service key belongs to exactly one book, so the server cannot see any other. Run whoami first when a call is refused: it says which book and which role the key resolved to.

Order of reading

  1. whoami for the book and its base currency. Every value below is in that currency unless a row says otherwise.
  2. net_worth for the total, split by venue and by asset class.
  3. list_accounts, then list_balances (optionally with accountKey) for positions.
  4. symbol_exposure with a symbol when a name appears in more than one account. The summed figure is the one that matters for concentration, not the per-account one.
  5. net_worth_history for recorded snapshots, oldest first. A snapshot is never recomputed, so it shows what the book was worth then at that day's rates.
  6. list_venues to see what each adapter can actually do. A venue that cannot read balances is priced from rows someone entered.

Flows and the calendar

  • flow_by_investor with a market (and optional days) answers who has been absorbing the supply over a window.
  • list_flows gives the per-session rows. Check the currency and source on each: positioning data may be in contracts rather than money.
  • upcoming_catalysts (optional windowDays, asset) lists dated forward events: lockups, rebalances, unlocks, prints.

How to report

  • Quote figures with their currency and the date they were recorded. A missing price is a missing number, not a zero: say which row is unpriced rather than summing around it.
  • Concentration is a share of the total from net_worth, computed from symbol_exposure, not from one account.
  • Observations and probabilities only. Never recommend a quantity, a price or an order. If a view is worth having, register it with the openportfolio-forecast skill so it gets scored.

Read the full file on GitHub · 40 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago First seen · 40 lines · 73 tokens per session scan A e8a7fa642749

Subscribe to this mod's changes

openportfolio-book is a skill published in the GitHub repository seonglae/openportfolio (3 stars, last pushed 2d ago), licensed Apache-2.0. It adds 73 tokens to every session and 664 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-30.

Related

Other skills, from other repositories

research-stocks

Read current stock research, technical backtests, saved analyses or saved backtests. Use for a named ticker or watchlist research history; preserve source dates, model limitations and risk factors.

koala73/worldmonitor · 41 tokens

track-tariff-trends

Retrieve a country's average applied tariff over time — the MFN rate on all products, or the rate it applies on goods from one partner and/or in one product group — plus the optional US effective tariff rate. Use when the user asks how a country's tariffs have changed, or what it charges another country on average.…

koala73/worldmonitor · 85 tokens

get-prediction-markets

Retrieve active prediction-market contracts (Polymarket) with live yes-price probabilities, volume, and close dates, filterable by category or keyword. Use when the user asks what the market odds are on a geopolitical, economic, or election outcome.

koala73/worldmonitor · 56 tokens

tvchart

Drive a live TradingView Lightweight Charts widget end-to-end via PyWry MCP tools — symbol, interval, indicators, markers, price lines, layouts, state.

deeleeramone/PyWry · 33 tokens

tbank-messenger

A chat connection for T-Bank, a Russian bank, that lets an agent read conversations, download attachments, and contact bank support. It works with chats inside the bank app, not SMS codes or push notifications.

icyberdeveloper/tbank-mcp · 89 tokens

aifi-daily-report

A tool for producing a Chinese end-of-day report on United States stock markets as a self-contained HTML file. HTML is the standard format used to display web pages.

iFurySt/aifi · 123 tokens