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.
curl -O https://raw.githubusercontent.com/bex-co/beancount-io/main/.agents/skills/rt-useless-test-pruner/SKILL.mdgit clone --depth 1 https://github.com/bex-co/beancount-ioWrote 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.
[](https://agentmods.dev/skills/bex-co/beancount-io/rt-useless-test-pruner)<a href="https://agentmods.dev/skills/bex-co/beancount-io/rt-useless-test-pruner"><img src="https://agentmods.dev/badge/skills/bex-co/beancount-io/rt-useless-test-pruner/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.
<a href="https://agentmods.dev/skills/bex-co/beancount-io/rt-useless-test-pruner"><img src="https://agentmods.dev/badge/skills/bex-co/beancount-io/rt-useless-test-pruner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00138 | $0.00738 |
| Opus 5.5 | $0.00055 | $0.00295 |
| Sonnet 5.5 | $0.00028 | $0.00148 |
| Haiku 4.5 | $0.00014 | $0.00074 |
Grade A, and why
rt-useless-test-pruner 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.
How it starts
The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Task: Delete tests that cannot fail
Usage: /rt-useless-test-pruner [package-or-path]
Find tests that pass no matter what the code does, prove it by sabotaging the
covered behavior and watching them stay green, delete them, 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. Test roots: mobile/src/__tests__/ (run by the
jest-lite runner), dashboard and backend __tests__/ beside features, cli's
pytest suite.
2. Discover
Read test files for the shapes that can't fail:
- No meaningful assertion (only "doesn't throw" on code that can't throw).
- Tautologies — asserting a mock returns the value the test just told it to return.
- Mock-everything tests where the unit under test is itself mocked away.
- Exact or near-exact duplicates of a neighboring test.
3. Prove it — mechanically, every time
For each candidate: temporarily break the behavior the test claims to cover (invert the condition, corrupt the return value), run the test, and observe it still green. Then revert the sabotage immediately. A test that went red is a real test — leave it and move on. Reading alone is never proof.
4. Fix
Default: delete the test. Replace it with a real assertion only when the intended behavior is unambiguous from the test's own name/context and the replacement is a few lines — otherwise deletion is the honest change.
5. Verify
git diffmust show only test changes — every sabotage fully reverted. This check is part of the finding, not cleanup; a landed sabotage is the worst outcome this routine has.- Owning package's full gate green.
6. Land
Compose /land for this one pruning. Loop within budget.
What NOT to do
- Never delete a test that went red under sabotage, however ugly it looks.
- Never prune a test for being slow, intermittent (
rt-flaky-test-fixer), or attached to code some other routine is deleting. - Never leave sabotage in the tree — verify the revert with
git diffbefore staging, every time. - Don't batch prunings across files into one landing; each finding stays reviewable on its own.
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.
- yesterday First seen · 85 lines · 138 tokens per session scan A d56f63690fd2
rt-useless-test-pruner is a skill published in the GitHub repository bex-co/beancount-io (808 stars, last pushed yesterday), licensed MIT. It adds 138 tokens to every session and 738 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.
rt-useless-test-pruner compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rt-useless-test-prunerbex-co/beancount-io | Skill | 808 | yesterday | MIT | A | 138 | Claude Code |
| bookkeepingericrisco/rsc-harness | Skill | 695 | yesterday | MIT | A | 84 | Claude Code, Codex |
| rledgerrustledger/rustledger | Skill | 442 | today | GPL-3.0 | A | 117 | Claude Code, Codex |
| countbean-accountingCPUtester5465/countbean-plugin | Skill | 21 | 1mo ago | MIT | A | 54 | Claude Code |
| ledger-revieweternal-roman/ledger | Skill | 1 | 3d ago | MIT | A | 42 | Claude Code |
| full-engagement-pipelinecynco-labs/ai-accounting-skills | Skill | 6 | 4mo ago | MIT | A | 56 | Claude Code |
| smart-intakecynco-labs/ai-accounting-skills | Skill | 6 | 4mo ago | MIT | A | 47 | Claude Code |