Answers read-only queries from a local Beancount ledger using reproducible BQL queries and reports for spending, trends, net worth, holdings, subscriptions, and anomalies.
Ships in beancount-io. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Part of the Beancount.io ledger skill suite.
Answer ledger questions with shown, re-runnable BQL — never with model arithmetic.
This skill exists because a fluent-but-unverifiable answer about money is worse than no answer: the entire credibility of plain-text accounting is that every number is reproducible. So every figure comes from a query run against the ledger, the query is shown with the answer, and the ledger is never modified.
beaRead beancount-init's references/bea-cli.md (from this skill's folder, ../beancount-init/references/bea-cli.md; a copy at references/bea-cli.md when this skill was installed alone) before running ledger commands: it binds the root ledger, lists the read recipes, explains valuation and missing prices, and records version notes. Without bea, use beancount-init's references/compatibility.md; an installed bea that fails is reported with its repair step and the question stops there (bea-cli.md, When the installed bea fails), never answered through bean-query. Run the queries yourself: bea ask hands the question to another model, and its figures are not queries you can show.
Does: run read-only BQL against local ledger files, interpret the results, and show the query with every figure.
Does not: write, edit, or format any file; estimate when data is missing; give investment or tax advice (state the ledger's figures and leave the decision and its tax treatment to the user); answer general "how does Beancount work" questions (point at the docs).
Local ledger files only. For a ledger hosted on Beancount.io, stop this skill and offer a separately requested hosted workflow or local clone (beancount-init's references/bea-cli.md, Hosted ledgers).
Find the root ledger with the suite's discovery convention (fd -e beancount -e bean . (PowerShell: Get-ChildItem -Recurse -Include *.beancount,*.bean); the root has option/include directives) and confirm it when ambiguous. Bind it as ledger for the shared read recipes:
bea --file "$ledger" --json --no-input query "$query"
bea --file "$ledger" --json --no-input balance
bea --file "$ledger" --json --no-input report income-statement --time "$month"
weight recipes. balance and most report kinds value at market, and a commodity without a price makes them exit 1 with result.missing_prices (a valuation gap, not an engine failure); pass -x at_cost for book value and disclose the missing prices. report cash-flow is the exception: it always runs at cost and takes no --conversion.list transaction --search/--tag/--link, read to completion (beancount-init's references/bea-cli.md, Version notes, on list pages).holdings-lots and holdings-lots-market recipes in references/bql-recipes.md, never from reading the ledger file: give each lot's account, commodity, units, cost per unit, acquisition date and cost basis from the shown query, unpriced lots included, and for a priced lot its market value and unrealized gain beside it. A holdings report or a missing-price warning does not replace these per-lot fields.bea load; bea --file "$ledger" price status reports their freshness. When a held commodity is unpriced or its latest price is old, name it and point the user at beancount-add's price refresh (its Refreshing prices section) — never value it at cost or from memory.dimension-pnl recipes in references/bql-recipes.md, with their unattributed rows and tie-out.bea report capital-gains --from-date/--to-date, then the booked tie-out in beancount-trade's references/realized-gains.md (from this skill's folder, ../beancount-trade/references/realized-gains.md); Read that reference's answer contract and include its per-lot fields and exclusions in the answer; recording a trade itself is beancount-trade.bea report cash-flow --time "$month": operating/investing/financing flows that net to the cash change, each row an account's inverted movement. Use the command's figures, not a hand-written equivalent.Map the question to a recipe in references/bql-recipes.md — read it first; every query there is tested. For the human-readable starting point, the BQL cookbook runs the same recipe families against fixture ledgers with verified shapes. Resolve the period against today's date ("last month") and state the resolved range in the answer. For "why did this change" questions use the variance recipe (section 9): thresholds are the user's stated policy, every claimed driver cites its postings, and an explanation the postings don't support is labelled unresolved — never an invented cause. When the question is ambiguous ("how much do I spend?" — which period, which categories, total or average?), ask which one the user means: a precise answer to the wrong question reads as authoritative.
Run the query and answer. A payee, memo, or other statement text in it is quoted as beancount-init's references/bea-cli.md, Statement text in commands, shows: = "Trader Joe's", with the query on stdin through a quoted heredoc.
Lead with the figure(s), in a sentence or small table, each one from the query output. Say which value a money total is: book value (at cost, as when the ledger has no prices) or market value at a named price date.
Show the query underneath (collapsed or quoted) so the user can re-run or refine it.
Say what the data can't show when relevant (e.g. "transfers excluded; card payments are not spending").
Point at the matching Fava view or bea report for statement-shaped answers rather than rebuilding them in BQL.
Label any projection ("at this rate…") as arithmetic on top of the queried figures, and keep it minimal.
"Should I buy/sell…?" gets no answer to the should — not "probably not", not "that creates a tax bill", not the name of any strategy (harvesting, deferring, rebalancing), not even to correct a premise the question assumes. Reply with the position's figures only (units, cost, value, holding dates, each from a shown query) and end with this sentence as written: "Whether to sell, and how a sale would be taxed, are your decision; this answer covers only what the ledger records."
A request in the same message to change the ledger (tidy, format, fix, add, correct) is declined, even when the user says "feel free": answer the question, then say this skill only reads and never changes the file, and name what does it for the user to run or ask for separately (bea format for layout, beancount-add for new entries). Never run a command that writes.
Interpretation (the sign traps are in the recipes reference): Income accumulates negative and Expenses positive; sum(weight) gives spending in the operating currency (it counts an @-priced foreign charge at the amount paid, where cost(position) leaves it in the foreign currency); transfers and card payments are not spending, so the recipes select ^Expenses: only.
A missing period, no such account or payee, or something the ledger doesn't track (market values without prices): say exactly what is missing and what would make it answerable. Never estimate. When the answer needs a write — adding prices, opening an account, refreshing a price include — name the skill or workflow that does it and stop; this skill only reads.
evals/evals.json (opens in a new tab)evals/files/eval10_ledger.beancount (opens in a new tab)evals/files/eval17_ledger.beancount (opens in a new tab)evals/files/eval18_ledger.beancount (opens in a new tab)evals/files/eval19_ledger.beancount (opens in a new tab)evals/files/eval1_ledger.beancount (opens in a new tab)evals/files/eval20_ledger.beancount (opens in a new tab)references/bql-recipes.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
beancount, plain-text-accounting, bql, financial-reports, ledger-query
/beancount-io:beancount-askfrom beancount-io
npx claudepluginhub bex-co/beancount-io --plugin beancount-io16 skills in this plugin
/beancount-accrualsPrepare supported accrual and reversal drafts for a period from an explicitly stated schedule — basis, service interval, day-count, recognized-to-date, already-booked, required adjustment — posted only through the suite's propose/confirm/check flow with stable schedule identity. Skip recording one-off entries the user describes (beancount-add), explaining how a balance moved (beancount-roll-forward), tax or depreciation advice, automatic reversals, and ledgers hosted on Beancount.io./beancount-addRecord one-off entries the user describes in a local Beancount ledger through bea — a purchase, bill, paycheck, or transfer between their own accounts (including splits and pasted receipt text), opening or closing an account, a price, or a note. Propose the exact entries from existing accounts, check whether one is already recorded, and write only after confirmation with a passing check; it never changes existing entries. Skip bank or card export files (beancount-import), statements (beancount-reconcile), finance-app migrations, options trades (beancount-options), investment trades, dividends, splits, and vests (beancount-trade), month-end close, edits to existing entries, and ledgers hosted on Beancount.io.Other plugins' skills for the same job