
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.
- Installs
- 713
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/joellewis/finance_skills --skill emergency-fund- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads emergency-fund automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
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
| Vehicle | Yield | Liquidity | FDIC/SIPC | Best For |
|---|---|---|---|---|
| Checking account | Very low | Instant | FDIC | Tier 1 (1 month) |
| HYSA | Moderate | 1-2 days | FDIC | Tier 2 (core fund) |
| Money market fund | Moderate | 1-2 days | SIPC | Tier 2 (core fund) |
| T-bills (4-week) | Moderate-high | At maturity | Full faith & credit | Tier 2/3 (ladder) |
| CD (3-12 month) | Moderate-high | At maturity (penalty) | FDIC | Tier 3 (ladder) |
| I-bonds | Inflation-linked | After 12 months | Full faith & credit | Tier 3 (long-term) |
| Short-term bond fund | Variable | 1-3 days | SIPC | Tier 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
| Formula | Expression | Use Case |
|---|---|---|
| Expense-based fund | Monthly essentials × months of coverage | Core sizing calculation |
| Income-based fund | After-tax monthly income × months of coverage | Upper bound estimate |
| Opportunity cost | Fund balance × (investment return - cash return) | Cost of holding cash |
| Replenishment timeline | Fund shortfall / monthly replenishment amount | Months to rebuild |
| Variable income buffer | Avg monthly income - base budget | Surplus 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:
- Dual income, stable employment: 3 months is the baseline; 4 months provides a comfortable margin.
- Emergency fund = $4,500 × 3 = $13,500 (minimum) to $4,500 × 4 = $18,000 (recommended).
- Considerations: If either spouse works in a cyclical industry or has less job security, increase to 6 months ($27,000).
- If one spouse could cover essentials alone: May reduce to 3 months since the risk of zero income is lower.
- 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:
- 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.
- 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.
- 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.
- Blended yield: (4,500 × 0.01% + 13,500 × 4.5% + 9,000 × 4.8%) / 27,000 ≈ 3.85% weighted average.
- 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
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.
FAQ
What does the emergency-fund skill do?
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.
How do I install emergency-fund?
Run npx skills add https://github.com/joellewis/finance_skills --skill emergency-fund in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/emergency-fund/ (personal) or .claude/skills/emergency-fund/ (project).
Which AI agents can use emergency-fund?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is emergency-fund safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains emergency-fund?
It is published by joellewis in joellewis/finance_skills. It has 713 recorded installs.
More from joellewis/finance_skills
asset-allocation
joellewis/finance_skills
Determine how to distribute capital across asset classes using strategic and tactical allocation frameworks. Use when the user asks about portfolio allocation, mean-variance optimization, Black-Litterman, risk parity, glide paths, or target-date strategies. Also trigger when users mention 'how much in stocks vs bonds', '60/40 portfolio', 'policy portfolio', 'core-satellite', 'liability-driven investing', 'asset-liability matching', or ask how to split their money across investments.
statistics-fundamentals
joellewis/finance_skills
Apply statistical methods to financial data including descriptive statistics, covariance estimation, regression, hypothesis testing, and resampling. Use when the user asks about return distributions, correlation between assets, building a covariance matrix, running a CAPM regression, testing whether alpha is significant, checking if returns are normal, or estimating confidence intervals. Also trigger when users mention 'volatility', 'how correlated are these', 'fat tails', 'skewness', 'R-squared', 'beta of a fund', 'bootstrap a Sharpe ratio', 'shrinkage estimator', 'Ledoit-Wolf', or ask why their optimizer produces unstable weights.
quantitative-valuation
joellewis/finance_skills
Estimate intrinsic value of stocks and companies using DCF, dividend discount models, comparable multiples, and residual income. Use when the user asks about discounted cash flow, DCF models, WACC, terminal value, dividend discount models, comparable multiples, or sum-of-the-parts valuation. Also trigger when users mention 'what is this stock worth', 'fair value estimate', 'Gordon growth model', 'free cash flow valuation', 'cost of equity', 'sensitivity analysis', 'exit multiple', or ask whether a stock is overvalued or undervalued.
finance-psychology
joellewis/finance_skills
Recognize and mitigate cognitive biases that impair financial decisions, and coach clients toward values-driven financial lives. Use when the user asks about behavioral finance, money psychology, loss aversion, overconfidence, herd behavior, or emotional investing. Also trigger when users mention 'why do I panic sell', 'money fights with my spouse', 'I can never save enough', 'fear of investing', 'lifestyle creep', 'keeping up with the Joneses', 'Rich Life', 'money scripts', or ask how emotions affect financial decisions.
commodities
joellewis/finance_skills
Analyze commodity markets including futures curve dynamics, roll yield, and supply/demand fundamentals. Use when the user asks about commodity investing, commodity ETFs, contango, backwardation, roll yield, commodity indices (GSCI, BCOM), or commodities as an inflation hedge. Also trigger when users mention 'oil prices', 'gold as a safe haven', 'agricultural futures', 'convenience yield', 'storage costs', 'natural gas', 'copper demand', or ask why commodity ETF returns differ from spot price changes.
investment-policy
joellewis/finance_skills
Construct comprehensive Investment Policy Statements governing return objectives, risk tolerance, and portfolio constraints. Use when the user asks about building an IPS, setting return objectives, assessing risk tolerance, defining investment constraints, or establishing rebalancing and benchmark policies. Also trigger when users mention 'investment plan', 'policy portfolio', 'risk capacity vs willingness', 'spending rate for an endowment', 'foundation payout', 'manager selection criteria', or ask how to document their investment strategy.
Popular business & finance skills
sales-enablement
coreyhaines31/marketingskills
When the user wants to create sales collateral, pitch decks, one-pagers, objection handling docs, or demo scripts. Also use when the user mentions 'sales deck,' 'pitch deck,' 'one-pager,' 'leave-behind,' 'objection handling,' 'deal-specific ROI analysis,' 'demo script,' 'talk track,' 'sales playbook,' 'proposal template,' 'buyer persona card,' 'battle card,' 'battlecard,' 'competitive one-pager,' 'win-loss analysis,' 'why are we losing deals,' 'loss reasons,' 'how do I respond to this objection,' 'prospect just said,' 'help my sales team,' 'sales materials,' or 'what should I give my sales reps,' 'cold call script,' or 'voicemail script.' Use this for any document or asset that helps a sales team close deals. For public competitor comparison pages, see competitors. For running buyer interviews or churn research, see customer-research. For marketing website copy, see copywriting. For cold outreach emails, see cold-email. For the offer being sold (bonuses, guarantees, pricing structure),
revops
coreyhaines31/marketingskills
When the user wants help with revenue operations, lead lifecycle management, or marketing-to-sales handoff processes. Also use when the user mentions 'RevOps,' 'revenue operations,' 'lead scoring,' 'outbound pipeline stages,' 'lead routing,' 'MQL,' 'SQL,' 'pipeline stages,' 'deal desk,' 'CRM automation,' 'marketing-to-sales handoff,' 'data hygiene,' 'leads aren't getting to sales,' 'pipeline management,' 'lead qualification,' or 'when should marketing hand off to sales.' Use this for anything involving the systems and processes that connect marketing to revenue. For cold outreach emails, see cold-email. For email drip campaigns, see emails. For pricing decisions, see pricing.
sales-funnel-blueprint
autonnel/autonnel-skills
Turn an offer into a concrete multi-step sales funnel spec - page-by-page structure, price ladder, copy outline and the metrics each step must hit. Use when asked to build a sales funnel, marketing funnel, landing page flow, lead magnet funnel, webinar funnel, tripwire or VSL funnel, when planning a product launch page flow, or when someone asks "what pages do I need" for selling something online.
pricing
coreyhaines31/marketingskills
When the user wants help with pricing decisions, packaging, or monetization strategy. Also use when the user mentions 'pricing,' 'pricing tiers,' 'freemium,' 'free trial,' 'packaging,' 'price increase,' 'value metric,' 'Van Westendorp,' 'willingness to pay,' 'monetization,' 'how much should I charge,' 'my pricing is wrong,' 'pricing page,' 'annual vs monthly,' 'per seat pricing,' 'should I offer a free plan,' 'pricing page teardown,' 'pricing page audit,' 'is my pricing page AI-readable,' or 'can AI read my pricing.' Use this whenever someone is figuring out what to charge, how to structure their plans, or wants to audit a pricing page (for humans and for the AI agents that shortlist tools). For in-app upgrade screens, see paywalls. For offer construction (bonuses, guarantees, value framing, naming) on services/courses/coaching/high-ticket B2B, see offers.
cross-border-ecommerce
nexscope-ai/ecommerce-skills
Cross-border e-commerce expansion advisor. Scores target markets on 8 weighted dimensions (market size, ecommerce penetration, competition, regulatory complexity, logistics infrastructure, payment ecosystem, cultural distance, IP protection), compares 5 fulfillment models with cost and transit data, provides country-by-country tax/duty compliance guides (EU VAT/IOSS, UK VAT, US sales tax, CA GST, AU GST, JP consumption tax), maps local payment preferences by market, and builds a phased expansion roadmap. No API key required.
pricing-strategy
coreyhaines31/marketingskills
When the user wants help with pricing decisions, packaging, or monetization strategy. Also use when the user mentions 'pricing,' 'pricing tiers,' 'freemium,' 'free trial,' 'packaging,' 'price increase,' 'value metric,' 'Van Westendorp,' 'willingness to pay,' 'monetization,' 'how much should I charge,' 'my pricing is wrong,' 'pricing page,' 'annual vs monthly,' 'per seat pricing,' or 'should I offer a free plan.' Use this whenever someone is figuring out what to charge or how to structure their plans. For in-app upgrade screens, see paywall-upgrade-cro.