Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
zubair-trabzada avatar

Finance Portfolio

  • 3 installs
  • 47 repo stars
  • Updated May 12, 2026
  • zubair-trabzada/ai-finance-claude

Audits an investment portfolio for allocation vs target, diversification, expense ratios, tax efficiency, and rebalancing, producing a score and specific trades.

About

A portfolio analyzer that audits current holdings against a target allocation, checking diversification, costs, tax placement, and drift, then outputs a portfolio score with specific rebalancing trades and fund swaps. A user uses it to evaluate and improve how their investments are built.

  • Boglehead/three-fund analysis with expense ratio and tax-efficiency review
  • Produces FINANCE-PORTFOLIO.md with score and specific rebalancing trades

Finance Portfolio by the numbers

  • 3 all-time installs (skills.sh)
  • Ranked #847 of 1,106 Finance & Trading skills by installs in the Skillselion catalog
  • Data as of Jul 31, 2026 (Skillselion catalog sync)
npx skills add https://github.com/zubair-trabzada/ai-finance-claude --skill finance-portfolio

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs3
repo stars47
Last updatedMay 12, 2026
Repositoryzubair-trabzada/ai-finance-claude

What it does

Audits an investment portfolio for allocation vs target, diversification, expense ratios, tax efficiency, and rebalancing, producing a score and specific trades.

Files

SKILL.mdMarkdownGitHub ↗

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

# 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

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.