返回顶部
l

local-budget

Analyze exported bank/credit card CSV files locally to track spending, categorize transactions with LLM reasoning, compare against user-defined budgets, and generate markdown reports. Use when the user mentions budgeting, spending analysis, finance tracking, bank statements, credit card exports, CSV transactions, monthly spending, or wants to know where their money is going. Fully local — no third-party APIs, complete privacy. Triggers on words like budget, spending, transactions, bank CSV, cred

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
67
下载量
0
收藏
概述
安装方式
版本历史

local-budget

# Local Budget Analyze bank/credit card CSV exports, categorize transactions, compare against budgets, and generate clean markdown reports for Obsidian. ## Workflow Overview 1. **Parse** — run `parse_csv.py` to normalize raw CSVs into a unified JSON format 2. **Categorize** — run `categorize.py` to get LLM-ready JSON with suggested categories; review/adjust 3. **Report** — run `report.py` to generate a markdown spending report All scripts live in `scripts/`. Budget config and sample data in `assets/`. See `references/csv-formats.md` for supported formats and `references/categories.md` for category customization. ## Step 1: Parse CSV ```bash python3 scripts/parse_csv.py <input.csv> [--format chase|boa|generic] [--output transactions.json] ``` - Auto-detects format if `--format` is omitted (checks header columns) - Outputs a unified JSON array of transaction objects - Each transaction: `{ "date": "YYYY-MM-DD", "description": str, "amount": float, "type": "debit"|"credit", "original_category": str|null }` - Debits are positive amounts; credits (refunds/income) are negative - Handles multiple date formats: `MM/DD/YYYY`, `YYYY-MM-DD`, `MM/DD/YY` - Skips rows with missing date or amount; logs warnings to stderr If the user's bank isn't auto-detected, check `references/csv-formats.md` for column mappings and use `--format generic` with the appropriate flag, or add a new format. ## Step 2: Categorize Transactions ```bash python3 scripts/categorize.py transactions.json [--budget assets/sample-budget.json] [--output categorized.json] ``` - Outputs a JSON file with each transaction tagged with a suggested `category` based on description keyword matching - The LLM (you) should review the output and adjust categories before generating the report - Default categories: Housing, Food & Dining, Transportation, Utilities, Entertainment, Shopping, Health, Subscriptions, Income, Other - To adjust: edit the JSON directly, or tell the user which transactions look miscategorized and confirm corrections - See `references/categories.md` for the keyword-matching logic and how to customize **LLM review step:** After running categorize.py, scan the output for anything in "Other" or with low-confidence keywords. Ask the user to confirm or correct those entries before proceeding. ## Step 3: Generate Report ```bash python3 scripts/report.py categorized.json [--budget assets/sample-budget.json] [--output report.md] ``` - Generates a markdown report with: - Monthly summary (total in/out) - Spending by category with budget vs. actual comparison - Top 10 merchants by spend - Month-over-month trend if multiple months present in the data - Overage alerts for categories that exceed budget - If `--budget` is omitted, report shows actuals only (no budget comparison) - Output is Obsidian-compatible markdown with frontmatter ## Budget Config Budget is defined in a JSON file. See `assets/sample-budget.json` for a realistic example. ```json { "monthly_budgets": { "Housing": 1800, "Food & Dining": 600 } } ``` ## Common Tasks **"Analyze my Chase export"** → `parse_csv.py chase_export.csv --format chase --output tx.json` → `categorize.py tx.json --output cat.json` → Review categories, then `report.py cat.json --budget assets/sample-budget.json` **"Show me my spending for March"** → Parse and categorize the CSV, then filter by month in `report.py` (it auto-groups by month) **"I went over budget on dining"** → Run the full pipeline; report.py flags overage categories with ⚠️ **"Add a new bank format"** → See `references/csv-formats.md` for the column mapping spec **"Customize categories"** → See `references/categories.md` to edit keyword lists or add new categories ## File Locations Store CSVs and JSON outputs wherever the user prefers. Default working directory is wherever the command is run. Suggest keeping exports in a dedicated folder like `~/finances/exports/`. Reports can be saved directly to the Obsidian vault: ```bash python3 scripts/report.py categorized.json --output ~/path/to/vault/finance/2024-03-budget.md ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 local-budget-1775932696 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 local-budget-1775932696 技能

通过命令行安装

skillhub install local-budget-1775932696

下载 Zip 包

⬇ 下载 local-budget v1.0.0

文件大小: 18.21 KB | 发布时间: 2026-4-12 10:27

v1.0.0 最新 2026-4-12 10:27
Initial release: Fully local bank/credit card CSV analysis. LLM-powered categorization, budget comparison, markdown reports. No third-party APIs, complete privacy.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部