portfolio-rs

portfolio-rs is a skill for Claude Code, Codex from MarkusZoppelt/portfolio_rs. It costs 53 tokens per session (662 once invoked), scanned A, original, MIT.

A set of rules and commands for reviewing investment portfolios stored in local finance files. It uses an investment policy, when available, to assess holdings and portfolio decisions.

In plain words
What is it for?
Use it to inspect positions, validate portfolio settings, review portfolios against a policy, simulate changes, and prepare reports, decisions, theses, or watchlists.
Why use it?
It keeps portfolio analysis consistent and local while avoiding direct trading, broker access, and unsafe handling of private financial data.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Good fit Use it to inspect positions, validate portfolio settings, review portfolios against a policy, simulate changes, and prepare reports, decisions, theses, or watchlists.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/markuszoppelt/portfolio_rs/portfolio-rs
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 MarkusZoppelt/portfolio_rs --skill portfolio-rs
Clone the repo
git clone --depth 1 https://github.com/MarkusZoppelt/portfolio_rs

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 portfolio-rs

README.md
[![agentmods](https://agentmods.dev/badge/skills/markuszoppelt/portfolio_rs/portfolio-rs/github.svg)](https://agentmods.dev/skills/markuszoppelt/portfolio_rs/portfolio-rs)
Your own site
<a href="https://agentmods.dev/skills/markuszoppelt/portfolio_rs/portfolio-rs"><img src="https://agentmods.dev/badge/skills/markuszoppelt/portfolio_rs/portfolio-rs/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 portfolio-rs

Your own site · 80×15
<a href="https://agentmods.dev/skills/markuszoppelt/portfolio_rs/portfolio-rs"><img src="https://agentmods.dev/badge/skills/markuszoppelt/portfolio_rs/portfolio-rs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 662 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00053 $0.00662
Opus 5 $0.00026 $0.00331
Sonnet 5 $0.00011 $0.00132
Haiku 4.5 $0.00005 $0.00066

Measured 11d ago against content hash cc938ed7ec5e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

portfolio-rs 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 11d 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.

templates/skills/portfolio-rs/SKILL.md · 91 lines

How it starts

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

portfolio_rs Finance Skill

Use portfolio_rs commands as the source of truth. Do not parse raw portfolio JSON unless a command cannot answer the question.

Startup

  1. Read workspace instructions if present: AGENTS.md, CLAUDE.md, or equivalent.
  2. Read INVESTMENT_POLICY.md if present.
  3. Run portfolio_rs doctor ..
  4. Run portfolio_rs context positions.json --format json.
  5. If portfolio/policy.toml exists, run portfolio_rs review positions.json --policy portfolio/policy.toml --format json.

If a policy file is missing, suggest:

portfolio_rs policy init --strategy balanced-growth .
portfolio_rs policy validate portfolio/policy.toml

Safety

  • Do not place trades.
  • Do not interact with brokers or exchanges.
  • Do not provide regulated financial advice.
  • Use --dry-run before any file mutation.
  • Never write decrypted .gpg contents to disk in plaintext.
  • Do not commit private finance files.
  • Do not scrape portfolio data for external services. All analysis stays local.

Read-Only Commands

portfolio_rs context positions.json --format markdown
portfolio_rs review positions.json --policy portfolio/policy.toml
portfolio_rs simulate positions.json --policy portfolio/policy.toml
portfolio_rs doctor .
portfolio_rs validate positions.json

Structured Output (for agents/scripts)

portfolio_rs context positions.json --format json
portfolio_rs review positions.json --policy portfolio/policy.toml --format json
portfolio_rs simulate positions.json --policy portfolio/policy.toml --format json

Durable Memory

portfolio_rs decision draft --title "Rebalance Stocks" --dry-run
portfolio_rs report weekly --dry-run

Workspace Layout

.
  AGENTS.md              <- Local workspace instructions
  CLAUDE.md              <- Pointer for Claude Code
  INVESTMENT_POLICY.md   <- User-owned financial constitution
  portfolio/
    policy.toml          <- Machine-readable policy
    diary/               <- Market observations
    decisions/           <- Structured decision records
    theses/              <- Investment theses
    reports/             <- Generated reports
    watchlist.json       <- Assets being watched

Read the full file on GitHub · 91 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. 11d ago First seen · 91 lines · 53 tokens per session scan A cc938ed7ec5e

Subscribe to this mod's changes

portfolio-rs is a skill published in the GitHub repository MarkusZoppelt/portfolio_rs (94 stars, last pushed 3d ago), licensed MIT. It adds 53 tokens to every session and 662 once invoked, about $0.0003 per session on Opus 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-08-30.

Related

Other skills, from other repositories

finance-cleanup

Use when the user wants to clean up transactions, fix categories, find missing recurring charges, or do general transaction hygiene in Copilot Money.

ignaciohermosillacornejo/copilot-money-mcp · 32 tokens

finance-pulse

Use when the user asks how they're doing financially, wants a spending check-in, asks about free money or discretionary budget, or says 'pulse'. Read-only — never writes to Copilot Money.

ignaciohermosillacornejo/copilot-money-mcp · 43 tokens

finance-trip

Use when the user wants to track trip expenses, tag travel transactions, find late-posting charges from a trip, or get a trip spending summary. Example: 'tag my Tahiti trip expenses' or 'how much did I spend in Whistler?'.

ignaciohermosillacornejo/copilot-money-mcp · 54 tokens

finance

Use for open-ended financial questions: 'can I afford X?', 'should I buy X?', 'how much can I spend on Y?', or any affordability, budgeting, or financial planning question. Also use when the user asks a financial question that doesn't fit /finance-cleanup, /finance-pulse, or /finance-trip.

ignaciohermosillacornejo/copilot-money-mcp · 68 tokens

openrouter-usage

Query OpenRouter API costs, credits, and usage breakdown by model, provider, and date for the last 30 days. Triggers on API spending, check costs, openrouter usage, how much have I spent.

tdimino/claude-code-minoan · 49 tokens

transaction-syncing

Refresh investment activities and card/bank expenses into familyoffice.db, then review spending. Investment activities come from the DB transactions table (SnapTrade); debit-card and bank spending comes from the DB banktransactions table (SimpleFIN), auto-categorized. Sync-first so nothing is stale. USE WHEN user…

AojdevStudio/Finance-Guru · 88 tokens