Borrowing it
Nothing to install: this file belongs to RuBiCK/ynab-sqlite-export. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/RuBiCK/ynab-sqlite-export/main/.claude/skills/ynab-db/SKILL.mdgit clone --depth 1 https://github.com/RuBiCK/ynab-sqlite-exportWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/rubick/ynab-sqlite-export/ynab-db)<a href="https://agentmods.dev/skills/rubick/ynab-sqlite-export/ynab-db"><img src="https://agentmods.dev/badge/skills/rubick/ynab-sqlite-export/ynab-db/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/rubick/ynab-sqlite-export/ynab-db"><img src="https://agentmods.dev/badge/skills/rubick/ynab-sqlite-export/ynab-db.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00061 | $0.01021 |
| Opus 5.5 | $0.00024 | $0.00408 |
| Sonnet 5.5 | $0.00012 | $0.00204 |
| Haiku 4.5 | $0.00006 | $0.00102 |
Grade A, and why
ynab-db scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Querying ynab.db
A local SQLite export of a YNAB account, produced by ynab_to_sqlite.py.
Refresh it anytime with python3 ynab_to_sqlite.py (incremental, cheap);
check staleness first: SELECT MAX(updated_at) FROM sync_state;
Schema in one look
budgets(id, name, last_modified_on, first_month, last_month, currency_iso, currency_symbol)
accounts(id, budget_id, name, type, on_budget, closed, balance, cleared_balance, uncleared_balance, last_reconciled_at, deleted)
category_groups(id, budget_id, name, hidden, deleted)
categories(id, budget_id, category_group_id, name, hidden, budgeted, activity, balance, goal_type, deleted)
payees(id, budget_id, name, transfer_account_id, deleted)
transactions(id, budget_id, account_id, date, amount, memo, cleared, approved, flag_color, payee_id, category_id, transfer_account_id, import_id, deleted)
subtransactions(id, transaction_id, amount, memo, payee_id, category_id, deleted)
sync_state(budget_id, resource, server_knowledge, updated_at) -- internal, ignore for analysis
Rules that prevent wrong answers
- Always filter
deleted = 0. Deletions are soft — deleted rows stay in every table withdeleted = 1. Skipping this inflates all totals. - Always scope by
budget_id(or JOIN budgets and GROUP BY). One account often has several budgets; mixing them produces nonsense. List them first:SELECT id, name, currency_iso FROM budgets; - Exclude transfers from income/spending math. A transfer between
the user's own accounts has
transfer_account_id IS NOT NULLand is not real income or spending — counting it double-counts money. - Amounts are decimal currency units (already converted from YNAB milliunits): negative = outflow, positive = inflow.
- Income = inflows to the category named
Inflow: Ready to Assign(a real row incategories). Don't treat every positive amount as income — refunds and transfers are also positive. - Splits: a split transaction's own
category_idmay be NULL; its line items live insubtransactions. For per-category accuracy, take categorized rows fromtransactionswhere the id is NOT in subtransactions' parents, plus allsubtransactionsrows. category_id IS NULL+transfer_account_id IS NULL= genuinely uncategorized spending — report it as such rather than dropping it.- Dates are TEXT
YYYY-MM-DD— safe for lexicographic comparison and SQLite date functions (date('now','-3 months'),strftime).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 80 lines · 61 tokens per session scan A 6bdf7e572388
ynab-db is a skill published in the GitHub repository RuBiCK/ynab-sqlite-export (12 stars, last pushed 3mo ago), licensed MIT. It adds 61 tokens to every session and 1,021 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
ynab-db compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ynab-dbRuBiCK/ynab-sqlite-export | Skill | 12 | 3mo ago | MIT | A | 61 | Claude Code |
| sector-rotationHKUDS/Vibe-Trading | Skill | 38k | yesterday | MIT | A | 39 | Claude Code, Codex |
| strategy-pivot-designertradermonty/claude-trading-skills | Skill | 3.7k | today | MIT | A | 28 | Claude Code, Codex |
| twitter-readerhimself65/finance-skills | Skill | 3.5k | 5d ago | MIT | A | 110 | Claude Code |
| energy-procurementhashgraph-online/awesome-codex-plugins | Skill | 1.5k | yesterday | Apache-2.0 | A | 93 | Claude Code, Codex |
| airdrop-hunting-guidenirholas/three.ws | Skill | 271 | yesterday | Apache-2.0 | A | 54 | Claude Code, Codex |
| alpaca-broker-reconciliation-idempotencyalpacahq/alpaca-skills | Skill | 165 | 2d ago | Apache-2.0 | A | 83 | Claude Code, Codex |