Logo di Tax Efficiency

Tax Efficiency

Community
JoelLewis
tax-efficiency

Massimizza i rendimenti al netto delle imposte con una pianificazione strategica dell’asset location, la gestione di plusvalenze e minusvalenze e la sequenza dei prelievi. Usalo quando l’utente chiede di asset location, conversioni Roth, prelievi fiscalmente efficienti, selezione dei lotti fiscali o donazioni di titoli che hanno registrato un apprezzamento. Attivalo anche quando l’utente menziona «in quale conto dovrei tenere le obbligazioni», «erosione fiscale dei rendimenti», «Roth o Traditional», «pianificazione degli RMD», «sfruttamento delle fasce fiscali», «HIFO o FIFO» o chiede come ridurre al minimo le imposte sugli investimenti. Per l’esecuzione della raccolta delle minusvalenze fiscali e le regole sulle vendite fittizie, vedi la skill tax-loss-harvesting.

Add to TypingMind

Panoramica

Pubblicato daJoelLewis
Repositoryfinance_skills
Nome della skilltax-efficiency
Stelle
217
Fork
37
File inclusi
1
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 1

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da JoelLewis su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Tax Efficiency in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/JoelLewis/finance_skills/tree/main/plugins/wealth-management/skills/tax-efficiency
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/JoelLewis/finance_skills.git /tmp/finance_skills
mkdir -p .claude/skills
cp -r /tmp/finance_skills/plugins/wealth-management/skills/tax-efficiency .claude/skills/tax-efficiency
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Tax Efficiency in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Tax Efficiency non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Tax Efficiency non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Tax-Efficient Investing

Core Concepts

Asset Location

Place tax-inefficient assets in tax-advantaged accounts and tax-efficient assets in taxable accounts:

  • Tax-deferred accounts (Traditional IRA, 401k): Bonds, REITs, high-turnover funds, TIPS — assets generating ordinary income
  • Tax-exempt accounts (Roth IRA, Roth 401k): Highest expected growth assets — all growth is permanently tax-free
  • Taxable accounts: Index equity funds (low turnover, qualified dividends, tax-loss harvesting eligible), municipal bonds, tax-managed funds

The benefit of asset location increases with the spread between ordinary income tax rates and capital gains rates, and with the size of the tax-advantaged accounts relative to total portfolio.

Tax-Loss Harvesting (TLH)

Realize investment losses to offset capital gains, reducing current tax liability while maintaining market exposure:

  • Sell a losing position, immediately buy a similar (but not "substantially identical") replacement
  • Harvested losses offset gains dollar-for-dollar; net losses offset up to $3,000 of ordinary income per year; excess carries forward indefinitely
  • Wash-sale rule (61-day window): Cannot repurchase the same or substantially identical security within the 61-day window (30 days before + sale date + 30 days after) — applies across all accounts (including spouse's accounts and IRAs)
  • Tax alpha from TLH: Estimated 0.5-1.5% per year in early years of a portfolio's life, declining as cost basis rises
  • Best opportunities arise during market volatility and in the first few years of investing

After-Tax Return

Different income types face different tax rates:

  • Interest income: Taxed at ordinary income rates
  • Qualified dividends: Taxed at long-term capital gains rates (0%, 15%, or 20% + 3.8% NIIT)
  • Short-term capital gains (held ≤ 1 year): Ordinary income rates
  • Long-term capital gains (held > 1 year): Preferential rates (0%, 15%, or 20% + 3.8% NIIT)
  • The 3.8% NIIT applies above $250,000 MAGI (MFJ) — a statutory threshold that is not inflation-indexed
  • After-tax return on income: R_at = R × (1 - t)
  • Capital gains are taxed only at realization, providing a deferral benefit

Tax Drag

The annual cost of taxes on investment returns:

  • Tax drag = pre-tax return - after-tax return
  • High-turnover funds generate more short-term gains → higher tax drag
  • Index funds with low turnover minimize tax drag
  • ETFs generally more tax-efficient than mutual funds (in-kind creation/redemption process)

Tax Lot Management

When selling partial positions, the method of selecting which lots to sell affects tax liability:

  • Specific identification: Choose exactly which lots to sell
  • HIFO (Highest In, First Out): Sell highest-cost-basis lots first to minimize gains
  • FIFO (First In, First Out): Default method; may realize larger gains on older lots
  • Tax-optimal: Select lots to minimize current-year tax liability considering holding period and gains/losses

Roth Conversion

Convert Traditional IRA/401k assets to Roth, paying ordinary income tax now for tax-free growth and withdrawals later:

  • Breakeven analysis: Conversion is beneficial if current marginal tax rate < expected future marginal tax rate
  • Factors favoring conversion: Long time horizon, low current income year, expectation of higher future rates, desire to reduce future RMDs, estate planning benefits
  • Partial conversions: Convert just enough to fill current tax bracket ("bracket stuffing")
  • Tax on conversion: conversion amount × current marginal rate

Required Minimum Distributions (RMDs)

Mandatory annual withdrawals from tax-deferred accounts (Traditional IRA, 401k) beginning at age 73 (under SECURE 2.0, rising to 75 in 2033):

  • RMD = account balance (Dec 31 prior year) / distribution period (from IRS Uniform Lifetime Table)
  • Failure penalty: 25% excise tax on shortfall (reduced from prior 50%)
  • RMDs are taxed as ordinary income and can push retirees into higher brackets
  • Roth IRAs have no RMDs during the owner's lifetime

Withdrawal Sequencing

The order of withdrawals from different account types in retirement:

  • General rule: Taxable → Tax-deferred → Roth (preserves tax-free growth longest)
  • Optimized approach: Withdraw from taxable first, then fill low tax brackets with tax-deferred withdrawals, use Roth to avoid bracket jumps
  • Dynamic strategy: Adjust each year based on income, deductions, and bracket thresholds

Charitable Giving Strategies

  • Donate appreciated stock: Avoid capital gains tax and deduct full fair market value (must be held > 1 year)
  • Qualified Charitable Distributions (QCDs): Donate up to $111,000/year (2026 limit, indexed annually) directly from IRA to charity (counts toward RMD, excluded from taxable income); available at age 70½+
  • Donor-Advised Funds (DAFs): Bunch multiple years of donations for itemized deduction, invest tax-free, distribute to charities over time

Key Formulas

FormulaExpressionUse Case
After-tax return (income)R_at = R × (1 - t)Bond/interest income after tax
After-tax return (deferred gains)R_at = ((1 + R)^n × (1 - t_cg) + t_cg)^(1/n) - 1Unrealized equity with deferral benefit
Tax-loss harvesting valueTLH_value = loss × marginal_tax_rateImmediate tax benefit of harvesting
Roth conversion breakevent_now < t_futureConvert when current rate < future rate
RMD amountRMD = balance_Dec31 / distribution_periodRequired minimum distribution
Appreciated-stock donation benefitTax saved = FMV × t_income + gain × t_cg_avoidedTax benefit of donating appreciated stock (deduction + avoided gains tax)

Worked Examples

Example 1: Asset location optimization

Given: $500K in taxable brokerage + $500K in Traditional IRA. Portfolio target: 50% bonds (yielding 5%) and 50% equities (expected 10% total return, 2% qualified dividends). Marginal tax rate: 32% ordinary, 15% LTCG. Calculate: Optimal asset placement and annual tax savings vs naive allocation. Solution:

  1. Optimal placement: Bonds ($500K) in IRA; Equities ($500K) in taxable.
  2. Naive placement (50/50 each): Taxable has $250K bonds + $250K equities; IRA has $250K bonds + $250K equities.
  3. Tax drag — naive: Taxable bonds: $250K × 5% × 32% = $4,000. Taxable equity dividends: $250K × 2% × 15% = $750. Total tax = $4,750.
  4. Tax drag — optimal: Taxable equity dividends only: $500K × 2% × 15% = $1,500. Total tax = $1,500.
  5. Annual tax savings: $4,750 - $1,500 = $3,250/year (0.325% of total portfolio).
  6. Over 20 years compounded, this adds significantly to after-tax wealth.

Example 2: Roth conversion breakeven

Given: Consider converting $50,000 from Traditional IRA to Roth. Current marginal tax rate: 24%. Tax on conversion paid from outside funds. Investment horizon: 20 years. Expected return: 7%. Simplifying assumption: Assume the $12,000, if not used for conversion tax, would grow at the same 7% with no tax drag — i.e., side-fund growth itself is untaxed. Calculate: Future marginal tax rate at which conversion breaks even. Solution:

  1. Cost of conversion now: $50,000 × 24% = $12,000 tax paid today.
  2. Traditional IRA path: $50,000 grows to $50,000 × (1.07)^20 = $193,484. After-tax at withdrawal: $193,484 × (1 - t_future).
  3. Roth path: $50,000 grows to $193,484 tax-free, but the $12,000 side fund forgoes growth to $12,000 × (1.07)^20 = $46,436. Roth net value: $193,484 - $46,436 = $147,048.
  4. Breakeven: Set Traditional after-tax = Roth net value. $193,484 × (1 - t_future) = $193,484 - $46,436 → t_future = $46,436 / $193,484 = 24.0%.
  5. Conclusion: Under this simplification the breakeven future rate equals the current rate (24%) — both sides scale by the same (1.07)^20, so the horizon and return cancel. In reality the taxable side fund suffers tax drag on its dividends and realized gains, so paying conversion tax from outside funds tilts the comparison toward Roth even when the future rate merely equals the current rate.

Common Pitfalls

  • TLH wash sale violations, including purchases in other accounts, IRAs, or a spouse's account within the 61-day wash-sale window (30 days before through 30 days after the sale)
  • Over-harvesting losses that defer gains to higher tax brackets later (basis step-down compounds)
  • Not considering state taxes in asset location decisions — state tax treatment varies significantly
  • Ignoring the tax benefit of donating appreciated securities vs cash (avoids capital gains and gets full deduction)
  • RMD-driven forced selling at inopportune times — plan withdrawals ahead of deadlines
  • Roth converting too aggressively and pushing into a higher bracket in the conversion year
  • Forgetting the 3.8% Net Investment Income Tax (NIIT) above $250,000 MAGI (MFJ) — a statutory threshold that is not inflation-indexed, so it captures more taxpayers each year
  • Not coordinating tax strategy across spouses' accounts

Cross-References

  • investment-policy (wealth-management plugin): Tax constraint in IPS governs asset location and turnover management
  • performance-attribution (wealth-management plugin): After-tax return attribution requires tax-aware calculations
  • debt-management (wealth-management plugin): Mortgage interest deductibility interacts with tax planning
  • savings-goals (wealth-management plugin): Account type selection (Roth vs Traditional) is a core tax decision
  • liquidity-management (wealth-management plugin): Tax implications of accessing different account types affect liquidity planning
  • tax-loss-harvesting (wealth-management plugin): dedicated TLH workflow skill with detailed candidate identification, wash-sale tracking, and execution planning
  • financial-planning-workflow (advisory-practice plugin): tax-aware strategies are core recommendations in comprehensive financial plans
  • financial-statements (wealth-management plugin): cost basis and embedded capital gains fundamentals behind lot selection and deferral decisions
  • insurance-planning (wealth-management plugin): premium-payer decisions drive taxation of disability benefits, annuity income, and life insurance proceeds
  • estate-gifting (wealth-management plugin): owns the transfer-tax side — lifetime exemption, annual exclusion gifting, basis step-up vs carryover, and estate-level charitable structure choice
  • retirement-decumulation (wealth-management plugin): applies withdrawal sequencing and RMD mechanics to retirement spending plans — guardrails, gap-year bracket-filling, and Social Security timing
  • equity-compensation (wealth-management plugin): RSU/option taxation, AMT on ISO exercises, and charitable use of appreciated employer stock extend tax planning to compensation events

Running the script

Run with uv run scripts/tax_efficiency.py (the PEP 723 header resolves dependencies automatically) or with python3 scripts/tax_efficiency.py after pip install numpy scipy. The bare run prints a demo covering after-tax returns, tax drag, TLH benefit, asset location placement, and Roth conversion breakeven. Pass --verify to assert the demo outputs match this skill's worked examples (prints PASS/FAIL), or --help for an overview of the available classes. The file is primarily meant to be imported as a module (e.g., from tax_efficiency import AfterTaxReturn, AssetLocation, BreakevenAnalysis).

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Tax Efficiency?

Massimizza i rendimenti al netto delle imposte con una pianificazione strategica dell’asset location, la gestione di plusvalenze e minusvalenze e la sequenza dei prelievi. Usalo quando l’utente chiede di asset location, conversioni Roth, prelievi fiscalmente efficienti, selezione dei lotti fiscali o donazioni di titoli che hanno registrato un apprezzamento. Attivalo anche quando l’utente menziona «in quale conto dovrei tenere le obbligazioni», «erosione fiscale dei rendimenti», «Roth o Traditional», «pianificazione degli RMD», «sfruttamento delle fasce fiscali», «HIFO o FIFO» o chiede come...

Perché usare Tax Efficiency su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Tax Efficiency è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Tax Efficiency in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/JoelLewis/finance_skills/tree/main/plugins/wealth-management/skills/tax-efficiency. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Tax Efficiency?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Tax Efficiency?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Tax Efficiency: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Tax Efficiency è gratuita?

Sì. È pubblicata su GitHub da JoelLewis con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇