portfolio

portfolio is a command for Claude Code from Aznatkoiny/zAI-Skills. It costs 19 tokens per session (679 once invoked), scanned A, original, MIT.

A command that maintains a persistent JSON file of real estate properties and sends it to a review agent.

In plain words
What is it for?
It helps track property details such as debt, rent, operating income, value, and purchase basis.
Why use it?
It keeps property records in one place and makes adding, changing, or removing entries repeatable.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the real-estate-investment plugin — 1 skill, 9 commands, 4 agents shipped together

Good fit It helps track property details such as debt, rent, operating income, value, and purchase basis.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Aznatkoiny/zAI-Skills
Claude Code
/plugin install real-estate-investment

Made for: Claude Code.

Or install real-estate-investment, the plugin that ships this one along with the rest of its 1 skill, 9 commands, 4 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/aznatkoiny/zai-skills/portfolio.svg)](https://agentmods.dev/commands/aznatkoiny/zai-skills/portfolio)
Your own site
<a href="https://agentmods.dev/commands/aznatkoiny/zai-skills/portfolio"><img src="https://agentmods.dev/badge/commands/aznatkoiny/zai-skills/portfolio.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 679 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.00019 $0.00679
Opus 5 $0.00010 $0.00340
Sonnet 5 $0.00004 $0.00136
Haiku 4.5 $0.00002 $0.00068

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

Security

Grade A, and why

portfolio 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 4d 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.

real-estate-investment/commands/portfolio.md · 53 lines

How it starts

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

Portfolio Tracker & Review

Requested action and details (may be empty): $ARGUMENTS

Instructions

When this command is invoked, maintain the user's persistent portfolio file and review it:

1. Locate or Create portfolio.json

Look for portfolio.json in the current working directory (Glob/Read).

  • Exists: Read it and confirm the property count and as_of date with the user
  • Missing: create it from the plugin template — Read ${CLAUDE_PLUGIN_ROOT}/templates/portfolio-template.json, keep its _schema block, replace the example entries with the user's actual properties, and set as_of to today

2. Apply the Requested Change

Interpret $ARGUMENTS (or ask):

  • add: collect the schema fields for the new property via AskUserQuestion — required: property, basis, debt, rate + maturity (if debt > 0), rent, noi, value; recommended: type, acquired, accumulated_depreciation, value_source, notes
  • update: locate the entry by address (fuzzy match is fine, confirm the match), update the named fields, refresh as_of
  • remove: delete the entry after confirmation (suggest /exit-analysis first if they are selling rather than just cleaning up)
  • review (or no action given): skip straight to step 4

Validate before writing: numbers are plain numbers, rates are decimals (0.065 not 6.5), dates are YYYY-MM-DD, debt <= value sanity check (warn, don't block). Write the updated file with Write, preserving the _schema block and any fields you did not touch.

3. Confirm the Write

Show a one-line-per-property summary table (address, value, debt, NOI, rate, maturity) so the user can spot typos before analysis runs.

4. Run the Portfolio Review

Invoke the portfolio-reviewer agent, telling it to read portfolio.json in the working directory as its data source. It aggregates portfolio metrics (LTV, weighted cap rate, portfolio DSCR, CoC), flags concentration and refinance risks, ranks property performance, and recommends optimization moves.

Read the full file on GitHub · 53 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. 4d ago First seen · 53 lines · 19 tokens per session scan A 84ad1d020791

Subscribe to this mod's changes

portfolio is a command published in the GitHub repository Aznatkoiny/zAI-Skills (9 stars, last pushed 1mo ago), licensed MIT. It adds 19 tokens to every session and 679 once invoked, about $0.0001 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-09-03.