---
name: money-check
description: Use when a new monthly bank export arrives in this practice folder and the categorized ledger, independent reconciliation, and sourced Markdown and offline HTML money reports need updating.
---

# Monthly money check

## Boundaries

Work only inside the practice folder containing `money-referee.py`, `categories.csv`, earlier `YYYY-MM.csv` exports, and the next `YYYY-MM.csv` export at the same folder level. Use only installed Python 3 and its standard library. No network, packages, browser launch, or reads or writes outside this folder, including temporary files or browser caches. Never edit exports or rewrite earlier categorized rows. If python3 is unavailable, say checks could not run; never claim a pass. Create only requested deliverables. Do not ask for a reply. Do not use em dashes or en dashes. Do not offer advice about transactions. Do not claim browser rendering, width, or interaction was tested in the recording; a human checks the saved page later.

## Read and categorize

1. Read every data row from each CSV using `csv.DictReader`; data row 1 is immediately after the header `date,description,amount`. A new month, for example `2026-04.csv`, sits alongside `2026-01.csv`, `2026-02.csv`, and `2026-03.csv` in the practice folder. Spending is negative; payroll, refunds, and reversals are credits, not charges. Distinguish payroll deposits from refunds or reversal credits even if the descriptions do not establish the exact reason for a credit.
2. `categories.csv` header is exactly `source_file,row,date,description,amount,category`. Keep earlier lines byte-for-byte in their original order; append one new line per new export data row with its filename, original 1-based data row number, unchanged date, description, amount, and exactly one nonempty consistent category. Use `csv` to quote fields when needed. No export row may be omitted or categorized twice.
3. Current category names: Books, Coffee, Dining, Fitness, Fuel, Gifts, Groceries, Household, Housing, Internet, Mobile, Payroll, Pharmacy, Refunds, Streaming, Transit, Utilities. Positive Hollow Hardware credit is Refunds, separate from Household outflows; payroll is Payroll. Keep those names consistent; introduce another category only for a genuinely different kind of transaction and name it in the report.
4. Calculate money with `Decimal` or integer cents, never floats. Independently read all export files, including the new one. Run the exact base command `python3 money-referee.py categories.csv 2026-01.csv 2026-02.csv 2026-03.csv`. For the next month, run `python3 money-referee.py categories.csv 2026-01.csv 2026-02.csv 2026-03.csv 2026-04.csv`; replace or extend the filenames to include every export for later months. Also run `python3 money-referee.py --self-test`. Record each command's actual output and exit status in both reports. The self-test uses in-memory mutations and the same validation logic; do not describe it as reading stdin. Do not state a pass if the command did not pass.

## Analyze source evidence

- Compare category signed totals and net totals for each month, with outflows, payroll, and other credits separate. Show every category, including zero months, and preserve the full baseline even if evidence is filtered.
- Recurring outflows: flag the same merchant and exact negative amount returning at a regular interval, monthly or more often. Include a series that first starts and repeats within the newest month. Match monthly series by calendar-month position before considering nearby dates: early and late charges of the same amount from one merchant belong to separate series. Never greedily use an early event to complete a late series. Record source dates, amounts and file-specific row citations. Analyze recurring payroll deposits separately; credits are never charges.
- Compare differing transaction amounts for the same merchant: show both amounts and call the later transaction larger or smaller, never give a signed difference. Different items, usage, or quantities can explain differing totals. Never call this a unit-price increase or decrease without invoices establishing the same item, plan, or unit rate.
- Flag merchants whose first appearance among the provided exports is in the newest month. Possible duplicates are outflows from the same merchant on the same date for the same amount; a flag is not a determination of error. The exact-amount recurrence rule can miss a recurring charge whose amount changes. The same-date duplicate rule can miss a duplicate posted on another day. Absence of a flag is not evidence of absence. Include this limitation in both reports and this skill.
- Before writing either report, verify every cited prose row against the export itself: filename, data row, date, merchant and amount. Only give a shared row number if that number is identical in every named export. Otherwise write each month's row number separately. Any visible phrase inside quotation marks or blockquotes must be copied exactly from the export and immediately followed by a `<cite>` containing the source filename. Prefer unquoted plain-sentence summaries. Source citations do not turn assumptions into evidence.

## Publish

For the newly arrived `YYYY-MM.csv`, create `money-report-YYYY-MM.md` and `money-report-YYYY-MM.html` in this folder, comparing the new month to earlier months. The original January through March baseline was published as `money-report.md` and `money-report.html`; keep it intact. Both new reports have the same complete findings: lead with the newest month's actual net, source rows for flags and comparisons, every category's monthly signed baseline, recurring outflows and separate recurring deposits, amount comparisons, new merchants, possible duplicates, limitations, and both real check receipts with actual exit statuses. Include a complete accessible source ledger in HTML with filename and row number per row. Make HTML self-contained, with inline style, script, data and artwork only; no external assets or requests. Keep a no-script path to every row. A labeled keyboard-friendly category/flag selector must change the visible evidence and selected count, not the overall baseline; failed checks remain visible. On 360-pixel screens or wider nothing should scroll sideways, including tables, charts or code; use stacked labeled entries, no mid-word breaks, legible focus and tap targets, and reduced-motion-safe controls. State browser rendering was not tested in this recording.

**Receipt rule:** Any additional check reported in either report or final reply must include its exact repeatable command and its actual output. Otherwise omit the check claim. Never invent output, browser checks, proof badges, source quotes, charts, or live features. Run the changed path using Python 3 before claiming it works; preserve failing status and output if a check fails.
