transaction-syncing
БесплатноБез исполняемых скриптовНе проверенRefresh investment activities and card/bank expenses into family_office.db, then review spending. Investment activities come from the DB transactions table…
Об этом скилле
TransactionSyncing
Refresh financial activity into family_office.db: investment activities (transactions table) and card/bank spending (bank_transactions table), auto-categorized for budget review.
family_office.db is the system of record. The Google Sheets export was retired 2026-07-31.
Step 0: Refresh (sync-first, mandatory)
Both halves read from the local DB, refreshed FIRST so nothing is stale. Follow the shared Sync-First + DB-Read pattern. This skill needs two sources:
uv run python -m src.integrations.snaptrade.sync_transactions_db # investment activities -> transactions
uv run python -m src.integrations.simplefin.sync_expenses_db --months 3 # card/bank spending -> bank_transactions
# or refresh everything at once:
uv run python -m src.integrations.refresh_all --months 3
Completion criterion: both sync commands report success. Do not gate on
MAX(synced_at) advancing: both layers are idempotent and only stamp rows they
actually write, so a run with no new activity leaves the timestamp untouched.
Read the command output instead (N inserted, M updated, K skipped).
⚠️ The two feeds do not run at the same speed
bank_transactions (SimpleFIN) is generally fresher than transactions
(SnapTrade), which lags by days, but freshness is per account: a connected card
can go silent for months (see Stale connections below), so check the account's
own MAX(date) before trusting its cash leg. Verified 2026-08-04: the positions table showed PLTR and TSLA puts
opened on 2026-08-03, while transactions had no row for either buy and its
latest activity date was still 2026-07-31. SnapTrade updated holdings before it
published the activity that created them.
Consequence: never conclude "X did not happen" from an absence in
transactions. A missing row means "not published yet" at least as often as it
means "did not occur". To answer whether something executed:
- Check
positionsfor a holdings change (fastest signal). - Check
bank_transactionsfor the cash leg, which is current. - Only then read
transactions, and treat the tail few days as incomplete.
The same applies to month-boundary reporting: the last several days of any period may still be missing from the investment side.
Direction and sign
bank_transactions.direction is resolved by resolve_direction() in src/integrations/simplefin/sync_expenses_db.py. Explicit feed wording wins over amount sign, because Fidelity's CMA reports inbound payroll with the same negative sign it uses for outflows. amount is signed to match direction, so SUM(amount) is real cash flow: credits positive, debits negative.
⚠️ Household spending lives in THREE streams, in two different tables
A spending review that reads only bank_transactions is wrong. Measured for
July 2026: that table showed well under two thirds of personal spend. The missing 41%
was in the other two streams.
| Stream | Table | July 2026 |
|---|---|---|
| 1. Bank and card accounts (SimpleFIN) | bank_transactions |
59% |
| 2. Brokerage direct debits (SnapTrade) | transactions |
36% |
| 3. Cards paid but not connected | neither, infer from the bill | 5% |
Stream 2 is the one that gets forgotten. The Fidelity brokerage pays the
mortgage, insurance, utilities, phone, tuition, and has a debit card used for
groceries. Those rows are type='WITHDRAWAL' in transactions, not in
bank_transactions at all.
sqlite3 family_office.db \
"SELECT date, description, -amount FROM transactions
WHERE type = 'WITHDRAWAL' AND date LIKE '2026-07%' ORDER BY -amount DESC;"
Categorize those rows with the same categorize_expense(), then separate:
- Household consumption: mortgage, insurance, groceries, utilities, tuition.
- Not consumption:
MARGIN INTEREST(financing cost, report separately), card bill payments, andJOURNALEDinternal moves.
Check for double counting across the two tables by matching amount and date within a couple of days. In July exactly one pair collided ($50 on 7/24) and inspection showed two genuinely separate payments, not a duplicate. Inspect; do not assume either way.
Income totals have the mirror-image problem. Credits into
bank_transactions include transfers between the principal's own accounts, so
summing them overstates income. Net internal movement out before quoting a
surplus.
Spending reviews: count purchases, exclude bill payments, then AUDIT COVERAGE
Count card purchases. Exclude card bill payments. Both are debits, but a
purchase and the payment of that same purchase are one dollar of spending, not
two. Exclude the categories in NON_SPEND_CATEGORIES, and exclude
BUSINESS_CATEGORIES plus the business accounts when the question is household
spending.
That exclusion is only valid if every card that receives a payment also reports its purchases. When a card is paid but not connected, its purchase
Установить transaction-syncing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл transaction-syncing?
Refresh investment activities and card/bank expenses into family_office.db, then review spending. Investment activities come from the DB transactions table (SnapTrade); debit-card and bank spending comes from the DB bank_transactions table (SimpleFIN), auto-categorized. Sync-first so nothing is stale. USE WHEN user mentions "sync transactions", "transaction history", "expense tracker", "categorize spending", OR "update expenses".
Как установить скилл transaction-syncing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл transaction-syncing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic