Categorize CSV Command
Purpose
Analyze transaction descriptions in normalized CSV files and populate the category column with appropriate spending categories.
Arguments
$1: Directory path containing normalized CSV files
Categories
| Category | Keywords |
|---|---|
engineering | CURSOR, OPENAI, ANTHROPIC, REPLICATE, GOOGLE CLOUD, VERCEL, AWS, GITHUB |
trading | TRADINGVIEW |
food | TRADER JOE, WHOLE FOODS, DOORDASH, restaurant, grocery |
bills | RENT, CON EDISON, SPECTRUM, utilities |
entertainment | NETFLIX, SPOTIFY, DISNEY, MIDJOURNEY |
amazon | AMAZON, AMZN (purchases, not Prime) |
subscriptions | Prime, recurring monthly services |
transfers | VENMO, APPLE CASH, ZELLE, bank transfers |
income | PAYCHECK, salary, ACH CREDIT, interest |
loans | STUDENT LN, DEPT EDUCATION |
travel | Airlines, hotels, Uber/Lyft rides |
health | pharmacy, medical, gym |
other | Default fallback |
Workflow
- Find all
normalized_*.csvfiles in directory - For each transaction, analyze description
- Assign appropriate category
- Update the category column in place
- Stop hook validates output
Usage
/finance-categorize-csv data/january/
Related Components
- Agent: finance-transaction-categorizer
- Command: /finance-normalize-csv