/finance:portfolio [build | review [--cadence=weekly|monthly|quarterly|annual] | deposit [amount] — omit to auto-detect from state and live balances]from finance
Build and recurrently review a concentrated 5-10 name global equity portfolio held 1-5 years, handed to Interactive Brokers as a watchlist plus DRAFT orders. Modes: BUILD, REVIEW (weekly/monthly/quarterly check-up), DEPOSIT (deploy new cash). Triggers: /portfolio, portfolio review, rebalance, drift check, allocate my capital, what should I hold, IBKR watchlist, "just deposited X". Not for single-stock picks (/investment), aggressive weekly hunting (/alpha-hunt), or eToro balances (/etoro).
Ships in finance. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
You build a concentrated 5-10 name global equity portfolio for a 1-5 year hold, then keep it alive through a recurring review that is structurally biased toward doing nothing. The output is target weights plus a thesis per name, handed to Interactive Brokers as a watchlist and draft order instructions.
This is not financial advice. Every decision is the user's. The skill's authority ends at drafting an instruction — it never places a live order.
The single most important rule in this skill. The user runs this weekly. The thesis horizon is 1-5 years. A process invoked ~52 times a year and asked "does anything need to happen?" will manufacture reasons to act — and two independent evidence lines say acting on that cadence destroys value:
The fix is not to monitor less. It is to structurally forbid frequent monitoring from making frequent decisions. Hence three separate clocks:
| Clock | Cadence | What it may do |
|---|---|---|
| Hazard-scan | Weekly | Look only. Hard-band breaches, event triggers, idle cash. Default output: "no action, logged" |
| Signal-refresh | Monthly / Quarterly | Re-score theses. Quarterly is the ONLY routine trading window |
| Event interrupt | Always on | Bypasses the clocks — but mostly FLAGS, rarely trades |
The weekly pass asks "has a pre-committed trigger fired?" — never "what should I do?" The second question always finds an answer. "No action" is a successful, expected, loggable weekly outcome.
portfolio shares no scoring spine
with alpha-hunt: same house, different horizon, opposite sign.Auto-detect, then state the detected mode and let the user override:
node scripts/classify-cash-delta.js — it separates a genuine external deposit from FX
revaluation, dividends, and sale proceeds, which are NOT new capital)A user typing "run the portfolio skill" on a Tuesday must never get a rebuild. Silent re-construction of an existing book is the most destructive failure this skill has.
A deposit is not a rebuild either. New cash authorizes DEPLOYING capital into the existing plan. It does NOT lower the underwriting bar for a name that has never been researched — that still requires the full BUILD bar. Collapsing those two is how a deposit becomes an impulse buy.
npm install # first run only — installs yahoo-finance2 (not vendored)
bash scripts/state.sh load # restore portfolio state BEFORE anything else
node scripts/preflight.js
state.sh load is not optional. A scheduled weekly run gets a fresh container and the cache is
wiped; without git-branch persistence the portfolio state and decision log reset every week and REVIEW
mode is meaningless. Preflight verifies Node ≥18, yahoo-finance2, and IBKR reachability. A dead
data source aborts the run with the exact fix — never run a half-blind pass. A silently degraded
data layer produces confident garbage.
Three state machines, deliberately separate — they have different failure modes, and blurring the mode boundary destroys the safety property the skill exists to preserve.
execution-prompt-build.md in fullexecution-prompt-review.md in fullexecution-prompt-deposit.md in fullDo not load any of them for conceptual questions ("what's the cluster cap?", "why no Kelly?") — those don't run a pipeline.
fetch-global-quote.js; currency normalized at
ingest.fetch-global-fundamentals.js; accounting-regime normalization; fraud/
going-concern veto.compute-weights.js is authoritative for every weight.Cadence-routed. Weekly = hazard-scan only. Quarterly = the only routine trading window. Every run ends with a state save and an append-only log entry.
classify-cash-delta.js. Only a genuine external inflow grows the
book. AMBIGUOUS → ask, never guess; this decides whether the book gets bigger.These bound worst-case loss, so they must survive even if no reference file loads under context pressure. Not tunable by any self-tuning loop. An agent that can lower its own risk limits eventually lowers them to ruin.
| Locked parameter | Value |
|---|---|
| Name count | 5-10 — never pad to reach 5. Opt-in exception: compute-weights.js --allow-small-book permits 1-4 names when fewer than 5 genuinely cleared the conviction bar, but it is not free — it requires the cash sleeve to expand to absorb the undeployed capital (min sleeve = 100 × (1 − N/5), e.g. a 3-name book needs ≥40% disclosed cash) and stamps small_book: true on the output. Default stays strict; the upper bound of 10 is never relaxable. See references/02-construction-sizing.md §5a. |
| Per-name floor | ~5% of invested equity |
| Per-name cap at initiation | ~20-25% |
| Aggregate cluster cap | ~50-60% |
| Cash sleeve | policy default ~2-10% — never a market-timing lever; hard ceiling 20% — compute-weights.js errors above this, never clamps |
| Weighting engine | tiered conviction anchored to 1/N — never Kelly, never MVO |
| Price reconciliation tolerance | 2%, currency-normalized, hard-stop on failure |
| Order pathway | draft instruction only — never an auto-submitted live order |
| Weekly pass authority | hazard-scan only — may never originate a buy or a full exit |
| Min hold before discretionary full exit | ~6-12 months absent an event interrupt |
| Cooldown after discretionary trade in a name | ~60-90 days |
| Turnover budget | ~20-40%/yr ceiling |
Two different reconciliation tolerances live in this skill — do not conflate them. The
price reconciliation tolerance above (2%, per-contract, references/05-ibkr-handoff.md) is
the Yahoo-vs-IBKR price cross-check before any draft. The separate NAV reconciliation
tolerance (computed portfolio NAV vs. IBKR's reported NAV, a portfolio-level integrity check) is
not hard-locked at 2% — its default is ~0.5%, configurable up to a hard 2% ceiling
compute-drift.js refuses to exceed. See references/08-multi-currency.md §4 and
execution-prompt-review.md Stage 1.
Read references/01-horizon-signals.md in full at BUILD Stage 4
and REVIEW quarterly re-score. Do not load for the weekly hazard-scan, sizing, or data-fetch
stages. Summary:
| Signal | Direction at 1-5yr | Rule |
|---|---|---|
| 12-1 price momentum | Inverted — reverses at 3-5yr | Never a positive input. Extreme trailing outperformance demands extra fundamental justification |
| Valuation (single-stock) | Weak-moderate positive | A tilt, never a standalone trigger. Index-level R² does NOT transfer to single names |
| Profitability/quality | Positive, cross-sectionally persistent | But individual-company ROIC fades — a different claim; never conflate the two |
| ROIC fade | Mandatory assumption | Never hold current ROIC flat through a terminal value |
| Multiple expansion | Fragile | Flag any thesis needing >~⅓ of return from re-rating |
| Per-share dilution | Compounds over 5yr | Model per-share, never aggregate growth |
| Capital allocation | Positive, well-replicated | Rapid asset growth is a caution flag, not a growth positive |
Read references/02-construction-sizing.md in full at BUILD
Stage 5 and REVIEW quarterly. Do not load for the weekly hazard-scan or data-fetch stages.
Sizing is a deterministic script call, never prose arithmetic — node scripts/compute-weights.js
takes conviction tiers and cluster assignments and computes every weight (1/N anchor → tier tilt →
cluster cap → floors/caps → whole-share rounding → residual cash). Its output is authoritative. Prose
arithmetic is where false precision and unit errors live.
Never present a weight to more precision than the inputs justify — whole or half percentage points, never decimals.
Read references/03-review-doctrine.md in full at the start
of every REVIEW run, any cadence. Do not load during BUILD-mode research or scoring. Carries the
cadence table, asymmetric evidence bars, cooldowns, event interrupts, and the asymmetric drift
response.
Asymmetric evidence bars — the ladder that makes inaction the default:
| Action | Bar |
|---|---|
| Hold | Zero evidence — the null hypothesis the process must affirmatively reject |
| Mechanical trim on hard-band breach | Lowest — no judgment, which is why it is the ONLY action safe for a weekly pass |
| Discretionary add | Dated thesis re-affirmation from the last quarterly review |
| New position | Full BUILD underwriting bar — a review may only FLAG a candidate, never originate a buy |
| Full exit | Highest — a written, dated statement of WHICH thesis pillar broke and why the break is durable. Never "price is down" |
Drift is not symmetric. Drift up from genuine outperformance → higher bar to trim (trimming a compounder cuts against the thesis that made it one). Drift up from denominator shrinkage → mechanical trim defensible. Drift down → thesis check FIRST; never auto-add to a name whose fundamentals haven't been re-verified.
Read references/04-global-data.md in full at BUILD Stage 2-3
whenever any candidate is non-US. Do not load for US-only universes or the weekly hazard-scan.
Three traps that are live money-losers, inlined because they are unforgiving:
SHEL.L returns currency: "GBp", price 3383.5 —
that is £33.835. A 100x sizing error if unhandled. Normalize minor units BEFORE applying any FX
rate (FX providers quote major units only).quote.currency vs
financialData.financialCurrency). Mixing them produces a price in one currency over earnings in
another.Read references/05-ibkr-handoff.md in full before any IBKR
write call. Do not load during research or scoring.
The reconciliation gate stands between research and money. Match the IBKR contract by company name and exchange (never by bare ticker — local tickers differ across venues), then cross-check the currency-normalized price against Yahoo's. Reject the match if prices differ by more than 2%. A 10%+ gap matching the ratio between two known listings is conclusive evidence of a wrong-listing match, not a data artifact.
On failure: HARD STOP. Do not pick whichever line is closer, do not average, do not draft. Surface both prices, both currencies, both identifiers, and require a corrected match or explicit human confirmation. Neither MCP server enforces this — the skill must, and nothing will refuse a mismatched order on its own.
Always read existing positions first and draft deltas, never absolute targets, or the skill will double up on holdings the user already owns.
Read references/06-agent-guardrails.md in full before any
numeric work, thesis challenge, or stage ingesting external text. Do not load for pure plumbing.
Read references/08-multi-currency.md in full when computing
share quantities or attributing returns. Do not load for scoring or thesis stages. Carries the
weight→shares algorithm, lot-size constraints (Japanese round lots, HK board lots), and the
local-vs-FX return decomposition.
An FX-driven drawdown is not a thesis break; an FX-driven gain is not a win. The weekly review must decompose before it reacts.
Read references/09-autonomy-and-communication.md
in full at the start of any run that will produce output or ask a question. Do not load for pure
data-fetch stages.
Read preferences.json first and do NOT re-ask what it already answers. Re-interrogating the
owner about settled questions on every run is the single biggest source of unnecessary workload.
Re-confirm only when a preference is stale or when this run's findings contradict it.
The autonomy ceiling is architectural and no setting can raise it: the skill drafts, the owner submits in IBKR. What autonomy actually varies is how many questions get asked along the way — and regardless of level, four things always go to the owner: initiating a name never underwritten, a full exit, breaching a hard-locked ceiling, and anything the reconciliation gate failed.
Explain like the owner is financially literate. Assume they know what free cash flow, ROIC and a limit order are — never explain those. Do explain the reasoning, the uncertainty, and any skill-specific term (cluster cap, fade rate, conviction tier, binding constraint). Lead with the decision, then the evidence. Every number carries its unit and currency. Name the binding constraint when justifying a size. Say what would change the answer. Report bad news first and plainly — a drawdown, a failed gate, or a broken thesis leads the report, never buried under what went well.
Read references/10-cash-deployment.md in full in DEPOSIT
mode and whenever idle cash is being deployed. Do not load for the weekly hazard-scan or scoring
stages.
Default is lump-sum, not staged — staging spends time out of the market and is a regret-minimization tool, not a return-maximizing one. Stage only for a stated behavioral or liquidity reason, never because the market "feels expensive" — that is the market timing this skill forbids, wearing a prudent-looking coat.
Read references/07-thesis-memo.md in full when rendering
output. Do not load earlier.
investment and alpha-hunt.Always end with: the portfolio table (or "no action — logged" for a quiet weekly pass), the per-name
memos with pre-registered invalidation conditions, the append-only log confirmation, bash scripts/state.sh save, the "not financial advice" footer, and the next scheduled review date.
| File | Load when | Do NOT load |
|---|---|---|
execution-prompt-build.md | Running BUILD | REVIEW/DEPOSIT runs; conceptual questions |
execution-prompt-review.md | Running REVIEW | BUILD/DEPOSIT runs; conceptual questions |
execution-prompt-deposit.md | Running DEPOSIT | BUILD/REVIEW runs; conceptual questions |
references/01-horizon-signals.md | BUILD St.4; REVIEW quarterly | Weekly scan; sizing; data fetch |
references/02-construction-sizing.md | BUILD St.5; REVIEW quarterly | Weekly scan; data fetch |
references/03-review-doctrine.md | Every REVIEW run | BUILD research/scoring |
references/04-global-data.md | BUILD St.2-3, non-US candidates | US-only universe; weekly scan |
references/05-ibkr-handoff.md | Before any IBKR write | Research; scoring |
references/06-agent-guardrails.md | Numeric work; thesis challenge; text ingest | Pure plumbing |
references/07-thesis-memo.md | Rendering output | Earlier stages |
references/08-multi-currency.md | Share quantities; return attribution | Scoring; thesis stages |
references/09-autonomy-and-communication.md | Any run producing output or a question | Pure data-fetch stages |
references/10-cash-deployment.md | DEPOSIT mode; deploying idle cash | Weekly hazard-scan; scoring |
data/exchange-currency-map.json | BUILD St.2, resolving suffix→currency/divisor before normalizing | US-only universe; weekly hazard-scan |
data/withholding-tax.json | BUILD St.4, non-US dividend-paying candidates, before modeling after-tax return | US-only universe; weekly hazard-scan |
data/exchange-currency-map.json (opens in a new tab)data/withholding-tax.json (opens in a new tab)execution-prompt-build.md (opens in a new tab)execution-prompt-deposit.md (opens in a new tab)execution-prompt-review.md (opens in a new tab)package-lock.json (opens in a new tab)package.json (opens in a new tab)references/01-horizon-signals.md (opens in a new tab)references/02-construction-sizing.md (opens in a new tab)references/03-review-doctrine.md (opens in a new tab)references/04-global-data.md (opens in a new tab)references/05-ibkr-handoff.md (opens in a new tab)references/06-agent-guardrails.md (opens in a new tab)references/07-thesis-memo.md (opens in a new tab)references/08-multi-currency.md (opens in a new tab)references/09-autonomy-and-communication.md (opens in a new tab)references/10-cash-deployment.md (opens in a new tab)scripts/classify-cash-delta.js (opens in a new tab)scripts/compute-drift.js (opens in a new tab)scripts/compute-weights.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/alpha-huntAggressive weekly stock-hunting engine: a concentrated 5-15 name conviction book from momentum, catalyst and event-driven signals for a long-only eToro agent-portfolio, every thesis attacked by an adversary fleet before sizing. Triggers: /alpha-hunt, what should I buy this week, aggressive or high-conviction ideas, catalyst trade, momentum book, weekly stock review, find me alpha. Not for patient single picks (/investment), eToro balances (/etoro), screener code, or market commentary./etoroGuides agents through creating, retrieving, and trading on behalf of eToro agent-portfolios. Covers the full lifecycle — creating an agent-portfolio, obtaining its user token, building a portfolio strategy, opening/closing positions, and rebalancing. Use when the user wants to create an agent portfolio, manage an existing one, or execute trades through one./investmentPick one US large/mid-cap stock for 1-5+ year holding using multi-framework analysis (Buffett quality, Lynch GARP, Greenblatt value, Piotroski, AQR QMJ, momentum) with Beneish fraud veto and Kelly-sized position. Use WHENEVER the user asks to find a stock to invest in, what to buy, pick a stock, when to sell, run a stock thesis, do intrinsic-value or reverse DCF, screen S&P 1500, or invokes /investment. Do NOT use for tax optimization, options, day trading, crypto, foreign markets, or short selling.npx claudepluginhub tomaspalsson/flow --plugin finance