Skip to content

Packs / personal-productivity-public

budget-monthly-summary

Turn a bank CSV export into a monthly budget summary by category with budget-vs-actual

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-personal-productivity-public

Install

logicpacks pack use personal-productivity-public/budget-monthly-summary
get_pack personal-productivity-public/budget-monthly-summary

The 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

  1. Export transactions as CSV from the bank (most banks offer CSV).
  2. Edit rules.csv once (keyword -> category).
  3. Run python3 code/budget.py tx.csv rules.csv --budget budget.csv.
  4. 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.