Portfolio Review 标志

Portfolio Review

社区
yennanliu
portfolio-review

评估并分析投资组合的表现和资产配置

Add to TypingMind

概览

发布者yennanliu
代码仓库InvestSkill
技能名称portfolio-review
星标数
254
复刻数
61
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 yennanliu 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Portfolio Review AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/yennanliu/InvestSkill/tree/main/plugins/us-stock-analysis/skills/portfolio-review
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/yennanliu/InvestSkill.git /tmp/InvestSkill
mkdir -p .claude/skills
cp -r /tmp/InvestSkill/plugins/us-stock-analysis/skills/portfolio-review .claude/skills/portfolio-review
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Portfolio Review,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Portfolio Review。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Portfolio Review 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Portfolio Review

📋 Data & Sources Header — Open Every Output With It

The first thing in the output is this provenance block, filled in — never left as placeholders. It is the standard documented on the Data & Accuracy page and the first thing result-validator looks for:

Data & Sources
  As of:      <date the figures represent, e.g. 2026-06-30>
  Source:     <primary docs — SEC EDGAR 10-K/10-Q, company IR, FRED, exchange data …>
  Retrieval:  <pasted by user | web/tool retrieval | model memory>
  Confidence: <HIGH | MEDIUM | LOW>
  • Retrieval: model memory must be paired with Confidence: LOW — memory is a placeholder until confirmed against a primary source.
  • Mixed sources: list each with its own as-of date rather than blending them.
  • Sources disagree on the same figure (a closing price, a deal term): prefer the primary source (SEC filing, company release, exchange data) over an aggregator, then the most recent dated one. Show both values with their sources and dates, say which you used and why, and never average them.
  • Data the user pasted is reported as pasted by user; do not upgrade its confidence beyond what the user's own source supports.

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
  4. Market Cap Distribution

    • Large cap / mid cap / small cap split
    • Growth vs. value tilt (P/E, P/B relative to benchmark)
    • Quality factor exposure (ROE, balance sheet strength)

Phase 4 — Holdings Review

  1. Individual Position Analysis

    • Position size as % of portfolio — flag any > 10% single-stock concentration
    • Contribution to total return (winners vs. laggards)
    • Unrealized gain/loss and holding period (tax impact)
  2. Position Sizing Discipline

    • Largest 5 positions — are sizes justified by conviction and risk/reward?
    • Smallest positions — are they too small to be meaningful?
    • Kelly criterion or volatility-scaled sizing check
  3. Overlap and Redundancy

    • Identify pairs of holdings with > 0.7 correlation
    • ETF overlap analysis — holdings duplicated across ETFs
    • Factor overlap: are multiple positions expressing the same single bet?
  4. Cost Efficiency

    • Weighted average expense ratio for ETF/fund holdings
    • Estimated annual trading cost drag
    • Tax lot optimization — identify specific lots to sell for tax efficiency

Phase 5 — Concentration Risk Scoring

Score each concentration dimension independently, then aggregate:

Single-Stock Concentration

Position WeightScoreStatus
< 5%0OK
5%–10%1Monitor
10%–15%2Warning
15%–20%3High Risk
> 20%5Red Flag — immediate review required

Sector Concentration

Largest Sector WeightScoreStatus
< 20%0Diversified
20%–25%1Slight tilt
25%–30%2Elevated
30%–40%3Warning
> 40%5Concentration risk — rebalance urged

Factor Concentration

Factor Tilt ConditionScoreNote
Mixed factors0Balanced
Mild single-factor tilt1Acceptable with thesis
Strong single-factor tilt (>70% one factor)3Vulnerable to factor drawdown
Pure single-factor portfolio (>90%)5Maximum factor risk

Common factor concentration traps: all high-growth names (P/E > 40), all micro/small-cap, all rate-sensitive (long-duration bonds + REITs + utilities together).

Aggregate Concentration Score

  • 0–2: Well-diversified
  • 3–5: Moderate concentration — monitor
  • 6–9: High concentration — rebalance
  • 10+: Critical — urgent review

Phase 6 — Correlation & Diversification Analysis

Measuring Diversification Benefit

Portfolio volatility reduction vs. average asset volatility signals diversification quality. If portfolio vol ≈ average position vol, diversification benefit is near zero.

Diversification Ratio = (Weighted average individual vol) / (Portfolio vol)

  • Ratio > 1.5: Good diversification
  • Ratio 1.2–1.5: Moderate
  • Ratio < 1.2: Poor — holdings move together

Pairwise Correlation Heatmap Template

For each pair of top-10 holdings, estimate 1-year rolling correlation:

         AAPL   MSFT   GOOGL  AMZN   NVDA   JPM   XOM   GLD
AAPL     1.00   0.85   0.82   0.79   0.76   0.42  0.15  -0.10
MSFT     0.85   1.00   0.84   0.80   0.78   0.41  0.14  -0.12
GOOGL    0.82   0.84   1.00   0.81   0.73   0.39  0.12  -0.09
AMZN     0.79   0.80   0.81   1.00   0.70   0.37  0.10  -0.08
NVDA     0.76   0.78   0.73   0.70   1.00   0.35  0.11  -0.07
JPM      0.42   0.41   0.39   0.37   0.35   1.00  0.48   0.05
XOM      0.15   0.14   0.12   0.10   0.11   0.48  1.00   0.30
GLD     -0.10  -0.12  -0.09  -0.08  -0.07   0.05  0.30  1.00

Color code: > 0.75 = HIGH (red), 0.50–0.75 = MODERATE (yellow), < 0.50 = LOW (green)

Effective Number of Positions (ENP)

ENP = 1 / sum(wi²) where wi = weight of position i

Interpretation:

  • ENP ≈ actual N: equal-weight, low correlation — true diversification
  • ENP << actual N: dominated by a few large/correlated positions
  • Target ENP: at least 0.6 × actual number of holdings

Correlated Cluster Identification

Group holdings with pairwise correlation > 0.75 into clusters. Each cluster behaves as a single economic bet. Example clusters: Big Tech, Energy Majors, Regional Banks, Long-Duration Fixed Income.

Actionable rule: no single cluster should exceed 35% of portfolio weight.

Phase 7 — Tax-Loss Harvesting Opportunities

Identification Criteria

Screen all positions for:

  1. Unrealized loss > 10% of cost basis
  2. Position held > 30 days (avoid wash-sale complications)
  3. Realized gains available to offset in the current tax year

Wash-Sale Rule (30-Day Rule)

Do not repurchase the same or substantially identical security within 30 days before or after the sale. Alternatives to maintain exposure during the 30-day window: sell XOM, buy CVX; sell QQQ, buy VGT; sell one S&P 500 ETF for another.

Net Tax Benefit Calculation

Gross Tax Saving = Realized Loss × Marginal Tax Rate
Transaction Cost  = (Bid-Ask Spread + Commission) × 2
Net Benefit       = Gross Tax Saving − Transaction Cost
Harvest if:       Net Benefit > 0 AND loss > $500 minimum threshold

Tax-Loss Harvest Decision Table

ConditionAction
Unrealized loss > 10%, gains to offset, loss > $500Harvest — sell and replace with correlated substitute
Unrealized loss 5–10%, gains to offsetEvaluate: transaction cost vs. tax saving
Unrealized loss > 10%, no offsetting gainsHold or carry forward — harvest at year-end if gains materialize
Position held < 30 daysWait for 30-day window to avoid wash-sale
Loss < $500Skip — transaction costs exceed benefit
Short-term gain offsetPriority harvest — short-term rates are higher

Annual Harvest Tracking

Maintain a log: position, cost basis, current value, loss amount, harvest date, replacement security, re-entry date. Review in October before year-end to maximize benefit.

Phase 8 — Factor Exposure Analysis

Six-Factor Portfolio Map

For each holding, estimate factor scores (1–5 scale, 3 = neutral):

FactorMeasurement ProxyLow (1–2)Neutral (3)High (4–5)
ValueP/E, P/B vs. sectorExpensiveFairCheap
GrowthRevenue/EPS CAGR 3Y< 5%5–15%> 15%
Momentum12-1 month returnBottom quartileMiddleTop quartile
QualityROE, Debt/EBITDALow ROE, high debtAverageHigh ROE, low debt
Low-Vol1Y realized volHigh volAverageLow vol
SizeMarket capMega-capMid-capSmall-cap

Portfolio-Level Factor Score

Weight each holding's factor score by portfolio weight. Compare to S&P 500 baseline (all factors = 3.0):

Factor      Portfolio Score   Benchmark   Active Tilt
Value           2.1              3.0       -0.9  (Growth tilt)
Growth          4.2              3.0       +1.2  (Strong growth)
Momentum        3.8              3.0       +0.8  (Slight momentum)
Quality         3.5              3.0       +0.5  (Slight quality)
Low-Vol         2.3              3.0       -0.7  (Higher volatility)
Size            2.4              3.0       -0.6  (Large-cap tilt)

Unintended Factor Tilt Detection

Flag when any active tilt exceeds ±1.0: this signals an unintended concentration that may not be in the investment thesis. Common unintended tilts: growth investors inadvertently loading up on momentum; dividend investors loading up on low-vol (rate sensitive); index investors with large-cap tilt through tech sector overweight.

Benchmark Factor Comparison

Use the factor tilts to explain return difference from benchmark. Growth tilt +1.2 in a value-outperforming market explains underperformance. Momentum tilt in a mean-reverting market increases drawdown risk.

Phase 9 — Rebalancing Decision Framework

When to Rebalance

Three trigger systems — use the one matching the investor's approach:

  1. Threshold-Based (Recommended for most investors)

    • Rebalance when any asset class drifts > 5% from target weight
    • Individual stock position drifts > 3% from target
    • No action if drift is within tolerance band
  2. Calendar-Based

    • Review quarterly; rebalance only if drift > 3%
    • Annual full rebalance regardless of drift
    • Simpler but may miss significant mid-quarter moves
  3. Factor-Based

    • Rebalance when portfolio factor score diverges > 1.5 from target
    • Triggered by momentum factor decay (top-quartile stocks reversing)
    • Suitable for factor-aware investors

Cost-Benefit Analysis

Before executing any rebalance, verify it clears the cost hurdle:

Expected Drift Cost (annual) = Excess vol from drift × Sharpe ratio penalty
Transaction Cost = Commission + (Bid-Ask Spread × Trade Size) + Tax Impact
Rebalance if: Drift Cost > Transaction Cost × 2 (safety margin)

Rule of thumb: do not rebalance positions with < $2,000 drift — transaction costs exceed benefit.

Rebalancing Decision Flowchart

START
  |
  v
Is drift > threshold?
  NO  --> Monitor next period
  YES --> Is account taxable?
            YES --> Are there harvesting opportunities?
                      YES --> Combine harvest + rebalance
                      NO  --> Evaluate tax cost of rebalance
                               Tax cost > drift benefit? --> Delay
                               Tax cost < drift benefit? --> Rebalance
            NO  --> Rebalance immediately (no tax friction)

Tax-Smart Rebalancing Order

  1. Use new cash contributions to buy underweight assets first
  2. Reinvest dividends into underweight positions
  3. Harvest losses in overweight positions to fund purchases
  4. If still needed, sell overweight positions (minimize short-term gains)

Phase 10 — Drawdown & Risk Budget Analysis

Per-Position Maximum Drawdown

For each holding, calculate the worst peak-to-trough decline over the analysis window:

PositionMax DrawdownRecovery TimeCurrent From PeakRisk Level
Example-35%14 months-8%Medium

Flag positions with max drawdown > 50%: high-volatility securities require smaller position sizes to avoid outsized portfolio impact.

Portfolio-Level Value at Risk (VaR)

95% VaR (1-day): the loss not exceeded on 95% of trading days.

Parametric VaR (simplified) = Portfolio Value × Portfolio Daily Vol × 1.645

Example: $500,000 portfolio, daily vol 0.9% → 95% VaR = $500,000 × 0.009 × 1.645 = $7,403/day

Report also: 99% VaR (multiply by 2.326 / 1.645) and 10-day VaR (multiply by √10).

Contribution to Portfolio Volatility

Each position's marginal contribution to total portfolio volatility:

Marginal Vol Contribution (i) = weight(i) × Cov(i, portfolio) / Portfolio Vol
% Vol Contribution = Marginal Vol Contribution / Portfolio Vol × 100

Target: no single position contributes > 20% of total portfolio volatility unless it is a deliberate high-conviction overweight.

Risk Budget Allocation Table

PositionWeight %Vol Contribution %Risk Budget UsedStatus
Ideal≤ 10%≤ 15%≤ budgetOK
Flag> 10%> 20%Over budgetTrim

Stress Test Scenarios

Apply historical shock scenarios to estimate portfolio impact:

  • 2022 Rate Shock: tech -35%, bonds -15%, energy +50%
  • 2020 COVID Crash: market -34% in 33 days, recovery 5 months
  • 2008 GFC: market -57%, credit spreads +500bps
  • 2000 Dot-com: tech -78% over 2.5 years

For each scenario: estimate portfolio decline, identify worst-hit positions, confirm portfolio can withstand the scenario without forcing a distressed sale.

Phase 11 — Optimization Recommendations

  1. Rebalancing Actions

    • List all positions with > 2% drift from target weight
    • Priority order: largest drift first
    • Tax-aware rebalancing: prioritize tax-loss harvesting in taxable accounts
    • Proposed trades: ticker, action (buy/sell/trim), target weight, estimated proceeds
  2. Diversification Improvements

    • Specific gaps to fill (e.g., no international exposure, no inflation hedge)
    • Correlation-reduction swaps: replace redundant holdings with uncorrelated alternatives
    • Alternative asset candidates if appropriate (gold, TIPS, REITs, private credit proxies)
  3. Underperformer Review

    • For each position underperforming benchmark by > 10% over 1Y:
      • Is the original thesis intact?
      • Has fundamentals deteriorated or is this a temporary setback?
      • Hold / average down / exit decision with rationale
  4. Upgrade Candidates

    • Positions to add based on current conviction and valuation
    • New opportunities that fit the portfolio's existing factor tilts
    • Cost reduction opportunities (replace active fund with cheaper ETF equivalent)

Output Format

Deliver the review as a structured report with these sections:

  1. Executive Summary (3–5 bullet points: biggest strengths and risks)
  2. Performance Scorecard (table: metric | portfolio | benchmark | delta)
  3. Allocation Heat Map (sector/geography breakdown in table form)
  4. Concentration Risk Score (aggregate score with dimension breakdown)
  5. Factor Exposure Summary (six-factor table vs. benchmark)
  6. Holdings Table (position | weight | 1Y return | vol contribution % | status: hold/trim/exit)
  7. Tax-Loss Harvest Candidates (position | unrealized loss | estimated tax saving)
  8. Risk Budget Table (position | weight | vol contribution | status)
  9. Action List (prioritized, with expected portfolio impact)
  10. Implementation Roadmap (immediate / 30-day / 90-day actions)

Focus on actionable insights aligned with the investor's stated objectives and risk tolerance. Flag any positions or allocations that conflict with the investor profile.

Data Verification

Before finalizing the analysis, verify:

  • Position weights sum to 100% (or account for cash)
  • Return figures use total return (dividends reinvested)
  • Benchmark used matches portfolio's investment universe
  • Correlation estimates based on at least 1 year of data
  • Tax calculations use correct marginal rate for the investor
  • Factor scores sourced from consistent data provider
  • VaR calculation uses current portfolio weights, not stale data

Thesis Invalidation

A portfolio review is a plan, and plans expire. After the signal, state what would make this review's action list wrong:

If the signal is BULLISH (portfolio is well-positioned) — thesis breaks if:

  • Any single position breaches the concentration limit set in this review (state the % and the ticker)
  • Realized correlation between the top holdings rises above the level assumed in the risk-budget table (diversification that only exists on paper)
  • The investor's stated objective or horizon changes — a portfolio built for accumulation is wrong for drawdown

If the signal is BEARISH (portfolio needs repair) — thesis breaks if:

  • The flagged positions are trimmed or hedged as recommended and the risk-budget table re-balances
  • The concentration that drove the call resolves through price (the over-weight position falls) rather than through action — re-check before selling into weakness
  • The benchmark used turns out to be the wrong universe for the mandate

Re-run this review when:

  • Quarter-end (rebalance check)
  • Any position moves more than ±25% relative to the portfolio
  • A contribution or withdrawal larger than 10% of portfolio value
  • Tax-year end (harvest window)
  • The investor's objectives, income needs, or horizon change

Standard Signal Output

All analysis concludes with this standardized block:

╔══════════════════════════════════════════════╗
║              INVESTMENT SIGNAL               ║
╠══════════════════════════════════════════════╣
║ Signal:      BULLISH / NEUTRAL / BEARISH     ║
║ Confidence:  HIGH / MEDIUM / LOW             ║
║ Horizon:     SHORT / MEDIUM / LONG-TERM      ║
║ Score:       X.X / 10                        ║
╠══════════════════════════════════════════════╣
║ Action:      BUY / HOLD / SELL               ║
║ Conviction:  STRONG / MODERATE / WEAK        ║
╚══════════════════════════════════════════════╝

Score Guide: 8.0–10.0 Strongly Bullish | 6.0–7.9 Moderately Bullish | 4.0–5.9 Neutral | 2.0–3.9 Moderately Bearish | 0.0–1.9 Strongly Bearish Confidence: HIGH (strong data, clear signals) | MEDIUM (mixed signals) | LOW (limited data, conflicting signals) Horizon: SHORT-TERM (1 week–3 months) | MEDIUM-TERM (3 months–1 year) | LONG-TERM (1+ years)

Disclaimer: Educational analysis only. Not financial advice.

常见问题

Portfolio Review AI 技能有什么作用?

评估并分析投资组合的表现和资产配置

为什么在 TypingMind 中使用 Portfolio Review?

因为您只需安装一次,就能搭配任何模型使用。Portfolio Review 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Portfolio Review?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/yennanliu/InvestSkill/tree/main/plugins/us-stock-analysis/skills/portfolio-review。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Portfolio Review?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Portfolio Review 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Portfolio Review 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Portfolio Review AI 技能免费吗?

是的。yennanliu 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇