К основному содержанию
скилл CX Codex

savings-goals — скилл для Claude Code: цели накоплений

Считает темп накоплений для пенсии, учёбы и покупки жилья. Помогает расставить приоритеты между несколькими финансовыми целями.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add JoelLewis/finance_skills --skill savings-goals -a claude-code
Открыть на GitHub

Что делает savings-goals

Скилл рассчитывает ежемесячные взносы, будущую стоимость цели с учётом инфляции и срок до нужной суммы. Он помогает оценить пенсионный капитал через безопасную ставку изъятия, учесть взносы работодателя и спланировать накопления на первый взнос.

Для образования учитываются 529 plans, рост стоимости обучения и досрочные взносы. Для нескольких целей скилл предлагает распределять деньги по приоритету, сроку и допустимому риску: пенсионные накопления идут раньше гибких целей, а короткие сроки требуют более консервативного размещения.

Скрипт можно запустить через python3 scripts/savings_goals.py: он использует только стандартную библиотеку. Это значит, что для запуска расчётной реализации не нужны дополнительные установки Python-пакетов.

Какие задачи решает

  • рассчитать ежемесячный взнос для будущей суммы
  • оценить пенсионный капитал по расходам и ставке изъятия
  • спланировать накопления на обучение через 529 plans
  • заложить инфляцию в цель на первый взнос
  • распределить деньги между пенсионными и гибкими целями

Примеры запросов агенту

  • Рассчитай, сколько нужно откладывать каждый месяц на образование через 529 plan.
  • Проверь, успею ли я накопить пенсионную сумму с учётом текущих сбережений и взноса работодателя.
  • Сравни приоритеты: резерв, погашение долга, пенсия и первый взнос на жильё.

Как установить savings-goals

1Через Skills CLI (Vercel)

npx skills add JoelLewis/finance_skills --skill savings-goals -a claude-code

2Вручную: положить файлы

~/.claude/skills/savings-goals/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/savings-goals/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о savings-goals

Как установить savings-goals в Claude Code?

Выполните npx skills add JoelLewis/finance_skills --skill savings-goals -a claude-code, затем проверьте файл ~/.claude/skills/savings-goals/SKILL.md.

Что делает savings-goals?

Скилл считает нужный темп накоплений, корректирует цели на инфляцию и помогает сравнить пенсионные, образовательные цели и накопления на жильё.

Какие финансовые цели он умеет сравнивать?

Он работает с пенсией, обучением, первым взносом и несколькими целями одновременно. Приоритет зависит от срока, гибкости цели и риска размещения.

Исходный текст

SKILL.md · MIT
---
name: savings-goals
description: "Plan and track savings for specific financial goals including retirement, education, and home purchase. Use when the user asks about required savings rates, 529 plans, retirement accumulation targets, down payment planning, or goal prioritization. Also trigger when users mention 'how much do I need to save each month', 'am I on track for retirement', 'college savings', 'safe withdrawal rate', '4% rule', 'FIRE savings rate', 'catch-up contributions', 'employer match', or ask how to balance competing savings goals."
---

# Savings Goals

## Core Concepts

### Required Monthly Savings
To accumulate a future value FV in n periods at rate r per period:

PMT = FV × r / [(1+r)^n - 1]

This is the sinking fund formula (future value of annuity solved for PMT).

### Inflation-Adjusted Targets
Always compute goals in future (nominal) dollars:

FV_nominal = FV_today × (1 + inflation)^years

Then solve for the required savings using the nominal return, or use the real return with today's dollars.

### Education Funding
- **529 plans**: tax-free growth for qualified education expenses, state tax deductions in many states
- **Current costs** (2025-26, total cost of attendance, College Board Trends in College Pricing): ~$30K/year (public four-year in-state) to ~$65K/year (private nonprofit), growing ~5%/year
- **Front-loading**: maximize early contributions for compound growth
- **Superfunding**: 5-year gift tax averaging (contribute 5× annual exclusion at once)
- **Financial aid impact**: parent-owned 529 assets are assessed at a maximum of 5.64% in the federal Student Aid Index (SAI) formula — FAFSA has used the SAI in place of the Expected Family Contribution (EFC) since the 2024-25 award year

### Retirement Accumulation
- **Target nest egg**: annual spending need / safe withdrawal rate
  - Example: $80K/year spending / 0.04 = $2,000,000
- **Safe withdrawal rate**: traditionally 4% (Bengen rule), adjusted for fees, taxes, longevity
- **Required savings rate**: depends on starting age, current savings, expected returns
- **Employer match**: always capture full match — it's an immediate 50-100% return
- **Catch-up contributions**: additional 401(k)/IRA contributions allowed after age 50

### Down Payment Saving
- Typical target: 20% of home price (avoids PMI)
- Timeline: typically 2-7 years → conservative allocation (HYSA, short-term bonds)
- Include closing costs (2-5% of purchase price) in savings target

### Goal Priority Framework
Recommended priority order:
1. Emergency fund (3-6 months expenses)
2. Employer 401(k) match (free money)
3. High-interest debt payoff (>6-8% rate)
4. HSA (triple tax advantage if eligible)
5. Max retirement accounts (401k, IRA, Roth)
6. Education funding (529)
7. Other goals (home, vacation, etc.)

### Multiple Goal Balancing
- Allocate savings across goals based on priority, timeline, and flexibility
- Non-negotiable goals (retirement) take precedence over flexible goals
- Shorter timelines need more conservative investment allocation
- Use goal-based investing: separate sub-portfolios per goal with appropriate risk

### Savings Rate Benchmarks
- Minimum: 15% of gross income for retirement (including employer match)
- Aggressive: 25-50%+ for early retirement / FIRE
- Savings rate = total savings / gross income

## Key Formulas

| Formula | Expression | Use Case |
|---------|-----------|----------|
| Required savings (PMT) | PMT = FV × r / [(1+r)^n - 1] | Monthly savings for a goal |
| Future value with savings | FV = PV(1+r)^n + PMT×[(1+r)^n - 1]/r | Project goal balance |
| Inflation adjustment | FV_real = FV_today × (1+π)^t | Convert today's dollars to future |
| Retirement target | Nest egg = annual spend / SWR | Size the retirement goal |
| Years to goal | n = ln(FV×r/PMT + 1) / ln(1+r) | How long until goal is funded |
| Savings rate | SR = total savings / gross income | Track savings discipline |

## Worked Examples

### Example 1: College Savings (529)
**Given:** Need $200,000 in 18 years, expect 7% annual return, starting from $0
**Calculate:** Required monthly savings
**Solution:**
- Monthly rate: r = 0.07/12 = 0.005833
- Months: n = 18 × 12 = 216
- PMT = $200,000 × 0.005833 / [(1.005833)^216 - 1]
- PMT = $1,166.67 / [3.5125 - 1]
- PMT = $1,166.67 / 2.5125 = **$464.34/month**

### Example 2: Retirement Accumulation
**Given:** Age 30, $50,000 currently saved, wants $2,000,000 by age 65, expects 8% annual return
**Calculate:** Required monthly savings
**Solution:**
- Monthly rate: r = 0.08/12 = 0.006667; months: n = 35 × 12 = 420
- FV of current savings (monthly compounding): $50,000 × (1.006667)^420 = $50,000 × 16.2925 = $814,627
- Remaining needed: $2,000,000 - $814,627 = $1,185,373
- PMT = $1,185,373 × 0.006667 / [(1.006667)^420 - 1]
- PMT = $7,902.49 / [16.2925 - 1]
- PMT = $7,902.49 / 15.2925 = **$517/month**
- With employer match of $200/mo: personal contribution = **$317/month**

## Common Pitfalls
- Not inflation-adjusting future goals (college in 18 years costs much more than today)
- Neglecting employer match — it's the highest guaranteed return available
- Too conservative allocation for long-horizon goals (20+ years can tolerate equity risk)
- Saving for college before adequately funding retirement (retirement has no financial aid)
- Not revisiting savings rate as income grows (lifestyle creep absorbs raises)
- Using average returns without considering sequence risk near goal date

## Cross-References
- **time-value-of-money** (core plugin): FV/PV calculations, annuity formulas
- **emergency-fund** (wealth-management plugin): must be funded before other goals
- **debt-management** (wealth-management plugin): high-interest debt payoff competes with savings
- **tax-efficiency** (wealth-management plugin): 529 tax benefits, Roth vs traditional, HSA
- **investment-policy** (wealth-management plugin): goal-based allocation aligns with IPS constraints
- **asset-allocation** (wealth-management plugin): glide paths for target-date retirement savings
- **finance-psychology** (wealth-management plugin): mental accounting, present bias, commitment devices
- **financial-planning-workflow** (advisory-practice plugin): savings goals are key inputs to the comprehensive financial planning process
- **insurance-planning** (wealth-management plugin): education and survivor-income goals feed the capital-needs calculation for life insurance sizing
- **estate-gifting** (wealth-management plugin): 529 superfunding (5-year gift-tax election) lets grandparents front-load education goals within annual exclusions
- **retirement-decumulation** (wealth-management plugin): the drawdown-side counterpart — safe withdrawal rates and spending rules for the nest egg accumulated here
## Running the script
Run the reference implementation directly:

```
uv run scripts/savings_goals.py      # PEP 723 header resolves dependencies automatically
python3 scripts/savings_goals.py     # standard library only — no installs needed
```

A bare run prints a demo covering required monthly savings, retirement accumulation, time-to-goal, inflation adjustment, shortfall analysis, education funding, savings rate, and real returns. Use `--verify` to recompute the demo figures and assert they match this skill's worked examples (prints PASS/FAIL, exits nonzero on mismatch), and `--help` to list the available classes and functions. The file is primarily meant to be imported as a module (`from savings_goals import SavingsGoals`) rather than run standalone.

© JoelLewis · MIT · JoelLewis/finance_skills

Похожие скиллы

Все скиллы по теме «Финансы и бизнес» →
churn-prevention coreyhaines31 Скилл для Claude Code, который разбирает отток подписок: опрос при отмене, предложение под причину ухода, восстановление неудачных платежей. CX Codex +1 121 000установок revops coreyhaines31 Скилл помогает проектировать RevOps: вести лидов по этапам, считать скоринг и выстраивать передачу из маркетинга в продажи. Нужен для CRM-процессов. CX Codex +1 113 500установок community-marketing coreyhaines31 Помогает запустить и развивать сообщество в Discord или Slack для удержания пользователей и создания базы амбассадоров. CX Codex +1 89 500установок ads coreyhaines31 Скилл помогает планировать, проверять и оптимизировать рекламу в Google Ads, Meta и LinkedIn. Опирается на плейбуки и требует фактов вместо домыслов. CX Codex +1 82 800установок pricing coreyhaines31 Помогает агенту разобрать цены и тарифы SaaS: выбрать метрику, собрать планы, проверить страницу с ценами. Пригодится, когда непонятно, сколько брать и за что. CX Codex +1 79 300установок marketing-plan coreyhaines31 Генерирует 12-месячный маркетинговый план по структуре AARRR с аудитом и дорожной картой на 90 дней. Готовый результат оформляется в Markdown для Notion. CX Codex +1 67 900установок

Из того же набора89

trade-execution Скилл для оценки best execution, выбора алгоритмов исполнения и построения TCA. Пригодится, когда нужно разобрать маршрутизацию ордеров или подготовить отчёт для комитета. CX Codex +1 705установок return-calculations Считает и сопоставляет доходность портфеля разными методами. Пригодится, чтобы отделить результат управляющего от эффекта собственных пополнений и снятий. CX Codex +1 702установок lending Считает платежи по ипотеке, HELOC и личным займам, сравнивает сроки и ставки, разбирает досрочные платежи и точки. CX Codex +1 702установок privacy-data-security Помогает организовать комплаенс-процессы по защите данных и приватности для фирм с регистрацией в SEC по правилам Reg S-P и Reg S-ID. CX Codex +1 698установок fund-vehicles Сравнивает ETF, паевые фонды, индексные фонды и SMA. Помогает рассчитать влияние комиссий на капитал и выбрать налогово эффективную структуру вложений. CX Codex +1 693установок forward-risk Считает будущие потери портфеля: параметрический VaR, Expected Shortfall, Монте-Карло и сценарный анализ. Пригодится, когда нужно оценить хвостовой риск по текущим позициям. CX Codex +1 694установок performance-reporting Считает доходность портфеля, сравнивает с бенчмарком и собирает отчёт с атрибуцией и риск-панелью. Пригодится, когда клиент спрашивает, как прошёл квартал. CX Codex +1 693установок financial-planning-integration Связывает программы финансового планирования с CRM, PMS и брокерскими базами. Помогает синхронизировать рыночные допущения и связать цели плана с портфелем. CX Codex +1 689установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой