beancount-io: Skill for Claude Code

.agents/skills/rt-abstraction-improver/SKILL.md

rt-abstraction-improver is a skill for Claude Code from bex-co/beancount-io. It costs 140 tokens per session (856 once invoked), scanned A, original, MIT.

A maintenance routine for removing unnecessary layers from code in a monorepo package. It inlines interfaces with one implementation, forwarding wrappers, one-option factories, and manager layers that only pass calls through.

In plain words
What is it for?
Use it to simplify one-use abstractions after checking the repository rules, architecture decisions, and documented reasons for keeping them.
Why use it?
Extra layers make code harder to follow without providing a clear choice or extension point. Removing them reduces indirection while preserving behavior.

Skill for Claude Code

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

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-abstraction-improver/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-abstraction-improver

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bex-co/beancount-io/rt-abstraction-improver"><img src="https://agentmods.dev/badge/skills/bex-co/beancount-io/rt-abstraction-improver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 140 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 856 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.00140 $0.00856
Opus 5.5 $0.00056 $0.00342
Sonnet 5.5 $0.00028 $0.00171
Haiku 4.5 $0.00014 $0.00086

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

Security

Grade A, and why

rt-abstraction-improver 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-abstraction-improver/SKILL.md · 96 lines

How it starts

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

Task: Flatten over-engineered abstractions

Usage: /rt-abstraction-improver [package-or-path]

Find a layer of indirection with exactly one thing behind it and no stated reason to exist, inline it, delete the layer, 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

The shapes worth suspecting:

  • Interfaces/abstract classes with exactly one implementation
  • Wrapper functions/modules that only re-export or forward arguments
  • Factories that can only ever produce one product
  • Generics never instantiated with a second type
  • "Manager"/"provider"/"service" layers that purely delegate

3. Prove it

A layer is a finding only when all hold:

  1. Grep confirms exactly one implementation and one usage pattern.
  2. No stated reason for it exists. Check the scoped AGENTS.md, docs/adrs/, and .pm boards. In particular: backend-v2 mandates an I<Name> interface beside every service/workflow class (backend-cluster/backend-v2/AGENTS.md, Dependency and layer rules) — those interfaces are a stated convention, never a finding. Same for seams that exist so tests can double them, when the tests actually do.
  3. No evidence of a planned second implementation.
  4. It costs something (the contract's value bar): a change that has to be made in two places, behavior a reader cannot find without chasing the indirection, or a seam that has let two callers diverge. A one-line alias or a re-export nobody trips over is not a finding.

When two callers reach the same thing through different layers, compare what each ends up doing. A difference is a drift bug: prove it with a failing test and fix it first.

4. Fix

Inline the single thing, delete the layer, call directly. If tests mocked the deleted layer, rewrite them against the concrete unit with real assertions — never leave them asserting a mock of something that no longer exists. Behavior identical.

Read the full file on GitHub · 96 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 · 96 lines · 140 tokens per session scan A 86d8525d73d0

Subscribe to this mod's changes

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

rt-abstraction-improver compared with skills from other repositories

rt-abstraction-improver next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rt-abstraction-improverbex-co/beancount-ioSkill808yesterdayMITA140Claude 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