beancount-io: Skill for Claude Code

.agents/skills/rt-logic-simplifier/SKILL.md

rt-logic-simplifier is a skill for Claude Code from bex-co/beancount-io. It costs 136 tokens per session (919 once invoked), scanned A, original, MIT.

A maintenance routine for making complicated business logic easier to read without changing what it does. It adds tests to pin current behavior, then rewrites one convoluted function or small group of functions more clearly.

In plain words
What is it for?
Use it to simplify frequently changed logic involving parsing, decisions, formatting, or repeated calculations.
Why use it?
Deep nesting, long condition chains, and mixed responsibilities make bugs harder to spot and changes riskier. Tests provide evidence that the cleanup preserved behavior.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: installed under .agents/ (shared by several agents).

This is bex-co/beancount-io's own configuration. It tells Claude Code how to work on beancount-io itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything beancount-io configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bex-co/beancount-io. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bex-co/beancount-io/main/.agents/skills/rt-logic-simplifier/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/bex-co/beancount-io

Made for: Claude Code.

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 rt-logic-simplifier

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bex-co/beancount-io/rt-logic-simplifier"><img src="https://agentmods.dev/badge/skills/bex-co/beancount-io/rt-logic-simplifier.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 136 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 919 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.00136 $0.00919
Opus 5.5 $0.00054 $0.00368
Sonnet 5.5 $0.00027 $0.00184
Haiku 4.5 $0.00014 $0.00092

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

Security

Grade A, and why

rt-logic-simplifier 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.

.agents/skills/rt-logic-simplifier/SKILL.md · 100 lines

How it starts

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

Task: Simplify convoluted business logic, behavior-preserving

Usage: /rt-logic-simplifier [package-or-path]

Pick one genuinely convoluted unit, pin its current behavior with tests, rewrite it in place so it reads simply, prove nothing changed, and land via /land.

Contract

Read .agents/skills/rt-shared/contract.md first — preconditions, scope resolution, verify gates, land protocol, budget, universal STOPs. Floor even without it: never land red; one finding per landing; anything in a DO_NOT_DO.md is a hard STOP.

Workflow

1. Scope

Resolve scope per the contract.

2. Discover

Find hotspots worth the risk:

  • git log --oneline -- <pkg> — files that keep appearing in fix: commits; churn is where convolution costs the most.
  • Read for the smells: nesting past ~3 levels, long boolean chains, one function interleaving parsing + decision + formatting, repeated re-derivation of the same intermediate value.

Pick one unit (a function or a small cluster). Convoluted-but-working code nobody touches does not clear the contract's value bar; convoluted code with churn does.

While reading it, look for the bug its shape hides; that is worth more than the tidy-up. The shapes that hide one: state derived twice that can disagree, a default branch that silently takes cases nobody listed, a caller's condition re-derived slightly differently, lists that must agree but are written out more than once, a value copied after the step that changes it.

3. Prove it (pin first)

  • Existing tests must cover the unit's observable behavior, or you write pinning tests first — inputs/outputs as they are today, including the weird edges.
  • If the behavior cannot be safely pinned (nondeterminism, giant I/O surface), skip the finding — an unpinned simplification is a gamble, not maintenance.

4. Fix

Simplify in place: flatten nesting with early returns, name the intermediate values, split interleaved concerns into local helpers. Introduce no new abstractions — no new interfaces, layers, or files unless splitting one oversized file is itself the simplification. Zero behavior change, byte for byte where observable.

Read the full file on GitHub · 100 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. yesterday First seen · 100 lines · 136 tokens per session scan A 54fba645282c

Subscribe to this mod's changes

rt-logic-simplifier is a skill published in the GitHub repository bex-co/beancount-io (808 stars, last pushed yesterday), licensed MIT. It adds 136 tokens to every session and 919 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

rt-logic-simplifier compared with skills from other repositories

rt-logic-simplifier next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rt-logic-simplifierbex-co/beancount-ioSkill808yesterdayMITA136Claude Code
bookkeepingericrisco/rsc-harnessSkill695yesterdayMITA84Claude Code, Codex
rledgerrustledger/rustledgerSkill442todayGPL-3.0A117Claude Code, Codex
countbean-accountingCPUtester5465/countbean-pluginSkill211mo agoMITA54Claude Code
ledger-revieweternal-roman/ledgerSkill13d agoMITA42Claude Code
full-engagement-pipelinecynco-labs/ai-accounting-skillsSkill64mo agoMITA56Claude Code
smart-intakecynco-labs/ai-accounting-skillsSkill64mo agoMITA47Claude Code