Logo de Emergency Fund

Emergency Fund

Comunidade
JoelLewis
emergency-fund

Size and structure an emergency fund based on individual circumstances, income stability, and expense profile. Use when the user asks about emergency fund sizing, how many months of expenses to save, where to keep emergency savings, or tiered fund structures. Also trigger when users mention 'rainy day fund', 'how much cash should I keep', 'high-yield savings account', 'money market fund', 'freelancer cash reserve', 'variable income buffer', or ask what counts as an emergency expense.

Visão geral

Publicado porJoelLewis
Repositóriofinance_skills
Nome da habilidadeemergency-fund
Estrelas
217
Forks
37
Arquivos incluídos
1
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 1

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por JoelLewis no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Emergency Fund no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/JoelLewis/finance_skills/tree/main/plugins/wealth-management/skills/emergency-fund
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse 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/emergency-fund .claude/skills/emergency-fund
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Emergency Fund em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Emergency Fund automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Emergency Fund não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Emergency Fund Planning

Core Concepts

Rule of Thumb

  • Employed with stable income: 3-6 months of essential expenses
  • Dual-income household (both stable): 3 months may suffice (lower probability of simultaneous job loss)
  • Single income, variable income, or self-employed: 6-12 months of essential expenses
  • High job-search risk (niche industry, senior executive, specialized role): 6-12 months
  • These are guidelines — individual assessment is essential

Essential Expenses

The emergency fund should cover non-discretionary spending only:

  • Housing: Mortgage/rent, property tax, insurance, HOA
  • Food: Groceries (not dining out)
  • Insurance: Health, auto, life (premiums that cannot be paused)
  • Utilities: Electric, gas, water, internet, phone
  • Transportation: Car payment, gas, basic maintenance, public transit
  • Minimum debt payments: Credit cards, student loans, other obligations
  • Healthcare: Regular medications, co-pays
  • Exclude: Dining out, entertainment, travel, shopping, subscriptions that can be cancelled

Expense-Based Sizing

Monthly essential expenses multiplied by the desired months of coverage:

  • Emergency fund = monthly essential expenses × months of coverage
  • Example: $4,500/month essentials × 6 months = $27,000
  • More precise than income-based because it reflects actual spending needs during a crisis

Income Replacement Approach

After-tax monthly income multiplied by months of coverage:

  • Emergency fund = after-tax monthly income × months of coverage
  • Simpler to calculate but may overstate need (assumes maintaining full spending during emergency)
  • Useful as an upper bound or for high earners whose expenses scale with income

Variable Income Adjustment

For commission-based, freelance, seasonal, or gig workers:

  • Calculate average monthly income over 12-24 months
  • Set base budget at the lowest 3-month average income level
  • Buffer = average income - base budget (accumulated during high-earning months)
  • Emergency fund should be 6-12 months of essential expenses (longer because income disruption is more likely and less predictable)
  • Maintain a separate "income smoothing" buffer beyond the emergency fund

Tiered Emergency Fund

Structure the fund across tiers for optimal balance of access and yield:

  • Tier 1 — Immediate access (1 month): Checking or savings account at primary bank. Instantly accessible for urgent needs. Low or no yield, but maximum liquidity.
  • Tier 2 — Short-term (2-3 months): High-yield savings account (HYSA) or money market fund. Available in 1-2 business days. Earns competitive short-term rates.
  • Tier 3 — Extended (3-6 months): Short-term Treasury bills, I-bonds (after 1-year lock-up), short-term bond fund, or CD ladder. May take a few days to a few weeks to access. Higher yield compensates for slightly lower liquidity.

Vehicle Selection

VehicleYieldLiquidityFDIC/SIPCBest For
Checking accountVery lowInstantFDICTier 1 (1 month)
HYSAModerate1-2 daysFDICTier 2 (core fund)
Money market fundModerate1-2 daysSIPCTier 2 (core fund)
T-bills (4-week)Moderate-highAt maturityFull faith & creditTier 2/3 (ladder)
CD (3-12 month)Moderate-highAt maturity (penalty)FDICTier 3 (ladder)
I-bondsInflation-linkedAfter 12 monthsFull faith & creditTier 3 (long-term)
Short-term bond fundVariable1-3 daysSIPCTier 3 (flexible)

Opportunity Cost

Holding cash has a real cost — the difference between what the cash earns and what it could earn if invested:

  • Cash drag: Emergency fund earning 4% HYSA vs 8-10% equity expected return = 4-6% annual opportunity cost
  • On a $30K emergency fund: $1,200-$1,800/year in foregone returns
  • Mitigant: The purpose of the fund is insurance, not investment return. The "premium" is the opportunity cost.
  • Over-funded risk: Holding 12+ months when 3-6 months suffices wastes significant capital
  • Under-funded risk: Having to use credit cards at 20%+ APR or sell investments at a loss during an emergency

When to Tap the Emergency Fund

Appropriate uses:

  • Job loss or significant income reduction
  • Medical emergency or unexpected healthcare costs
  • Essential home repair (roof leak, HVAC failure, plumbing emergency)
  • Essential car repair (needed for commuting to work)
  • Unexpected essential travel (family emergency)

NOT appropriate uses:

  • Vacations or planned travel
  • Planned purchases (holiday gifts, electronics)
  • Investment opportunities ("buy the dip")
  • Non-essential home improvements
  • Expenses that should have been budgeted (annual insurance, property tax)

Replenishment Plan

After using the emergency fund:

  • Prioritize rebuilding before resuming discretionary spending or non-essential savings goals
  • Set a monthly replenishment target (e.g., rebuild within 6-12 months)
  • Temporarily reduce or pause contributions to other goals if needed
  • Redirect windfalls (tax refund, bonus) to accelerate replenishment

Key Formulas

FormulaExpressionUse Case
Expense-based fundMonthly essentials × months of coverageCore sizing calculation
Income-based fundAfter-tax monthly income × months of coverageUpper bound estimate
Opportunity costFund balance × (investment return - cash return)Cost of holding cash
Replenishment timelineFund shortfall / monthly replenishment amountMonths to rebuild
Variable income bufferAvg monthly income - base budgetSurplus for smoothing

Worked Examples

Example 1: Emergency fund sizing for a dual-income household

Given: Married couple, both employed in stable jobs. Monthly essential expenses: $4,500 (housing $1,800, food $600, insurance $400, utilities $300, transportation $500, debt minimums $400, healthcare $200, other essentials $300). Calculate: Recommended emergency fund size. Solution:

  1. Dual income, stable employment: 3 months is the baseline; 4 months provides a comfortable margin.
  2. Emergency fund = $4,500 × 3 = $13,500 (minimum) to $4,500 × 4 = $18,000 (recommended).
  3. Considerations: If either spouse works in a cyclical industry or has less job security, increase to 6 months ($27,000).
  4. If one spouse could cover essentials alone: May reduce to 3 months since the risk of zero income is lower.
  5. Recommendation: $13,500-$18,000 for this stable dual-income household.

Example 2: Tiered fund allocation

Given: Target emergency fund of $27,000 (6 months × $4,500/month) for a single-income household. Calculate: Optimal tiered allocation. Solution:

  1. Tier 1 — Checking account: $4,500 (1 month). Immediate access for sudden expenses (car repair, medical co-pay). Earning ~0.01% but provides instant liquidity.
  2. Tier 2 — High-yield savings account: $13,500 (3 months). Core emergency reserves. Earning ~4.5% APY (illustrative, in the ~4-5% range seen as of 2026 — check current HYSA rates). Available in 1-2 business days via transfer.
  3. Tier 3 — T-bill ladder: $9,000 (2 months). Three $3,000 T-bills maturing at 4-week, 8-week, and 13-week intervals. Earning ~4.8% (illustrative, in the ~4-5% range seen as of 2026 — check current T-bill rates). At least one tranche matures every ~4 weeks.
  4. Blended yield: (4,500 × 0.01% + 13,500 × 4.5% + 9,000 × 4.8%) / 27,000 ≈ 3.85% weighted average.
  5. vs all checking (0.01%): Earning ~$1,040/year more with the tiered approach — effectively free money for modest complexity.

Common Pitfalls

  • Too little: financial stress during emergencies, forced to use high-interest debt (credit cards at 20%+), potential to sell investments at a loss
  • Too much: significant opportunity cost from excess cash eroded by inflation; common among risk-averse savers
  • Not adjusting for life changes — new baby (higher expenses), job change (less stability), mortgage (larger fixed obligation), spouse stops working
  • Keeping the emergency fund in investments that can lose value — stocks, long-term bonds, or crypto are not appropriate vehicles
  • Using the emergency fund for non-emergencies — erodes the safety net and creates a cycle of depletion
  • Not having a replenishment plan — spending the fund without a strategy to rebuild leaves ongoing vulnerability
  • Ignoring inflation: a $20K fund in 2020 has less purchasing power in 2030; periodically reassess the target
  • Treating the emergency fund as an investment account rather than an insurance policy

Cross-References

  • liquidity-management (wealth-management plugin): emergency fund is the foundation of the personal liquidity tier structure
  • savings-goals (wealth-management plugin): emergency fund is typically the highest priority savings goal
  • debt-management (wealth-management plugin): adequate emergency fund prevents taking on new high-interest debt during crises
  • lending (wealth-management plugin): emergency reserves are a factor in mortgage qualification
  • investment-policy (wealth-management plugin): emergency fund size feeds the liquidity constraint in an IPS
  • financial-planning-workflow (advisory-practice plugin): emergency fund adequacy is assessed early in the comprehensive financial planning process
  • insurance-planning (wealth-management plugin): emergency fund size supports higher deductibles and longer disability elimination periods in the risk retention decision
  • retirement-decumulation (wealth-management plugin): the cash-reserve discipline extends into retirement as bucket one of a bucket withdrawal strategy

Running the Script

bash
uv run scripts/emergency_fund.py            # run the demo (uses PEP 723 inline deps)
uv run scripts/emergency_fund.py --verify   # check demo outputs against the worked examples (exit 1 on mismatch)
python3 scripts/emergency_fund.py            # alternative (requires: pip install numpy)

The demo prints the calculations covered above; its values match the worked examples in this skill. Run --help for a list of the classes and functions. For programmatic use, import the module rather than running it — the demo only executes under python emergency_fund.py.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Emergency Fund faz?

Size and structure an emergency fund based on individual circumstances, income stability, and expense profile. Use when the user asks about emergency fund sizing, how many months of expenses to save, where to keep emergency savings, or tiered fund structures. Also trigger when users mention 'rainy day fund', 'how much cash should I keep', 'high-yield savings account', 'money market fund', 'freelancer cash reserve', 'variable income buffer', or ask what counts as an emergency expense.

Por que usar Emergency Fund no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Emergency Fund é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Emergency Fund no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/JoelLewis/finance_skills/tree/main/plugins/wealth-management/skills/emergency-fund. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Emergency Fund?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Emergency Fund?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Emergency Fund com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Emergency Fund é gratuita?

Sim. A habilidade é publicada no GitHub por JoelLewis sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇