Accumulate CSVs Command
Roll a new month's merged transactions into the cumulative yearly dataset.
Arguments
$1: Month directory path
Input
- New month's file:
<month-dir>/agentic_merged_transactions.csv - Existing cumulative (if exists):
<parent>/agentic_cumulative_dataset_<year>.csv
Output
- Updated cumulative:
<parent>/agentic_cumulative_dataset_<year>.csv
Accumulation Rules
First Month
If cumulative doesn't exist:
- Copy new month's merged transactions
- Create cumulative file
Subsequent Months
- Read existing cumulative
- Read new month's data
- Verify no date overlap
- Concatenate new data
- Sort by date descending
- Write updated cumulative
Validation
- No date overlap between months
- Warn if gap between months
- Check for exact duplicates
Workflow
- Parse directory path from
$1 - Read new month's agentic_merged_transactions.csv
- Check if cumulative exists in parent
- Merge with existing data
- Sort by date descending
- Write cumulative file
- Stop hook validates output
Usage
/finance-accumulate data/mock_dataset_feb_1st_2026/
Related Components
- Command: /finance-merge-accounts
- Command: /finance-review