portfolio-review

portfolio-review is a skill for Claude Code from yennanliu/InvestSkill. It costs 8 tokens per session (4,492 once invoked), scanned A, original, MIT.

A framework for examining an investment portfolio’s results, risk, holdings, and allocation, meaning how money is distributed across investments.

In plain words
What is it for?
Use it to review returns over different periods, compare them with benchmarks such as the S&P 500, measure drawdowns and volatility, and assess holdings against an investor’s goals.
Why use it?
It helps investors understand both how a portfolio performed and how much risk or concentration it carries.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the us-stock-analysis plugin — 27 skills shipped together

Good fit Use it to review returns over different periods, compare them with benchmarks such as the S&P 500, measure drawdowns and volatility, and assess holdings against an investor’s goals.

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

Made for: Claude Code.

Or install us-stock-analysis, the plugin that ships this one along with the rest of its 27 skills.

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-review

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yennanliu/investskill/portfolio-review"><img src="https://agentmods.dev/badge/skills/yennanliu/investskill/portfolio-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,492 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.00008 $0.04492
Opus 5 $0.00004 $0.02246
Sonnet 5 $0.00002 $0.00898
Haiku 4.5 $0.00001 $0.00449

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

Security

Grade A, and why

portfolio-review 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.

plugins/us-stock-analysis/skills/portfolio-review/SKILL.md · 424 lines

How it starts

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

Portfolio Review

Comprehensive portfolio analysis and optimization recommendations.

Phase 1 — Portfolio Snapshot

Start with a high-level summary before diving into details:

  • Total portfolio value and cash position
  • Number of holdings and average position size
  • Date range of analysis
  • Investor profile: risk tolerance (conservative / moderate / aggressive), time horizon, income vs. growth objective

Phase 2 — Performance Analysis

  1. Absolute Returns

    • YTD, 1Y, 3Y, 5Y total return
    • Compare against relevant benchmarks (S&P 500, Russell 2000, custom blended benchmark)
    • Annualized return vs. benchmark — outperformance or underperformance in basis points
  2. Risk-Adjusted Returns

    • Sharpe ratio (excess return per unit of total risk)
    • Sortino ratio (penalizes only downside volatility)
    • Calmar ratio (annualized return / max drawdown)
    • Information ratio vs. benchmark
  3. Drawdown Analysis

    • Maximum drawdown: peak-to-trough magnitude and duration
    • Recovery period after each significant drawdown
    • Drawdown frequency over the analysis window
    • Compare portfolio drawdown vs. benchmark during market stress periods
  4. Volatility Metrics

    • Annualized standard deviation of returns
    • Beta vs. S&P 500 (market sensitivity)
    • Tracking error vs. benchmark
    • Upside capture / downside capture ratios

Phase 3 — Asset Allocation Review

  1. Current Allocation Breakdown

    • Asset class weights: equities, fixed income, cash, REITs, commodities, alternatives
    • Equity sub-breakdown: US large cap, US small/mid cap, international developed, emerging markets
    • Compare current weights to target/policy weights — flag deviations > 5%
  2. Geographic Diversification

    • US vs. international exposure (%)
    • Country concentration risk — any single country > 20%?
    • Currency exposure and hedging status
  3. Sector and Industry Weights

    • GICS sector breakdown vs. S&P 500 sector weights
    • Overweight / underweight sectors and the investment thesis behind each
    • Cyclical vs. defensive balance relative to current macro environment

Read the full file on GitHub · 424 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 · 424 lines · 8 tokens per session scan A 3d999fd73376

Subscribe to this mod's changes

portfolio-review is a skill published in the GitHub repository yennanliu/InvestSkill (206 stars, last pushed yesterday), licensed MIT. It adds 8 tokens to every session and 4,492 once invoked, about $0.0000 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.