Packs / personal-productivity-public
budget-monthly-summary
Turn a bank CSV export into a monthly budget summary by category with budget-vs-actual
Install
logicpacks pack use personal-productivity-public/budget-monthly-summaryget_pack personal-productivity-public/budget-monthly-summaryThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
local-python - Checks: 1 in
outcome/checks.yaml - Code:
budget.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
A month-by-category table (income, spending per category, net) from a bank CSV, using simple keyword rules, with overspend against a budget file flagged.
Verified by: Synthetic 3-month export: October groceries 95.40 vs budget 90 is flagged OVER; uncategorised spending is listed.
Steps
- Export transactions as CSV from the bank (most banks offer CSV).
- Edit rules.csv once (keyword -> category).
- Run
python3 code/budget.py tx.csv rules.csv --budget budget.csv. - Add rules for anything under 'uncategorised'.
Edge cases
- Different banks use different column names; map them with --cols date,description,amount.
- Transfers between own accounts should get a 'transfer' rule so they are not counted as spending.
Don'ts
- Don't upload bank exports to online tools; this runs locally.
- Don't commit real bank exports to git.