beancount-options

beancount-options is a skill for Claude Code from bex-co/beancount-io. It costs 122 tokens per session (3,808 once invoked), scanned A, original, MIT.

A bookkeeping helper that turns a described options trade or lifecycle event into Beancount transactions. It covers contracts being opened or closed, rolled, assigned, exercised, or allowed to expire.

In plain words
What is it for?
Use it to record single- or multi-leg options trades, pasted broker confirmations, assignments, exercises, expirations, and rolls in a local ledger.
Why use it?
Options accounting depends on the type of contract event, cost basis, premiums, and whether several legs belong together. Recording these details by hand can produce incorrect gains or holdings, so the entries are proposed for review before being added.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument; built for openclaw.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ;; append_target: ./transactions/2026.beancount.

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

Good fit Use it to record single- or multi-leg options trades, pasted broker confirmations, assignments, exercises, expirations, and rolls in a local 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-options

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bex-co/beancount-io/beancount-options"><img src="https://agentmods.dev/badge/skills/bex-co/beancount-io/beancount-options.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,808 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.00122 $0.03808
Opus 5.5 $0.00049 $0.01523
Sonnet 5.5 $0.00024 $0.00762
Haiku 4.5 $0.00012 $0.00381

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

Security

Grade A, and why

beancount-options 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 4d 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-options/SKILL.md · 293 lines

How it starts

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

beancount-options

Part of the Beancount.io ledger skill suite.

Turn natural-language options descriptions into correct beancount transactions.

This skill exists because options accounting in beancount has subtle mechanics that are easy to get wrong by hand: short-position cost basis lives in negative-quantity holdings, premium becomes part of stock cost basis on assignment, multi-leg trades need link grouping, and the four close paths (close, expire, assign, exercise) produce different P&L treatment. The skill takes a description, infers the strategy and outcome, generates the correct transaction(s), and — only after explicit confirmation — appends them to the user's 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.

Write approved account opens and transactions through bea. Preserve cost basis, inferred postings, tags and links. Use structured JSON batches for explicit lots and the shared native add transaction --posting recipe for {} lot selection or total-cost syntax. Keep the strategy-specific reasoning and confirmation below.

Scope

Does: turn a described options trade or lifecycle event into new transactions, appended to the user's ledger after confirmation and validated through the root check.

Does not: modify or bulk-rewrite existing transactions; touch option, plugin, or include directives; compute wash sales, greeks, P&L curves, or other analytics; import broker statements (a different workflow); record other manual entries (beancount-add); record share, fund, or crypto trades or report realized gains (beancount-trade).

Workflow

Five phases, in order: Discover → Parse → Generate → Confirm + Write → Verify.

Read the full file on GitHub · 293 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. 4d ago First seen · 293 lines · 122 tokens per session scan A f0bafb61bce5

Subscribe to this mod's changes

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

beancount-options next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
beancount-optionsbex-co/beancount-ioSkill807todayMITA122Claude Code
bookkeepingericrisco/rsc-harnessSkill7072d agoMITA84Claude Code, Codex
rledgerrustledger/rustledgerSkill444todayGPL-3.0A117Claude Code, Codex
countbean-accountingCPUtester5465/countbean-pluginSkill212mo 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