beancount-io: Skill for Claude Code

.agents/skills/rt-flaky-test-fixer/SKILL.md

rt-flaky-test-fixer is a skill for Claude Code from bex-co/beancount-io. It costs 143 tokens per session (978 once invoked), scanned A, original, MIT.

A maintenance routine for fixing flaky tests, which are tests that pass and fail without a relevant code change. It uses continuous-integration history, repeated local runs, and cause analysis to address issues such as timing, cleanup, ordering, or unfinished asynchronous work.

In plain words
What is it for?
Use it to investigate unstable CI tests, reproduce the failure, correct its real cause, and check that repeated runs remain green.
Why use it?
Intermittent failures waste investigation time and make it difficult to tell whether a change is genuinely broken. Fixing the underlying nondeterminism makes test results dependable.

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-flaky-test-fixer/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-flaky-test-fixer

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bex-co/beancount-io/rt-flaky-test-fixer"><img src="https://agentmods.dev/badge/skills/bex-co/beancount-io/rt-flaky-test-fixer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 143 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 978 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.00143 $0.00978
Opus 5.5 $0.00057 $0.00391
Sonnet 5.5 $0.00029 $0.00196
Haiku 4.5 $0.00014 $0.00098

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

Security

Grade A, and why

rt-flaky-test-fixer 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-flaky-test-fixer/SKILL.md · 97 lines

How it starts

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

Task: Root-cause flaky CI tests and make them deterministic

Usage: /rt-flaky-test-fixer [package-or-path]

Find a test that sometimes fails, reproduce or root-cause the nondeterminism, fix the real cause, prove determinism with repeated runs, 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. A test that is consistently red on main is the degenerate case and jumps the queue — fix or escalate it first.

2. Discover

Mine CI history on the path-filtered workflows:

gh run list --workflow=ci.yml --branch main --limit 50            # mobile
gh run list --workflow=ci-dashboard.yml --branch main --limit 50
gh run list --workflow=ci-cli.yml --branch main --limit 50
gh run list --workflow=ci-skills.yml --branch main --limit 50
gh run list --workflow=ci-backend-parity.yml --branch main --limit 50  # backend-v2
gh run list --workflow=ci-ledger.yml --branch main --limit 50          # ledger

Flake signals: the same commit red then green on rerun; failures whose job logs (gh run view <id> --log-failed) show different tests failing across runs. Locally: rerun the owning suite — or the suspect file — 20–30 times (mobile via yarn test:unit, the bespoke mobile/scripts/jest-lite-runner.js; dashboard via Vitest (yarn test); backend-v2 and ledger via Jest (yarn test); cli via pytest), with shuffled order where the runner supports it.

3. Prove it

Either a local reproduction, or an unambiguous root cause read from the logs and code. The usual suspects: real timers and wall-clock time, missing teardown (handles, listeners, temp files — the dashboard OTP-teardown fix is the house example), shared state and test-order dependence, port/tmp-path collisions, unawaited promises, network reliance, unseeded randomness. Name the mechanism before touching the test.

Read the full file on GitHub · 97 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 · 97 lines · 143 tokens per session scan A 0ff72ea7157b

Subscribe to this mod's changes

rt-flaky-test-fixer is a skill published in the GitHub repository bex-co/beancount-io (808 stars, last pushed yesterday), licensed MIT. It adds 143 tokens to every session and 978 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-flaky-test-fixer compared with skills from other repositories

rt-flaky-test-fixer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rt-flaky-test-fixerbex-co/beancount-ioSkill808yesterdayMITA143Claude Code
bookkeepingericrisco/rsc-harnessSkill695yesterdayMITA84Claude Code, Codex
test-hang-watchdogniki914/zafiroSkill4064d agoMITA66Claude Code, Codex
rledgerrustledger/rustledgerSkill442todayGPL-3.0A117Claude Code, Codex
countbean-accountingCPUtester5465/countbean-pluginSkill211mo agoMITA54Claude Code
full-engagement-pipelinecynco-labs/ai-accounting-skillsSkill64mo agoMITA56Claude Code
smart-intakecynco-labs/ai-accounting-skillsSkill64mo agoMITA47Claude Code