beancount-import

beancount-import is a skill for Claude Code from bex-co/beancount-io. It costs 218 tokens per session (4,864 once invoked), scanned A, original, MIT.

A tool for turning bank or card exports into categorized entries in a local Beancount ledger. Beancount is a plain-text bookkeeping system, and the entries are staged for approval before being written.

In plain words
What is it for?
Use it to import bank or card statements, including PDF-only statements, while checking for duplicates and using accounts already present in the ledger.
Why use it?
It reduces sign errors, duplicate imports, and guessed account categories when adding transactions from CSV, OFX, QFX, QIF, or PDF statements.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: built for openclaw.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ;; rules: ./import-rules/chase-checking.toml.

Part of the beancount-io plugin — 16 skills shipped together

Good fit Use it to import bank or card statements, including PDF-only statements, while checking for duplicates and using accounts already present in the ledger.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/bex-co/beancount-io
agentmods
npx agentmods add skills/bex-co/beancount-io/beancount-import

Made for: Claude Code.

Or install beancount-io, the plugin that ships this one along with the rest of its 16 skills.

Wrote 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.

agentmods badge for beancount-import

README.md
[![agentmods](https://agentmods.dev/badge/skills/bex-co/beancount-io/beancount-import/github.svg)](https://agentmods.dev/skills/bex-co/beancount-io/beancount-import)
Your own site
<a href="https://agentmods.dev/skills/bex-co/beancount-io/beancount-import"><img src="https://agentmods.dev/badge/skills/bex-co/beancount-io/beancount-import/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.

agentmods 80×15 button for beancount-import

Your own site · 80×15
<a href="https://agentmods.dev/skills/bex-co/beancount-io/beancount-import"><img src="https://agentmods.dev/badge/skills/bex-co/beancount-io/beancount-import.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 218 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,864 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00218 $0.04864
Opus 5.5 $0.00087 $0.01946
Sonnet 5.5 $0.00044 $0.00973
Haiku 4.5 $0.00022 $0.00486

Measured yesterday against content hash 625f77839dbe, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

beancount-import 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 yesterday.

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.

skills/beancount-import/SKILL.md · 256 lines

How it starts

The opening of the file, as written. The whole thing — 256 lines — stays where its author put it; the contents beside it link to each section on GitHub.

beancount-import

Part of the Beancount.io ledger skill suite.

Turn a bank/card export file into categorized, deduplicated ledger entries — staged first, written only after explicit confirmation, idempotent on re-import.

This skill exists because the weekly export-to-ledger chore has three silent failure modes: a flipped sign convention corrupts every amount, a re-imported file double-books everything, and a guessed category buries mistakes the user won't find until tax time. The skill defuses all three the same way: it never guesses (ask once, persist the answer), it stamps every entry with an import-id so re-imports are no-ops, and it only ever suggests accounts that already exist in the ledger.

Prefer bea

Read 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.

  • CSV the mapper can represent: read references/bea-import.md. Pass the confirmed sign, mapping, account, rules and destination on every preview and apply. Keep rules in the ledger repository after confirmation. Run the additional ±3-day manual-entry duplicate review; CLI duplicate detection alone does not cover it.
  • OFX/QFX: run bea import with --ofx (flag-free .ofx/.qfx files and OFX content under any suffix auto-detect; the beangulp requirement is in beancount-init's references/bea-cli.md, Version notes). Confirm the account and rules once; bea remembers them per ACCTID and replays them on repeat imports. Run the additional ±3-day manual-entry duplicate review; CLI duplicate detection alone does not cover it.
  • QIF or unsupported CSV semantics: run the normalization, dedup, suggestion and confirmation stages below, then use the shared JSON batch recipe, preserving import-id and flags. This also handles mixed per-row duplicate decisions that a single --duplicates policy cannot express.
  • PDF statement (no machine-readable export): extract the rows yourself following beancount-reconcile's references/statement-formats.md (../beancount-reconcile/references/statement-formats.md from this skill's folder) — the extraction is shared, not copied — then run the same stages and JSON batch write, with the sanity walk as a gate and a closing balance assertion as the success condition (see PDF statements under Normalize and Write + Verify).
  • Tested Beangulp workflows: enable with bea engine enable beangulp (system-library needs are in beancount-init's references/bea-cli.md, Version notes), then bea ingest identify|extract|archive with the actual runner supplied via --config. Ordinary CSV needs no Beangulp.

Read the full file on GitHub · 256 lines

Files

What ships with it

56 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. yesterday Changed · +8 lines 625f77839dbe
  2. 2d ago First seen · 248 lines · 218 tokens per session scan A 5c663e3caa91

Subscribe to this mod's changes

beancount-import is a skill published in the GitHub repository bex-co/beancount-io (808 stars, last pushed yesterday), licensed MIT. It adds 218 tokens to every session and 4,864 once invoked, about $0.0009 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-12-01.

Related

beancount-import compared with skills from other repositories

beancount-import next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
beancount-importbex-co/beancount-ioSkill808yesterdayMITA218Claude Code
bookkeepingericrisco/rsc-harnessSkill707yesterdayMITA84Claude Code, Codex
rledgerrustledger/rustledgerSkill445todayGPL-3.0A117Claude Code, Codex
countbean-accountingCPUtester5465/countbean-pluginSkill211mo agoMITA54Claude Code
smart-intakecynco-labs/ai-accounting-skillsSkill64mo agoMITA47Claude Code
classify-transactionscynco-labs/ai-accounting-skillsSkill64mo agoMITA55Claude Code
full-engagement-pipelinecynco-labs/ai-accounting-skillsSkill64mo agoMITA56Claude Code