Closes an accounting period in a local Beancount ledger by reconciling each active account, checking assertions and recurring gaps, reviewing flags, then proposing a commit with period reports. Use for month-end close or wrapping up the books.
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.
Close one month with a fixed, honest checklist — every account either ties out or is explicitly reported as unverified, and the close lands as a git commit whose message is the audit record.
This skill exists because trustworthy books come from ritual, not heroics: the same checks, every month, with nothing silently skipped. Each phase reports its status before the next begins; the final commit encodes the close report so git log reads as a close history.
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 defines explicit root/destination paths, JSON batches, checks, and safe retries. Without bea, use beancount-init's references/compatibility.md. This skill writes nothing itself: reconciliation writes go through beancount-reconcile, and its own output is the report and one commit.
Does: one period (default: the last complete calendar month) across all active accounts; reconciles each account through beancount-reconcile and its confirm gate; produces a close report; makes one confirmed git commit.
Does not: create entries to fill a gap, edit existing entries, force a tie-out, or push. Every unverified account, unpinned assertion, recurring gap, and carried flag appears in the report with its count.
Read references/close-checklist.md before running — it defines each phase's procedure and reportable status.
Seven phases: Scope → Reconcile → Assert → Recurring → Flags → Report → Commit. Announce the phase status line as each completes (e.g. Reconcile: 2 tied, 1 unverified (no statement)).
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).
Resolve the period (the user's words or the last complete month) and state it. Find the root ledger with the suite's discovery convention. Enumerate active accounts: any Assets/Liabilities account with postings in the period or a nonzero balance at period end (bounded by date < <period-end+1>, so later entries don't count). Run bea --file "$ledger" --json --no-input check first. On failure, report Scope as blocked and copy the validator's exact diagnostic line into a fenced text block in the final response; a paraphrase or numbers alone does not replace it. For a failed balance assertion, show the expected balance, actual balance and difference. State both possible causes to the user — missing or misdated entries, or an incorrect assertion — and ask for the statement to investigate which applies.
For each active account, ask for the period statement (CSV, PDF, or pasted text). Per account with a statement, run the beancount-reconcile flow (its own confirm gate applies). Record the account's evidence — the statement file or files, the statement period, the coverage counts from reconcile's Coverage phase (source / included / excluded rows), and the residual — and exactly one state:
If beancount-reconcile is not installed beside this skill (a registry can install one skill alone), say so and point the user to https://github.com/bex-co/beancount-io/blob/main/docs/skills/installation.md to add it. Without it, every account is blocked with that reason — never quietly downgraded to unverified.
An owner or a due date may be attached to a step or an account only when the user supplies them; when they do not, those fields do not appear anywhere in the report.
Every tied account now has a period-end balance assertion (reconcile appends them). Check that each active account has an assertion dated ≥ period end + 1 (the day-after rule — see beancount-reconcile; for 2026-06, on or after 2026-07-01). A balance assertion checks the balance at the start of its date, so one dated on the period's last day leaves out that day's postings and does not pin the period. Accounts without one are unpinned in the report. An assertion that pins only part of the close period (a partly covered account) does not pin the close — the account stays partly covered, not tied.
Find expected-but-missing entries: merchants (payee, or narration when the payee is empty) present in each of the prior 2–3 months with a steady amount but absent this period (query per close-checklist.md). Each gap is a finding for the user ("NETFLIX appeared Apr+May, absent in June — charge missing, subscription cancelled, or card changed?"). This skill never creates an entry on the strength of the pattern alone. When the user confirms the charge really happened ("I did not cancel it" counts), say the charge is missing from the ledger's data and name both routes in the same answer, not just a request for the statement: importing the missing export (beancount-import), or recording the single entry now — and only on their choice of the latter, compose beancount-add's flow inside this session:
transaction recipe and re-run the root check; then refresh the report's figures (the entry lands in the period) and mark the gap recorded at your confirmation in the report instead of open. On no — or when the user would rather import — nothing is written and the gap stays an open finding.beancount-add installed beside this skill; without it, say so (installation guide pointer, as for beancount-reconcile) and keep the gap a finding that names the import/manual route.List every !-flagged entry dated in or before the period. Each is either resolved by the user now (their edit) or carried forward, and counted in the report either way.
Generate the period's numbers with the close-income-statement and close-balance-sheet recipes in references/close-checklist.md, both at book value (-x at_cost) — the valuation the checklist's period-end balances use — so a cost-basis lot counts at cost and an unpriced commodity (an @-priced foreign charge, an option lot) appears in its own units. State that valuation in the report. Expense totals in the operating currency come from beancount-ask's weight recipes (top-expenses counts 300 EUR @ 1.10 USD as the 330 USD paid); without beancount-ask installed, report the two statements only. A report that exits 1 with result.missing_prices is a valuation gap (beancount-init's references/bea-cli.md, Read and check): list the missing prices in the close report. When the ledger holds investments, the period's realized gains per closed lot come from beancount-trade's references/realized-gains.md (from this skill's folder, ../beancount-trade/references/realized-gains.md), tied to the booked gain postings. Period commentary — why a category changed versus the prior period — uses beancount-ask's variance recipe (references/bql-recipes.md section 9 in beancount-ask, from this skill's folder ../beancount-ask/references/bql-recipes.md) under the user's stated threshold policy: the same figures ask would give for the same fixture and period, each driver citing its postings, anything unsupported labelled unresolved. Close never restates a delta without that recipe behind it.
When native-unit book values differ from operating-currency weights, show both and quote the executed per-category weight query with its rows. A combined expense total does not replace the converted category amounts.
Compute deltas, percentages and bridge components with BQL or a local decimal calculation. In the commentary, copy the executed input queries and calculation BQL or complete local calculation command, including its print/output statements and bound values, then show its actual output. Use the actual period dates in those queries rather than unbound placeholders. Each command must run as printed and reproduce the displayed figures; do not abbreviate the computation into a prose formula or a note that Python was used.
Assemble the close report:
Close: 2026-06 (2026-06-01 … 2026-06-30) — 1 tied, 1 not tied
Accounts:
Assets:Bank:Checking — tied (june-checking.csv, 2026-06-01…06-30; coverage 42 source / 42 included / 0 excluded; residual 0.00; ties to 7,874.60)
Liabilities:CreditCard:Amex — unverified (no statement)
Assertions: 1 pinned, 1 unpinned
Recurring gaps: NETFLIX (present Apr, May — absent Jun) Flags carried: 1 (2026-06-21 ! WHOLE FOODS)
Income: 3,000.00 Expenses: 203.60 Net: +2,796.40
check (ledger validity): PASS — the ledger is valid; that alone does not verify this close
Write the check (ledger validity): line exactly as the template shows; a bare "bea check passed" does not replace it.
The headline counts tied accounts only as reconciled and names the not-tied count; the account lines list every account that is not tied with its state. Never call the close "verified", "complete", or "clean" — in the headline, the report, or the commit message — unless every active account is tied over the whole period. This includes qualified labels such as "partially verified"; use the explicit account states and tied/not-tied counts instead. A green check line is ledger validity only.
Re-run bea --file "$ledger" --json --no-input check after all reconciliation writes. A red check blocks the commit proposal. When it passes, show what will be staged (the ledger files the close touched) and the commit message — subject close: <period> — <n> tied, <m> not tied (n counts tied accounts only), body = the close report — and commit only on an explicit yes. On no, leave the working tree exactly as it is; the report stays in the conversation. When the user already said not to commit, in the request or earlier, skip the question: show the message for later use, say the close is left uncommitted for their review, and do not offer to commit again. Pushing stays with the user.
Pass the approved message to git commit --file - on stdin; do not leave a commit-message draft in the workspace. Stage only the approved ledger paths and preserve every other workspace file.
evals/evals.json (opens in a new tab)evals/files/eval12_ledger.beancount (opens in a new tab)evals/files/eval13_ledger.beancount (opens in a new tab)evals/files/eval14_ledger.beancount (opens in a new tab)evals/files/eval1_ledger.beancount (opens in a new tab)evals/files/eval1_statement.csv (opens in a new tab)evals/files/eval5_ledger.beancount (opens in a new tab)evals/files/eval7_ledger.beancount (opens in a new tab)evals/files/eval8_ledger.beancount (opens in a new tab)evals/files/eval8_savings.csv (opens in a new tab)evals/files/eval8_statement.csv (opens in a new tab)evals/files/eval9_ledger.beancount (opens in a new tab)evals/files/eval9_statement.csv (opens in a new tab)references/close-checklist.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
beancount, accounting, month-end-close, reconciliation, ledger
16 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./beancount-askAnswer explicit requests for facts from a local Beancount ledger using shown, reproducible bea queries and reports for spending, trends, net worth, holdings, subscriptions and anomalies. Do not select this skill merely to gather preliminary inputs for buy/sell decisions or tax recommendations, even if ledger facts could help. Strictly read-only; figures come from executed queries. Skip ledgers hosted on Beancount.io, recording transactions (beancount-add), reconciliation, migration, ledger edits, option pricing or greeks, investment or tax advice, and general Beancount, BQL, or `bea` documentation questions (including what `bea ask` does)./beancount-io:beancount-closefrom beancount-io
npx claudepluginhub bex-co/beancount-io --plugin beancount-ioOther plugins' skills for the same job