beancount-trade

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

A bookkeeping helper for recording investments in a local Beancount ledger. It handles events such as buying or selling shares, receiving dividends, exchanging crypto, stock splits, and investment-plan vesting while preserving the lots and costs involved.

In plain words
What is it for?
Use it to record stock, fund, and crypto trades, dividends, staking or airdrop receipts, transfers, splits, and RSU or ESPP vesting events.
Why use it?
Investment entries can use the wrong purchase cost, match a sale to the wrong holding, or calculate gains incorrectly. It shows the proposed lot and cost treatment and validates the result before writing it after approval.

Skill for Claude Code

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

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

Good fit Use it to record stock, fund, and crypto trades, dividends, staking or airdrop receipts, transfers, splits, and RSU or ESPP vesting events.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bex-co/beancount-io/beancount-trade
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bex-co/beancount-io --skill beancount-trade
Clone the repo
git clone --depth 1 https://github.com/bex-co/beancount-io

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-trade

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bex-co/beancount-io/beancount-trade"><img src="https://agentmods.dev/badge/skills/bex-co/beancount-io/beancount-trade.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 157 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,641 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.00157 $0.04641
Opus 5.5 $0.00063 $0.01856
Sonnet 5.5 $0.00031 $0.00928
Haiku 4.5 $0.00016 $0.00464

Measured 2d ago against content hash 880b6d2938d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

beancount-trade 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 2d 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.

skills/beancount-trade/SKILL.md · 160 lines

How it starts

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

beancount-trade

Part of the Beancount.io ledger skill suite.

Record an investment event the user describes — a buy, a sell, a dividend, a split, a transfer, a vest — as exact entries with the right lots and cost basis, proposed first and written only after a yes.

This skill exists because a trade is easy to book in a way that balances today and lies forever after: a lot at the wrong cost, a gain typed in by hand, a sell matched against a lot the user never chose, a split that silently changes total cost. The skill makes the lot, the cost, and the booking-produced gain visible before anything is written, and lets bea validate the result against the whole 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, including its Options and investment lots section. Without bea, use beancount-init's references/compatibility.md.

Write every approved event through the shared transaction recipe (bea add transaction, repeating --posting per leg) or, for a batch of explicit-cost events, the shared batch recipe: they carry cost lots ({...}), total costs ({{...}}), and @/@@ prices, and refuse an entry that would break the ledger. The skill owns interpretation, lot selection with the user, and confirmation.

Scope

Does: described investment events — one, or a batch the user describes together (a paycheck cycle of buys) — buy, sell, a crypto-to-crypto swap, cash or reinvested dividend, staking and airdrop receipts, split, transfer between the user's own accounts, RSU/ESPP vest — for stocks, funds, and crypto, appended to an existing file the root ledger includes. Also reports a year's realized gains read-only (references/realized-gains.md): every closed lot with its holding period, tied out against the booked gains.

Read the full file on GitHub · 160 lines

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. 2d ago First seen · 160 lines · 157 tokens per session scan A 880b6d2938d8

Subscribe to this mod's changes

beancount-trade is a skill published in the GitHub repository bex-co/beancount-io (808 stars, last pushed yesterday), licensed MIT. It adds 157 tokens to every session and 4,641 once invoked, about $0.0006 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-trade compared with skills from other repositories

beancount-trade next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
beancount-tradebex-co/beancount-ioSkill808yesterdayMITA157Claude 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