Graph Insights Command
Generate financial insight visualizations from CSV data.
Arguments
$1: Path to a CSV file (merged or cumulative transactions)
Output
PNG files in the assets/ subdirectory of the CSV's parent folder.
Graph Types
Required Standard Graphs
- Balance Over Time - Line chart showing balance progression
- Category Breakdown - Pie chart of spending by category
- Monthly Spending Trend - Bar chart by category
- Income vs Expenses - Comparison bar chart
- Top Merchants - Horizontal bar chart
Novel/Interesting Graphs
- Daily Spending Pattern - Heatmap by day of week
- Category Trend Lines - Multi-line chart over time
- Savings Rate - (income - spending) / income
- Large Transaction Highlights - Scatter plot outliers
- Recurring vs One-time - Stacked area chart
Graph Requirements
Visual Quality
- Clean matplotlib style
- Clear titles and axis labels
- Readable font sizes (min 10pt)
- Color-blind friendly palettes
- Figure size: minimum 10x6 inches
- Resolution: 150 DPI minimum
Data Accuracy
- All values must be accurate
- Double-check totals and percentages
- Handle missing values gracefully
Workflow
- Read CSV path from
$1 - Load and validate data
- Generate visualizations using matplotlib/pandas
- Save to assets/ directory
- Stop hook validates PNG generation
Usage
/finance-graph-insights data/january/agentic_merged_transactions.csv
Related Components
- Agent: finance-graph-generator
- Hook: graph-file-validator