beancount-io: Skill for Claude Code

.agents/skills/rt-dup-unifier/SKILL.md

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

A maintenance routine for finding duplicate implementations of the same logic inside one monorepo package. It keeps one copy, updates its callers, and removes the others after checking whether the copies have drifted apart.

In plain words
What is it for?
Use it to merge repeated helpers, validation, formatting, or other logic within a package and verify which version should remain.
Why use it?
Duplicated logic can receive different fixes and produce inconsistent behavior. Consolidating it gives future edits one place to change.

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-dup-unifier/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-dup-unifier

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bex-co/beancount-io/rt-dup-unifier"><img src="https://agentmods.dev/badge/skills/bex-co/beancount-io/rt-dup-unifier.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 1,253 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.01253
Opus 5.5 $0.00054 $0.00501
Sonnet 5.5 $0.00027 $0.00251
Haiku 4.5 $0.00014 $0.00125

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

Security

Grade A, and why

rt-dup-unifier 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-dup-unifier/SKILL.md · 110 lines

How it starts

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

Task: Merge duplicated implementations into one

Usage: /rt-dup-unifier [package-or-path]

Find two (or more) live copies of the same logic inside one package. Copies that have drifted apart are the finding this routine exists for: prove which side is wrong, fix it, and leave one copy. Copies that are still the same are merged when a missed edit to one of them would be a bug. Either way keep the best one, repoint all callers, delete the rest, 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. Duplication is a within-one-package concern here; never widen scope mid-run.

2. Discover

Agent-driven search — Grep for repeated names, similar signatures, and shared distinctive string literals (error messages, format strings, regexes); read sibling directories that grew in parallel (helpers/utils files, per-screen copies of formatting or validation logic). Optional accelerator with no new dependency: npx --yes jscpd --min-tokens 50 <pkg>/src --output .internal/jscpd/ (output stays in the gitignored repo-root .internal/).

3. Prove it

  • Read every copy end to end — name similarity is not proof — and diff them.
  • Copies that differ are the best finding, not a reason to skip. Either the difference is deliberate (say why, and skip) or the copies drifted: one gained a fix, a guard or a case the other never did. That is usually a live bug — an export with its own serializer that missed the escaping the shared one gained; two modules registering the same global name, where the last to load wins. Write the test that fails on the stale copy, then unify onto the correct behavior and land it as a fix. The contract's rule for a proven bug applies: fix it here, do not hand it to rt-logic-bugfixer.
  • Copies that are identical must clear the contract's value bar: they have to change together, and a missed edit would be a bug (a retry or idempotency rule, a validation, a parser). A parameter that covers a trivial difference is fine when the survivor stays simpler than the sum of the copies.
  • The intended survivor is test-covered for the behavior all callers rely on; if not, write those tests first (they are part of the finding).

Read the full file on GitHub · 110 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 · 110 lines · 136 tokens per session scan A bf9063dde1cf

Subscribe to this mod's changes

rt-dup-unifier 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 1,253 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-dup-unifier compared with skills from other repositories

rt-dup-unifier next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rt-dup-unifierbex-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