Finance Watcher
Monitor banking transactions and automatically detect subscriptions, flag large transactions, and generate financial summaries in your Obsidian vault.
Prerequisites
- Python packages:
pip install pandas watchdog - BaseWatcher framework (in sibling directory)
- Bank CSV exports or banking API credentials
Quick Start
1. Import CSV
python scripts/cli.py import-csv --file ./bank_export.csv --output ./vault/Accounting
2. Start Watching
python scripts/cli.py watch --csv-dir ./bank_imports --output ./vault/Accounting
3. Audit Subscriptions
python scripts/cli.py audit-subscriptions --accounting-dir ./vault/Accounting
4. Python Usage
import asyncio
from scripts.finance_watcher import watch_finances
from scripts.transaction_emitter import TransactionEmitter
async def main():
watcher = watch_finances(csv_watch_dir="./bank_imports")
emitter = TransactionEmitter("./vault")
watcher.on_event(emitter.emit)
await watcher.start()
await asyncio.sleep(3600)
await watcher.stop()
asyncio.run(main())
Output Structure
vault/
├── Accounting/
│ ├── Current_Month.md # Running transaction log
│ ├── Subscriptions.md # Detected subscriptions
│ └── imports/ # CSV drop folder
├── Needs_Action/
│ └── FINANCE_large_tx_*.md # Flagged transactions
└── Briefings/
└── Financial_Summary.md # Weekly financial summary
Configuration
| Option | Type | Default | Description |
|--------|------|---------|-------------|
| csv_watch_dir | str | "./imports" | CSV drop folder |
| alert_threshold | float | 500.0 | Flag transactions above this |
| poll_interval | float | 300.0 | Seconds between polls |
| subscription_patterns | dict | (built-in) | Pattern-to-name mapping |
| transaction_categories | dict | (built-in) | Description-to-category mapping |
Subscription Detection
Built-in patterns detect common subscriptions:
| Pattern | Service |
|---------|---------|
| netflix.com | Netflix |
| spotify.com | Spotify |
| adobe.com | Adobe Creative Cloud |
| notion.so | Notion |
| slack.com | Slack |
| github.com | GitHub |
| aws.amazon | AWS |
CLI Reference
# Watch for new CSVs
python scripts/cli.py watch --csv-dir ./imports --output ./vault/Accounting
# Import a specific CSV
python scripts/cli.py import-csv --file export.csv --output ./vault/Accounting
# Analyze transactions
python scripts/cli.py analyze --accounting-dir ./vault/Accounting --days 30
# Audit subscriptions
python scripts/cli.py audit-subscriptions --accounting-dir ./vault/Accounting
When NOT to Use This Skill
- Official financial reporting — the finance watcher generates alerts and summaries, not audited financial statements; never use it as a substitute for formal accounting
- High-frequency trading or real-time price feeds — the polling interval is designed for personal finance monitoring, not millisecond-precision trading systems
- Jurisdictions with strict financial data residency requirements — verify that storing bank transaction data locally complies with your regional financial regulations
Common Mistakes
- Storing bank credentials or API tokens in plaintext config files — use the operating system's credential store or a secrets manager; never commit financial credentials to git
- Not setting transaction amount thresholds for alerts — alerting on every transaction creates noise; configure minimum amounts to filter out small recurring charges
- Processing historical transactions multiple times — track the last-processed transaction ID or timestamp and use it as a cursor to avoid duplicate processing