beancount-io: Skill for Claude Code

.agents/skills/loopx/SKILL.md

loopx is a skill for Claude Code from bex-co/beancount-io. It costs 112 tokens per session (6,447 once invoked), scanned C, original, MIT.

A workstream runner that repeatedly gives pending project-board items to fresh-context workers, checks their results, and handles scheduled work. A workstream is a named queue of related tasks.

In plain words
What is it for?
Use it to drain milestones and inbox notes, run due routines, fix CI failures caused by its own changes, and optionally stop after the queue is empty.
Why use it?
It removes the manual work of choosing the next queue item, checking whether it was completed, and watching for new work.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions subagents; mentions Claude Code; 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 →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/loopx-guard.py board <wN>.

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/loopx/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 loopx

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bex-co/beancount-io/loopx"><img src="https://agentmods.dev/badge/skills/bex-co/beancount-io/loopx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,447 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00112 $0.06447
Opus 5.5 $0.00045 $0.02579
Sonnet 5.5 $0.00022 $0.01289
Haiku 4.5 $0.00011 $0.00645

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

Security

Grade C, and why

loopx scanned grade C with 1 finding 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

3. `stalled`, or no answer to that follow-up: stop the worker (TaskStop). It almost always waited on an approval prompt. Keep any leftovers in a named stash (`git stash push -u -m "loopx/<wN>/<id>"`), then run `dispatch`
.agents/skills/loopx/SKILL.md · 222 lines

How it starts

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

Task: Drain a .pm workstream, then listen for more

Usage: /loopx <wN> [--no-listen]

/loopx <wN> repeats one cycle until an exit: pick the next actionable pending item in workstream <wN>, hand it to a worker with a fresh context, verify the outcome it claims against origin/main, and continue. An item is a pending milestone (with all of its tasks) or an open inbox note. When nothing is actionable, the loop does not end. Next it runs any due routine from the workstream's schedule, returning to the board after each one. When no routine is due, it listens: a background process polls origin/main with exponential backoff, costs no model tokens, and wakes the loop when new items land or when the next routine is due. After 24 idle hours with no routine scheduled it stops. With --no-listen, drained means done. Before every pick it also checks whether one of its own pushes turned CI red, and fixes that first.

This session is the orchestrator. It owns the queue, the guard, the listener, and the verification. It does not read code or implement anything. Every item's triage, implementation, /pm moves, and /land belong to the worker, whose full contract is worker.md. The split exists because each item needs its own context: a milestone's history is noise to the next one, and a session cannot clear itself. Fresh workers keep the orchestrator small, so it stays cheap even after a long idle wait has expired the prompt cache.

Parse the workstream and the optional --no-listen from $ARGUMENTS (e.g. w1, w1 --no-listen). If no workstream is given, STOP and ask which one to drain. Never guess.

Preconditions (verify once, up front)

  1. git branch --show-current is main. If not, STOP and ask (same rule as /land).
  2. git status: note pre-existing uncommitted changes. Workers land from this checkout, so if the tree is dirty with work you didn't do, surface it and ask before starting.
  3. The workstream .pm/<wN>/README.md exists. If not, STOP and report.
  4. Read .pm/DO_NOT_DO.md once, so you recognize an item that conflicts with it when you pick it.
  5. Arm the loop guard: python3 scripts/loopx-guard.py start <wN> (append --no-listen when given). In Claude Code it is a Stop hook bound to this session. It refuses to let the turn end while <wN> has a ready item, unless a dispatched worker is still running; and when nothing is ready, unless a listener is running or --no-listen was given. Other sessions in the checkout are never held to your loop, start warns if another session already loops on <wN>, and the mark is dropped when your session ends. Codex has no Stop hook: there start says nothing was armed, and the exit rules below are the only enforcement.

Read the full file on GitHub · 222 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 222 lines · 112 tokens per session scan C 2df27c6263c2

Subscribe to this mod's changes

loopx is a skill published in the GitHub repository bex-co/beancount-io (808 stars, last pushed yesterday), licensed MIT. It adds 112 tokens to every session and 6,447 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-01.

Related

loopx compared with skills from other repositories

loopx next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
loopxbex-co/beancount-ioSkill808yesterdayMITC112Claude Code
bookkeepingericrisco/rsc-harnessSkill695yesterdayMITA84Claude 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
classify-transactionscynco-labs/ai-accounting-skillsSkill64mo agoMITA55Claude Code