Logotipo de Finance Portfolio

Finance Portfolio

Comunidad
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

Descripción general

Editorzubair-trabzada
Repositorioai-finance-claude
Nombre de la habilidadfinance-portfolio
Estrellas
84
Forks
20
Archivos incluidos
Solo instrucciones
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por zubair-trabzada en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Finance Portfolio en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/zubair-trabzada/ai-finance-claude/tree/main/skills/finance-portfolio
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Finance Portfolio en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Finance Portfolio automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Finance Portfolio no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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

Preguntas frecuentes

¿Qué hace la habilidad de IA 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.

¿Por qué usar Finance Portfolio en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Finance Portfolio está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Finance Portfolio en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/zubair-trabzada/ai-finance-claude/tree/main/skills/finance-portfolio. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Finance Portfolio?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Finance Portfolio?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Finance Portfolio con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Finance Portfolio?

zubair-trabzada la ha publicado en GitHub. Consulta el repositorio para conocer las condiciones de la licencia. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇