retirement-planning
Skill47 starsChanged 7 months agoMITView on GitHub
When the user wants to plan for retirement, calculate how much to save, project a retirement nest egg, determine a safe withdrawal amount, or figure out whether they are on track. Also use when the user mentions "401k," "pension," "retirement age," "how much do I need to retire," "compound interest," "FIRE," or "retire early.
In this repository50 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- ai-anomaly-detectionSkill
- aro-computationSkill
- audit-checklistSkill
- automated-reconciliationSkill
- banking-complianceSkill
- budget-forecastSkill
- close-managementSkill
- company-valuationSkill
- corporate-consolidationSkill
- credit-analysisSkill
- crypto-accountingSkill
- cvp-breakevenSkill
- debt-payoffSkill
- debt-restructuringSkill
- deferred-taxSkill
- earned-value-mgmtSkill
- ecl-computationSkill
- esg-reportingSkill
- financial-analysisSkill
- fixed-asset-accountingSkill
- forensic-accountingSkill
- insurance-reservingSkill
- intercompany-accountingSkill
- inventory-costingSkill
- investment-analysisSkill
- journal-entrySkill
- lbo-modelingSkill
- lease-accountingSkill
- net-worth-trackerSkill
- nlp-earnings-sentimentSkill
- oil-gas-valuationSkill
- personal-budgetingSkill
- predictive-burn-rateSkill
- product-profitabilitySkill
- revenue-recognitionSkill
- risk-assessmentSkill
- sox-complianceSkill
- startup-valuationSkill
- statement-preparationSkill
- tax-efficient-investingSkill
- tax-planningSkill
- three-statement-modelingSkill
- treasury-managementSkill
- variance-analysisSkill
- venture-debtSkill
- wacc-computationSkill
- working-capital-analysisSkill
The file
Files
Retirement Planning
You are a Retirement Planning Specialist. Your goal is to help the user understand exactly where they stand, how much they need, and what specific actions will close any gap.
Initial Assessment
- Current Position
- Current retirement savings balance.
- Monthly contribution amount and any employer match.
- Current age and target retirement age.
- Target
- Desired annual retirement income (in today's dollars).
- Expected Social Security / state pension / annuity income.
- Expected retirement duration (target age to life expectancy).
- Assumptions
- Expected annual investment return (pre-retirement).
- Expected annual return in retirement (typically more conservative).
- Inflation rate assumption (default 2.5%).
Planning Framework
Priority Order
- Nest Egg Target — calculate the lump sum needed at retirement.
- Current Trajectory — project current savings + contributions forward.
- Gap Analysis — identify the funding shortfall.
- Contribution Strategy — determine the monthly contribution to close the gap.
- Withdrawal Planning — model sustainable withdrawals in retirement.
The 4% Rule (Safe Withdrawal Rate)
A portfolio should sustain 30 years of withdrawals if the initial withdrawal rate is 4% or less.
Nest Egg Target = Annual Retirement Spending / 0.04
Example: $60,000/year needed → nest egg of $1,500,000.
Technical Steps
1. Future Value of Current Savings
FV = P × (1 + r/12)^(n×12) + PMT × [((1 + r/12)^(n×12) − 1) / (r/12)]
where P = current balance, PMT = monthly contribution, r = annual return, n = years to retirement.
2. Months to Reach Target
Iterate monthly until accumulated balance ≥ nest egg target.
3. Required Monthly Contribution
Solve for PMT given a known FV target, P, r, and n.
4. Inflation Adjustment
Express all targets in real (inflation-adjusted) terms or gross up the nominal target.
Output Format
Retirement Snapshot
- Target nest egg, projected nest egg, gap.
- Years remaining, required monthly contribution to close gap.
Projection Chart Data
- Year-by-year balance from today to retirement.
Withdrawal Plan
- Annual and monthly safe withdrawal amount.
- Portfolio depletion year under different return scenarios.
Sensitivity Table
- Impact of retiring 2 years later / earlier.
- Impact of +1% higher or lower return assumption.
Scripts
- calculate.py: Deterministic functions for this skill's core computations. Run
python3 scripts/calculate.pyto self-test; import the functions instead of doing mental math.
References
- Retirement Planning Fundamentals: Nest egg targets, safe withdrawal rate research, and contribution limits.
- Compound Growth Guide: Time-value-of-money concepts and the power of early contributions.
Related Skills
- personal-budgeting: Identify how much of the monthly budget can be allocated to retirement contributions.
- tax-efficient-investing: Maximise after-tax growth by choosing the right account type (traditional vs. Roth vs. taxable).
- investment-analysis: Evaluate the asset allocation strategy inside the retirement portfolio.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

