/countbean:countbean-accountingfrom countbean
Guides writing correct double-entry Beancount transactions for a Countbean cloud book — account naming, posting balance rules, categorization, and safe ingestion.
Ships in countbean. 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.
None: SKILL.md is the whole skill.
A Countbean book is a Beancount ledger. Every write goes through the MCP server, which runs
bean-check and only commits valid, balancing entries. Your job is to produce correct Beancount
syntax so writes are accepted the first time.
Every account starts with one of these roots. Sign convention matters:
| Root | Normal balance | Goes up when… |
|---|---|---|
Assets | positive (debit) | money comes in (cash, bank, receivables) |
Liabilities | negative (credit) | you owe more (credit card, loans) |
Equity | negative (credit) | opening balances, retained earnings |
Income | negative (credit) | you earn (income is recorded as a negative number) |
Expenses | positive (debit) | you spend |
Accounts are Colon:Separated:Title-Case, each segment starting with a capital letter or digit,
e.g. Assets:Checking, Expenses:Food:Groceries, Income:Consulting, Liabilities:Visa.
Each transaction has ≥2 postings that net to zero. You can leave one posting's amount blank and Beancount infers it.
2026-08-01 * "Blue Bottle" "Oat latte"
Expenses:Coffee 6.50 USD
Assets:Checking -6.50 USD
Income example — note the negative on the Income leg:
2026-08-01 * "Stripe" "Invoice #204"
Assets:Checking 1800.00 USD
Income:Consulting ; inferred as -1800.00 USD
Paying a credit card (transfer between two of your accounts, no income/expense):
2026-08-02 * "Payment — Visa"
Liabilities:Visa 300.00 USD
Assets:Checking -300.00 USD
* = cleared/confirmed. Use for anything you're sure about.! = pending/needs review. Use when a category is a guess or a match is uncertain — this surfaces
it in Fava and in reports instead of silently guessing wrong.Open an account before it's first used (the server routes open directives automatically):
2026-01-01 open Assets:Checking USD
2026-01-01 open Expenses:Software USD
Set a starting balance with a pad + balance against Equity, or an explicit opening transaction
against Equity:Opening-Balances:
2026-01-01 * "Opening balance"
Assets:Checking 9417.30 USD
Equity:Opening-Balances
A CSV, OFX or QFX goes through propose_transactions, not through you. Base64 the bytes (or
pass the statement_id you were given), name the account, and it returns a summary: the column
mapping it detected — which column was the amount, which date format, and which way a positive
number points, checked against the running balance when there is one — plus counts, what it
flagged, and each distinct payee once, under a proposal_id. It never writes. Choose an account
per payee and write it with commit_proposal; never re-type the rows into add_transactions.
Reading the file yourself gets a different answer on a different day; the tool does not. Only a
PDF, a QIF, a receipt photo or a spoken description needs you to extract the rows by hand.
Either way:
Assets:Checking for a bank export,
Liabilities:Visa for a card). Every row has that account as one leg. propose_transactions
requires it as an argument for the same reason: nothing in the file says which account it is.Expenses:* accountIncome:* account (or a transfer)Liabilities:Visa (positive) and hits Expenses:*list_accounts); only open new ones when genuinely needed. Keep the
category tree shallow and consistent (Expenses:Food, not five near-duplicates).! anything you can't confidently categorise; never fabricate rows not in the source.import-id: metadata line on each if you have one.
commit_proposal writes it for you — it is what makes re-importing the same statement book
it once instead of twice, and stripping it is silent: nothing fails until the customer has two
of everything.Amounts always carry a currency: 12.00 USD, 9.50 EUR. For a foreign purchase paid from a USD
account, record the price:
2026-08-03 * "Hotel Berlin"
Expenses:Travel 100.00 EUR @ 1.08 USD
Assets:Checking -108.00 USD
Currencies with no minor unit — VND, JPY, KRW, IDR. Their amounts are whole numbers, so a converted amount almost never lands exactly. Write the rate exactly as the source gives it (every digit on the bank line or invoice), and the account amount the bank actually posted:
2026-08-04 * "Acme" "Invoice 204"
Assets:Bank:VCB 85963610 VND
Income:Sales -3396.63 USD @ 25308.5 VND
3396.63 × 25308.5 is 85,963,610.355, so the book adds Expenses:Rounding 0.355 VND to the
entry itself and says so in the commit message — tell the user, don't redo it. When the source
gives a total rather than a rate, use @@ with that total instead (3.00 GBP @@ 100000 VND).
Never round the rate yourself. A rate cut to two decimals (@ 32247.33 for 32247.3779)
misses by tens of dong, which is a wrong number rather than a rounding, and the write is refused
with "does not balance". Go back to the source for the exact rate, or use @@ with the total.
list_accounts, get_ledger, balances, run_query — read before you write.open_accounts, add_transactions, add_directives, commit_proposal — writes; each validates + commits.REJECTED, read the bean-check error, fix the entry (usually an unbalanced
posting or an unopened account), and retry.run_query uses BQL, e.g. SELECT account, sum(position) WHERE account ~ 'Expenses:Food' GROUP BY account.Keep every entry something the user would recognise on their statement. When in doubt, ask or flag — never guess at real money.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cputester5465/countbean-plugin --plugin countbeanOther plugins' skills for the same job