Finance Portfolio logo

Finance Portfolio

Community
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.

Overview

Publisherzubair-trabzada
Repositoryai-finance-claude
Skill namefinance-portfolio
Stars
84
Forks
20
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by zubair-trabzada on GitHub. Read the source before you install it.

Installation

Install the Finance Portfolio AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/zubair-trabzada/ai-finance-claude/tree/main/skills/finance-portfolio
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Finance Portfolio in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Finance Portfolio on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Finance Portfolio is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Frequently asked questions

What does the Finance Portfolio AI skill do?

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.

Why use Finance Portfolio on TypingMind?

Because you install it once and use it with any model. Finance Portfolio is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Finance Portfolio in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zubair-trabzada/ai-finance-claude/tree/main/skills/finance-portfolio. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Finance Portfolio?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Finance Portfolio?

As many as you like. As long as a model supports skills, you can use Finance Portfolio with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Finance Portfolio AI skill free?

It is published on GitHub by zubair-trabzada. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇