Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

financial-categorizer

БесплатноБез исполняемых скриптовНе проверен

Process bank transaction CSV exports (Nordea, ICA), auto-categorize transactions using configurable rules, manage transaction links, and generate analytical…

patelloот patello2 609 установок в других каталогах

Об этом скилле

financial-categorizer

Process bank transaction CSV exports, auto-categorize transactions using configurable rules, manage transaction links, and generate analytical SQLite database views.

Quick Start

Run the CLI tool from your terminal pointing to your database path:

# 1. Add your main checking account
python cli.py --db ../data/finance.db add-account "Nordea Checking" --type tracked --ownership 1.0

# 2. Add hierarchical categories
python cli.py --db ../data/finance.db add-category "Food"
python cli.py --db ../data/finance.db add-category "Groceries" --parent 1

# 3. Add auto-categorization rules
python cli.py --db ../data/finance.db add-rule 2 "ICA MAXI" --type contains
python cli.py --db ../data/finance.db add-rule 1 "^Hyra" --type regex

# 4. Import transactions from a bank CSV file
python cli.py --db ../data/finance.db import transactions.csv --account "Nordea Checking"

# 5. Run auto-categorization over uncategorized transactions
python cli.py --db ../data/finance.db categorize

# 6. View monthly summary statistics
python cli.py --db ../data/finance.db stats-summary

Account Balances

Bank exports that include a Saldo column (Nordea and ICA both do) are stored per transaction, so the account's actual cash position is available without reconstructing it from running totals.

# Latest known balance for every account
python cli.py --db ../data/finance.db balances

# Balance as of a specific date (end of that day)
python cli.py --db ../data/finance.db balances --date 2026-01-31

How it behaves:

  • Saldo is the balance after the posting, so an account's balance is the one on its most recent balance-carrying row.
  • Pending reservations (Reserverat) carry no balance — the money has not left the account yet — and are skipped.
  • Exports without a Saldo column import normally and leave the balance empty.
  • Re-importing an export fills balances on rows that were stored before balance parsing existed. It only fills empty balances and never overwrites an existing one.
  • Reservations (Reserverat) carry no date of their own. They are imported only from an export that reaches back to today (reservations are stored with the export's date), so replaying an old export cannot create a pending charge dated today.
  • An account with no balance data yet prints n/a rather than an inferred figure.

Data Storage Pattern

User data lives OUTSIDE the skill directory. Recommended structure:

workspace-finance/
├── skills/financial-categorizer/   # Portable skill (shareable)
│   ├── SKILL.md
│   ├── cli.py
│   ├── setup.py
│   └── financial_categorizer/
└── data/                           # Your private data
    ├── finance.db
    └── exports/
        ├── Nordea_Checking.csv
        └── ICA_Shared.csv

The skill provides logic. Your data stays private and portable.

Security & Data Integrity

This tool modifies your local SQLite database. To prevent accidental data loss, please observe the following guidelines:

[!WARNING] Always make a backup of your database before performing database cleanup, auto-linking, or destructive operations:

# Simple file copy backup
cp data/finance.db data/finance.db.bak

# Safe SQLite backup command
sqlite3 data/finance.db ".backup data/finance.db.bak"

Destructive Operations & Confirmation Prompts

Destructive commands require interactive confirmation [y/N] when run in a terminal (TTY). If you are running these commands in automated scripts or non-interactive shells, you must pass the --yes or -y flag to bypass the prompt; otherwise, the command will abort with an error.

The following commands require confirmation:

  • delete-account <id> [--yes]
  • delete-category <id> [--yes] [--reassign <id>] [--force]
  • remove-rule <id> [--yes]
  • unlink <id> [--yes]
  • db-cleanup [--yes] [--dry-run]
  • cleanup-pending [--yes] [--dry-run] [--force-id <id>...]
  • remove-transfer-rule <id> [--yes]
  • auto-link [--yes] [--dry-run]

CLI Reference

Command Description
import <files> Import bank CSV transactions
accounts List all registered bank accounts
balances [--date <YYYY-MM-DD>] Latest known account balance, parsed from the CSV Saldo column
add-account <name> Create a new bank account
update-account <id> Update account ownership ratio, type, name, etc.
delete-account <id> [--yes] Delete a bank account (requires confirmation or -y)
categories List all categories in tree view
add-category <name> [--associated-account <name_or_id>] Create a new category, optionally associated with an external account
update-category <id> [--associated-account <name_or_id>] Update category parents or fields (use none to clear association)
delete-category <id> [--yes] Delete a category (requires confirmation or -y)
rules [txn_id] List all match rules, or show the matching rule for a specific tr
Полный SKILL.md на ClawHub

Установить financial-categorizer в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл financial-categorizer?

Process bank transaction CSV exports (Nordea, ICA), auto-categorize transactions using configurable rules, manage transaction links, and generate analytical database views.

Как установить скилл financial-categorizer?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл financial-categorizer запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить financial-categorizer с