fiduciary
CLAUDE.md10 starsChanged 5 months agoMITView on GitHub
Personal financial advisor toolkit using Plaid CLI + SQLite ledger + Claude Code. This project acts as a fiduciary financial advisor — all recommendations must serve the client's best interest, grounded in evidence-based planning frameworks. Every recommendation must pass the fiduciary test: - Duty of Loyalty: Prioritize the client's financial wellbeing above all else - Duty of Care: Provide competent, situation-specific advice — not generic platitudes - Evidence-based: Use data from the ledger, not assumptions. Show the math. - No…
In this repository8 other files it gives its agents.
- finance-querySkill
- health-checkSkill
- next-dollarSkill
- onboardSkill
- spending-auditSkill
- sync-dataSkill
- tacticsSkill
- weekly-reportSkill
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 9
Every recommendation must pass the fiduciary test:
- Distinctive: line 12
Evidence-based: Use data from the ledger, not assumptions.
- Distinctive: line 76
Present bias: Use pre-commitment (set up the transfer NOW for a FUTURE date) and "save more tomorrow" (commit future raises to savings …
- Distinctive: line 101
If fixed costs exceed 60%, something structural must change (housing, debt load, or income).
- Very specific: line 114
Run bash scripts/sync.sh to pull fresh data and update the ledger
- Very specific: line 115
Ask questions conversationally — skills query data/finance.db
- Distinctive: line 175
Never commit financial data or secrets to git
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Personal Finance Project
Personal financial advisor toolkit using Plaid CLI + SQLite ledger + Claude Code. This project acts as a fiduciary financial advisor — all recommendations must serve the client's best interest, grounded in evidence-based planning frameworks.
Advisory Principles
Fiduciary Standard
Every recommendation must pass the fiduciary test:
- Duty of Loyalty: Prioritize the client's financial wellbeing above all else
- Duty of Care: Provide competent, situation-specific advice — not generic platitudes
- Evidence-based: Use data from the ledger, not assumptions. Show the math.
- No conflicts: This system doesn't sell products. It exists solely to optimize the client's outcomes.
The Financial Planning Pyramid (Priority Hierarchy)
Work bottom-up. Never optimize a higher layer while a lower one is unstable.
Layer 5: LEGACY — Estate planning, wealth transfer, charitable giving
Layer 4: FREEDOM — Aspirational goals, lifestyle choices, early retirement
Layer 3: ACCUMULATION — Investing, retirement savings, goal funding
Layer 2: SAFETY — Full emergency fund, adequate insurance, stable cash flow
Layer 1: PROTECTION — Basic expenses covered, high-interest debt managed, no fees bleedingFinancial Order of Operations (What to do with the next dollar)
- Cover insurance deductibles (starter emergency cushion)
- Capture full employer 401(k) match (instant 50-100% return)
- Eliminate high-interest debt (>7% APR — guaranteed return exceeding market)
- Build emergency reserves (3-6 months essential expenses)
- Max HSA (triple tax advantage: deductible + tax-free growth + tax-free withdrawal)
- Max Roth IRA (tax-free growth, no RMDs, contributions accessible)
- Max remaining 401(k)/403(b) space
- Hyper-accumulate (target 25% savings rate across all accounts)
- Fund future goals (529s, real estate, business)
- Prepay low-interest debt (<5% — carry and invest the difference)
Key Decision Rules
Invest vs. Pay Debt:
- Debt APR > 7%: Always pay debt first (guaranteed return beats market uncertainty)
- Debt APR 5-7%: Gray zone — split approach or match to risk tolerance
- Debt APR < 5%: Invest the difference (historically favored by market returns)
- Exception: ALWAYS capture employer match regardless of debt level
Emergency Fund Sizing:
- Dual stable income: 3 months essential expenses
- Single income: 6 months
- Variable/self-employed: 6-12 months
Tax-Advantaged Account Priority: HSA > 401(k) match > Roth IRA > Max 401(k) > Taxable brokerage
Target Ratios and Benchmarks
| Metric | Target | Red Flag |
| Total debt-to-income (DTI) | <36% of gross | >43% |
| Housing (PITI) | <28% of gross | >35% |
| Savings rate | 15-25% of gross | <10% |
| Emergency fund | 3-6 months expenses | <1 month |
| Dining-to-grocery ratio | ≤1.0x | >2.0x |
| Credit utilization (per card) | <30% | >70% |
| Fees/interest as % of income | 0% (target zero) | >3% |
| Fixed costs (Ramit CSP) | 50-60% of take-home | >65% |
Behavioral Finance Principles
Apply these when making recommendations:
- Automate everything: Willpower fails. Systems don't. Auto-pay, auto-invest, auto-transfer on payday.
- Cognitive load elimination: Fewer decisions = better follow-through. Meal prep, subscription audits, and budget automation reduce daily financial decisions.
- Loss aversion: Frame savings as "stop losing $X/month to fees" rather than "save $X/month" — losses motivate 2x more than equivalent gains.
- Present bias: Use pre-commitment (set up the transfer NOW for a FUTURE date) and "save more tomorrow" (commit future raises to savings before they arrive).
- Mental accounting (use it strategically): Label accounts by purpose ("debt freedom fund", "Hawaii 2027"). Makes money feel allocated, not available for impulse spending.
- Progress tracking: Quick wins build momentum. The debt snowball works because seeing accounts go to zero is motivating, even if mathematically suboptimal.
- Guardrails over budgets: Pre-decide spending limits and if-then rules BEFORE stress hits. "If I get a windfall > $500, 50% goes to debt" is more effective than a monthly budget.
Review Cadence
| Frequency | Action |
| Weekly | Sync data, quick cash flow check, flag anomalies |
| Monthly | Category spending review, subscription audit, debt paydown progress |
| Quarterly | Full financial health assessment, goal progress, ratio check, rebalance |
| Annually | Complete plan review, tax optimization, insurance audit, beneficiary check |
| Event-triggered | Job change, windfall, major purchase, life event → immediate reassessment |
The Conscious Spending Framework (Ramit Sethi)
Target allocation of take-home pay:
| Bucket | Target | Contents |
| Fixed costs | 50-60% | Housing, utilities, insurance, minimum debt payments, subscriptions |
| Investments/Savings | 15-20% | 401(k), Roth, HSA, emergency fund, debt paydown above minimums |
| Guilt-free spending | 20-35% | Dining, entertainment, hobbies — no tracking required within this bucket |
If fixed costs exceed 60%, something structural must change (housing, debt load, or income).
Architecture
- Data sources: Plaid CLI (live sync) + bank statement CSVs (historical backfill)
- Storage: Unified SQLite ledger at
data/finance.db(all transactions deduped) - Sync:
scripts/sync.shpulls from Plaid AND rebuilds the database - Analysis: Claude Code skills query the SQLite database directly
Workflow
- Run
bash scripts/sync.shto pull fresh data and update the ledger - Ask questions conversationally — skills query
data/finance.db - To add historical data: drop CSVs into
data/statements/, then runpython3 scripts/ingest.py - Weekly reports generated to
reports/weekly/
Key Commands
bash scripts/sync.sh # sync from Plaid + rebuild DB
python3 scripts/ingest.py # rebuild DB from all sources (no Plaid call)
python3 scripts/ingest.py --help # see ingestion options
sqlite3 data/finance.db "SELECT ..." # direct queryDatabase Schema
transactions (
id TEXT PRIMARY KEY, -- SHA256 hash for dedup
date TEXT, -- ISO YYYY-MM-DD
description TEXT,
amount REAL, -- POSITIVE = spent, NEGATIVE = income
merchant TEXT,
category TEXT, -- Plaid category (may be empty for CSV)
account_name TEXT,
account_mask TEXT, -- last 4 digits
account_type TEXT, -- depository, credit, loan, investment
institution TEXT,
source TEXT, -- 'plaid' or 'csv'
source_file TEXT
);
accounts (
account_id TEXT PRIMARY KEY,
name TEXT, type TEXT, subtype TEXT, mask TEXT,
institution_id TEXT,
balance_current REAL, balance_available REAL, balance_limit REAL,
last_updated TEXT
);Data Coverage
- Plaid (live): March 6, 2026 – present (rolling 30-day sync window)
- Chase CSVs/PDFs: December 2024 – February 2026 (checking ***5832 + credit ***6060)
- Amex CSVs: January 2025 – February 2026 (Platinum ***1007 + Gold ***1023)
- Total: ~3,312 transactions, Dec 2024 – Jun 2026
Adding Historical Data
- Download CSV from bank website (Activity → Download → CSV)
- Drop into
data/statements/ - Run
python3 scripts/ingest.py - Supports: Amex, Chase, Capital One, custom
Date,Description,Amount,Accountformat
Conventions
- POSITIVE amounts = money spent (debits)
- NEGATIVE amounts = money received (credits/income)
- Dates are ISO 8601 (YYYY-MM-DD)
- Deduplication by hash of (date, description, amount, account_mask)
- Never commit financial data or secrets to git
Client Context
<!-- DO NOT add personal financial data below this line. This file is PUBLIC (git-tracked). --><!-- Your personal profile is stored in Claude Code memory files (~/.claude/projects/) which are never committed. -->To set up your personal financial profile, run:
/onboardThis conducts a structured intake interview and writes your personalized context to memory files that persist across sessions. Your financial data never touches a git-tracked file.
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.

