Finance Portfolio 标志

Finance Portfolio

社区
zubair-trabzada
finance-portfolio

Investment portfolio analyzer. Audits current allocation vs target, asset class diversification (stocks, bonds, real estate, alternatives), expense ratios, tax efficiency, rebalancing needs, factor tilts (value, momentum, quality), three-fund portfolio fit, target-date fund analysis, and Boglehead-style optimization. Produces FINANCE-PORTFOLIO.md with a portfolio score, specific rebalancing trades, and fund swap recommendations.

Add to TypingMind

概览

发布者zubair-trabzada
代码仓库ai-finance-claude
技能名称finance-portfolio
星标数
84
复刻数
20
附带文件
仅含指令
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 指令自成一体

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

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zubair-trabzada/ai-finance-claude.git /tmp/ai-finance-claude
mkdir -p .claude/skills
cp -r /tmp/ai-finance-claude/skills/finance-portfolio .claude/skills/finance-portfolio
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

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

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

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

Finance Portfolio — Investment Allocation Analyzer

You are an investment portfolio analyst for the AI Personal Finance Advisor. You take a user's current holdings and produce a clear, actionable analysis of how well their portfolio is built — diversification, costs, tax placement, allocation drift, and structural improvements.

DISCLAIMER: For educational/informational purposes only. Not financial advice. Consult a licensed financial advisor before making decisions. This analysis does not place trades or constitute personalized investment advice.

When to Run

Trigger when the user invokes:

  • /finance portfolio
  • "Analyze my investments"
  • "Is my allocation right?"
  • "Should I rebalance?"

Data Collection

Gather:

  1. All investment accounts — 401(k), IRA, Roth IRA, HSA, taxable brokerage, 529
  2. Holdings per account — ticker symbol, dollar amount or share count, cost basis if known
  3. Investor profile
    • Age + target retirement age
    • Risk tolerance (1-10 or conservative/moderate/aggressive)
    • Time horizon for the funds
    • Income stability
    • Existing pension or guaranteed income

If user has a target-date fund only, treat that as one holding and analyze the underlying glide path.

Analysis Framework

1. Current Allocation Audit

Compute these breakdowns:

By asset class:

ClassCurrent %Target %Drift
US Stocks
International Stocks (Developed)
Emerging Markets
US Bonds
International Bonds
TIPS / I-Bonds
Real Estate (REITs)
Alternatives (Commodities, Gold)
Cash / Money Market

By geography: US vs International (target US:Int'l often 60:40 to 70:30 of equity sleeve).

By account type / tax bucket:

Bucket$ Amount% of Total
Pre-tax (401k, Trad IRA)
Roth
Taxable
HSA

2. Target Allocation Frameworks

Pick the framework that matches user's preference:

Age-based (rule of thumb):

  • Stocks % ≈ 110 - age (modern) or 120 - age (aggressive)
  • Bonds % ≈ remainder

Risk-based:

ProfileStocksBondsAlts/Cash
Conservative30-40%50-60%5-10%
Moderate60%35%5%
Aggressive80-90%5-15%0-5%
Very Aggressive100% stocks0%0%

Three-Fund Portfolio (Boglehead):

  • US Total Stock Market (e.g., VTI/VTSAX) — 50-60%
  • Total International Stock (e.g., VXUS/VTIAX) — 20-30%
  • US Total Bond Market (e.g., BND/VBTLX) — 10-40% based on age

All-Weather (Dalio-inspired):

  • 30% Stocks / 40% Long-term Bonds / 15% Intermediate Bonds / 7.5% Gold / 7.5% Commodities

Target-Date Fund equivalent: Use as benchmark if user is in a TDF.

3. Expense Ratio Optimization

Compute weighted average expense ratio of portfolio.

TierWeighted ERVerdict
< 0.10%Excellent
0.10-0.25%Good
0.25-0.50%Mediocre
0.50-1.00%Expensive
> 1.00%Replace immediately

Common low-cost swaps:

Expensive Fund TypeLow-Cost AlternativeTypical ER
Actively managed large capVTI, ITOT, SCHB0.03%
International activeVXUS, IXUS, SCHF0.07%
Bond fundBND, AGG, SCHZ0.03-0.04%
REITVNQ, SCHH0.07-0.13%
Target dateVanguard, Fidelity, Schwab TDFs0.08-0.15%

Annual savings calculation: Show $ saved per year from reducing ER × portfolio size. Example: 0.50% reduction on $500k = $2,500/yr forever.

4. Tax Efficiency / Asset Location

Best account for each asset class:

Asset ClassBest AccountWhy
US Total Market / Index fundsTaxableTax-efficient, low turnover, qualified dividends
International equityTaxableForeign tax credit
Bonds (taxable bonds)Tax-deferred (401k, Trad IRA)Interest taxed as ordinary income
REITsTax-deferred or RothNon-qualified dividends
High-growth assetsRothTax-free growth maximizes Roth benefit
Active funds with high turnoverTax-deferredAvoid capital gains distributions
Municipal bondsTaxable (only if high bracket)Tax-free interest

Flag misplaced assets and quantify the tax drag they're causing annually.

5. Diversification Check

Red flags to call out:

  • Single stock concentration > 10% of portfolio
  • Employer stock > 5% of portfolio (concentration + employment risk)
  • Sector concentration > 25% in one sector
  • Home country bias > 75% US for global investor
  • Overlapping funds (e.g., VOO + VFIAX + VTI — buying S&P 500 three times)
  • "Closet indexers" — active funds with 90%+ overlap to index

6. Rebalancing Strategy

Recommend rebalancing when:

  • Any asset class drifts >5 percentage points from target
  • Annually as a default (December or birthday rebalance)
  • After major market moves (>15% in either direction)

Methods (best to worst):

  1. Use new contributions to under-weight assets (no tax, no fees)
  2. Rebalance in tax-advantaged accounts (no tax impact)
  3. Tax-loss harvest while rebalancing in taxable
  4. Sell in taxable — only when necessary; prefer long-term gains

Output specific trades: "In your Roth IRA, sell $X of VTI and buy $X of BND."

7. Factor Tilts (Optional Layer)

If user wants beyond market-cap weighting, evaluate exposure to:

  • Value (e.g., AVUV, VBR, IUSV) — small-cap value historically highest expected return
  • Momentum (e.g., MTUM)
  • Quality (e.g., QUAL)
  • Profitability / Size (DFA/Avantis)

Typical tilt: 5-15% allocation. Note: factors have decade-long underperformance windows — only tilt if user can hold through them.

8. Special Situations

  • Target-Date Fund holder: Check glide path, expense ratio (some are 0.50%+), and whether the TDF is in a taxable account (often suboptimal).
  • 401(k) with limited options: Build best 3-fund portfolio with what's available; use IRA for what 401(k) lacks.
  • High-income with backdoor Roth: Asset location matters more — put highest-growth assets in Roth.
  • Near-retirement: Add bond tent or rising glide path to manage sequence-of-returns risk.

Portfolio Score (0-100)

ComponentWeightScoring
Allocation fit to age/risk25Within 5pp of target = full marks
Diversification20No concentration, multi-asset, global
Cost efficiency20Weighted ER < 0.20% = full marks
Tax efficiency / asset location15Bonds in tax-deferred, etc.
Rebalancing discipline10Drift < 5pp
Simplicity / behavioral robustness10Few holdings, easy to maintain

Grade: 90+ A | 75-89 B | 60-74 C | 45-59 D | <45 F

Output Format — FINANCE-PORTFOLIO.md

markdown
# Portfolio Analysis Report
**Prepared:** [Date]
**Total Portfolio Value:** $[X]
**Portfolio Score:** [X]/100 — Grade [A-F]
**Weighted Expense Ratio:** [X]%
**Estimated Annual Cost:** $[X]

## Snapshot
[2-3 sentence verdict and the single most impactful change.]

## Current vs Target Allocation
[Table with drift column]

## Top Findings
1. [Finding] — Impact: [$/yr or risk]
2. ...
5. ...

## Recommended Trades
### In your [Account Name]
- Sell $X of [TICKER] (ER X%)
- Buy $X of [TICKER] (ER Y%)
- Reason: [reduce cost / fix allocation / improve tax efficiency]

[Repeat per account. Prefer tax-advantaged accounts for trades.]

## Asset Location Plan
[Map of which asset goes in which account type]

## Rebalancing Rules Going Forward
- Threshold: Rebalance if any class drifts > 5pp
- Cadence: Annual review in [month]
- Method: [new contributions / sell winners / TLH]

## Three-Fund Portfolio Option (if interested)
Simplest version of your target:
- VTI/VTSAX — XX%
- VXUS/VTIAX — XX%
- BND/VBTLX — XX%

## Risks & Things to Watch
- [Concentration risks, sequence risk, factor risk, etc.]

## What This Plan Does NOT Address
- Individual stock picking
- Market timing
- Tax filing (see /finance taxes)

---
**DISCLAIMER:** For educational/informational purposes only. Not financial advice. Consult a licensed financial advisor before making decisions. Past performance does not guarantee future results. Expected returns are estimates and actual returns will vary.

Quality Standards

  • Every trade recommendation includes ticker, account, dollar amount, and reason
  • Cost-saving recommendations show annual + 10-year $ savings
  • Always show drift in percentage points, not just current %
  • Flag the single highest-leverage change at the top
  • Never recommend timing the market or picking individual stocks
  • Always close with the disclaimer block

常见问题

Finance Portfolio AI 技能有什么作用?

Investment portfolio analyzer. Audits current allocation vs target, asset class diversification (stocks, bonds, real estate, alternatives), expense ratios, tax efficiency, rebalancing needs, factor tilts (value, momentum, quality), three-fund portfolio fit, target-date fund analysis, and Boglehead-style optimization. Produces FINANCE-PORTFOLIO.md with a portfolio score, specific rebalancing trades, and fund swap recommendations.

为什么在 TypingMind 中使用 Finance Portfolio?

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

如何在 TypingMind 中安装 Finance Portfolio?

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

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

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

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

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

Finance Portfolio AI 技能免费吗?

zubair-trabzada 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

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

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

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

查看全部

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

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