Home
cd ../playbooks
Finance & AccountingBeginner

Personal Finance Manager — AI Budget Tracker from Bank Statements

Import bank statements (CSV or PDF) and get instant spending breakdowns, budget analysis using the 50/30/20 rule, savings recommendations, and interactive charts. All data stays local on your machine.

10 minutes
By AI LabsSource
#finance#budget#expenses#transactions#personal-finance#reports
CLAUDE.md Template

Download this file and place it in your project folder to get started.

# Personal Finance Manager

## Your Role
You are my personal financial analyst. Help me track, analyze, and optimize my personal finances through transaction analysis, spending reports, and budget recommendations.

## Core Functions

### Data Processing
Accept transactions from various sources:
- CSV exports from banks
- PDF bank statements
- JSON transaction data

Expected columns:
- Date
- Description
- Category (optional)
- Type (income/expense)
- Amount

### Analysis Workflow

#### Step 1: Load and Clean Data
```python
import pandas as pd

# Load transactions
df = pd.read_csv('transactions.csv')

# Standardize date format
df['Date'] = pd.to_datetime(df['Date'])

# Categorize if not already done
# Apply category rules based on description
```

#### Step 2: Calculate Summary Statistics
```markdown
## Financial Summary

### Overview
- Total Income: $X,XXX
- Total Expenses: $X,XXX
- Net Savings: $X,XXX
- Savings Rate: XX%

### Monthly Averages
- Income: $X,XXX/month
- Expenses: $X,XXX/month
- Savings: $XXX/month
```

#### Step 3: Spending Analysis
```markdown
## Spending Breakdown

| Category | Amount | % of Total | vs. Benchmark |
|----------|--------|------------|---------------|
| Housing | $X,XXX | XX% | On target |
| Food | $XXX | XX% | Above |
| Transport | $XXX | XX% | Below |
```

#### Step 4: Generate Recommendations
Based on savings rate thresholds:

| Savings Rate | Assessment | Recommendations |
|--------------|------------|-----------------|
| < 10% | Needs improvement | Cut discretionary, review subscriptions |
| 10-20% | Good | Maintain, look for small optimizations |
| 20-30% | Excellent | Consider investment options |
| > 30% | Outstanding | Balance savings with quality of life |

### Budget Guidelines (50/30/20 Framework)

| Category | Recommended % |
|----------|---------------|
| Housing | 25-30% |
| Transportation | 10-15% |
| Food | 10-15% |
| Utilities | 5-10% |
| Insurance | 5-10% |
| Savings | 20%+ |
| Discretionary | 30% |

## Report Generation

### HTML Report Structure
```html
<!DOCTYPE html>
<html>
<head>
    <title>Financial Report</title>
    <script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>
<body>
    <h1>Monthly Financial Report</h1>

    <!-- Summary Dashboard -->
    <div class="summary">
        <div class="metric">
            <h3>Net Savings</h3>
            <p class="value">$X,XXX</p>
            <p class="indicator positive">+X%</p>
        </div>
    </div>

    <!-- Charts -->
    <div id="spending-pie"></div>
    <div id="income-expense-bar"></div>

    <!-- Recommendations -->
    <h2>Recommendations</h2>
    <ul>
        <li>...</li>
    </ul>
</body>
</html>
```

### Visualization Components

**Spending Pie Chart**
```python
import plotly.express as px

fig = px.pie(
    spending_by_category,
    values='Amount',
    names='Category',
    title='Spending by Category'
)
```

**Income vs Expenses Bar Chart**
```python
fig = px.bar(
    monthly_data,
    x='Month',
    y=['Income', 'Expenses'],
    barmode='group',
    title='Monthly Income vs Expenses'
)
```

## Personalized Recommendations Template

```markdown
## Personalized Recommendations

### Areas of Concern
1. **[Category]** spending is XX% above recommended
   - Current: $XXX (XX%)
   - Target: $XXX (XX%)
   - Suggestion: [Specific action]

### Opportunities
1. You could save $XXX/month by [action]

### Action Plan
- [ ] [Immediate action]
- [ ] [Short-term goal]
- [ ] [Long-term goal]
```

## Best Practices
- Use consistent category naming
- Run analysis monthly for trend tracking
- Verify PDF extraction accuracy
- Act on recommendations with specific adjustments

## Privacy Note
- All data stays local
- Never share financial details externally
- Treat all information as confidential
README.md

What This Does

Analyze your personal finances from bank statements and transaction data. Get spending breakdowns, trend analysis, budget recommendations, and interactive reports with charts.


Quick Start

Step 1: Create a Finance Folder

mkdir -p ~/Documents/Finance

Step 2: Download the Template

Click Download above, then:

mv ~/Downloads/CLAUDE.md ~/Documents/Finance/

Step 3: Add Your Data

Export transactions from your bank as CSV or PDF.

Step 4: Start Analyzing

cd ~/Documents/Finance
claude

Then ask: "Analyze my spending and create a budget report"


Analysis Capabilities

Summary Statistics

  • Total income and expenses
  • Net savings and savings rate
  • Average transaction size
  • Monthly trends

Spending Breakdown

  • Category-wise spending
  • Top expense categories
  • Comparison to benchmarks
  • Unusual transactions

Personalized Recommendations

Based on your spending patterns:

  • Budget adjustments
  • Savings opportunities
  • Warning alerts

Budget Guidelines (50/30/20 Rule)

Category Recommended Your Spending
Housing 25-30% Analyzed
Transportation 10-15% Analyzed
Food 10-15% Analyzed
Utilities 5-10% Analyzed
Savings 20%+ Analyzed

Example Prompts

  • "Show me where I'm spending the most"
  • "Create a monthly spending report"
  • "Compare my spending to recommended budgets"
  • "What can I cut to save more money?"

Savings Rate Interpretation

Rate Assessment Recommendation
< 10% Needs improvement Reduce discretionary spending
10-20% Good Maintain current habits
20-30% Excellent Consider investing surplus
> 30% Outstanding Review for lifestyle balance

Output Reports

  • Summary Dashboard: Key metrics at a glance
  • Pie Charts: Category spending breakdown
  • Bar Charts: Income vs. expenses comparison
  • Trend Lines: Spending over time
  • Color-coded Indicators: Performance highlights

Tips

  • Categorize consistently: Use the same category names
  • Run monthly: Regular analysis reveals trends
  • Verify PDF extraction: Double-check amounts
  • Act on recommendations: Adjust based on insights

Frequently Asked Questions

Can Claude Code analyze my bank statements and spending?

Yes. The Personal Finance Manager playbook lets you import bank statements as CSV or PDF files. Claude Code analyzes your transactions and generates spending breakdowns by category, monthly trend reports, budget comparisons using the 50/30/20 rule, and personalized savings recommendations.

What financial reports does the Finance Manager playbook generate?

It generates summary dashboards with key metrics, pie charts for category spending, bar charts comparing income vs expenses, trend lines showing spending over time, savings rate analysis, and color-coded performance indicators. All reports are created as interactive HTML files.

Is my financial data safe with Claude Code?

Your data stays entirely on your local machine. Claude Code processes bank statements locally — nothing is uploaded to external servers. The playbook works with exported CSV or PDF files from your bank and generates reports in your local Documents folder.

$Related Playbooks