Agent skill

Routine Logic Simplifier

by bex-co in bex-co/beancount-io

Autonomous maintenance routine that finds one convoluted unit of business logic in a monorepo package — deep nesting, boolean spaghetti, interleaved concerns — pins its behavior with tests…

MITAuto-check passedDevelopment

Install Routine Logic Simplifier

skills CLI
$ npx skills add bex-co/beancount-io --skill routine-logic-simplifier -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install bex-co/beancount-io routine-logic-simplifier --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/bex-co/beancount-io.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/routine-logic-simplifier .claude/skills/routine-logic-simplifier && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
routine-logic-simplifier
GitHub stars
295
Token cost
~834 tokens
SKILL.md length
359 words
Files
1
Skills in repo
27
Repo updated
First seen
Licence
MIT

At a glance

Autonomous maintenance routine that finds one convoluted unit of business logic in a monorepo package — deep nesting, boolean spaghetti, interleaved concerns — pins its behavior with tests…

  • Works in 6 steps: Scope → Discover → Prove it (pin first) → …
  • Explicitly invokes /routine-logic-simplifier
  • SKILL.md covers Contract, Workflow, What NOT to do and Arguments
  • Calls git

What it does

Routine Logic Simplifier is an agent skill from bex-co/beancount-io. Autonomous maintenance routine that finds one convoluted unit of business logic in a monorepo package — deep nesting, boolean spaghetti, interleaved concerns — pins its behavior with tests, simplifies it in place with zero behavior change, and ships via /ship. Use only when the user explicitly invokes /routine-logic-simplifier or asks to simplify convoluted existing logic. SKIP for reviewing the current diff (/simplify), removing indirection layers (routine-abstraction-improver), and fixing wrong behavior…

Its SKILL.md is about 830 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Monorepo tooling. The repository describes itself as: 💰 Double-entry bookkeeping made easy — plain-text accounting for humans and AI agents. Polished iOS & Android app built with React Native + Expo. The licence is MIT.

When your agent uses it

  • Explicitly invokes /routine-logic-simplifier
  • Asks to simplify convoluted existing logic
  • Is make this convoluted logic read simply without changing what it does

Example prompts

  • “make this convoluted logic read simply without changing what it does”
  • “/routine-logic-simplifier”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Scope
  2. Discover
  3. Prove it (pin first)
  4. Fix
  5. Verify
  6. Ship

What it can do on your machine

Read from SKILL.md and the folder at commit 2103ca1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Routine Logic Simplifier loads about 834 tokens when it runs. Until then it costs about 163 tokens; SKILL.md has 359 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~163
When it runs · the whole SKILL.md, loaded when a task matches
~834

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from bex-co/beancount-io at commit 2103ca1, republished under its MIT licence (© bex-co). 359 words, ~834 tokens.

Download SKILL.mdSave it as .claude/skills/routine-logic-simplifier/SKILL.md (or your agent's skills folder).
name
routine-logic-simplifier
description
Autonomous maintenance routine that finds one convoluted unit of business logic in a monorepo package — deep nesting, boolean spaghetti, interleaved concerns — pins its behavior with tests, simplifies it in place with zero behavior change, and ships via /ship. Use only when the user explicitly invokes /routine-logic-simplifier or asks to simplify convoluted existing logic. SKIP for reviewing the current diff (/simplify), removing indirection layers (routine-abstraction-improver), and fixing wrong behavior (routine-logic-bugfixer). The core trigger is "make this convoluted logic read simply without changing what it does".

Task: Simplify convoluted business logic, behavior-preserving

Usage: /routine-logic-simplifier [package-or-path]

Pick one genuinely convoluted unit, pin its current behavior with tests, rewrite it in place so it reads simply, prove nothing changed, and ship via /ship.

Contract

Read .agents/skills/routine-shared/contract.md first — preconditions, scope resolution, verify gates, ship protocol, budget, universal STOPs. Floor even without it: never ship red; one finding per ship; anything in a DO_NOT_DO.md is a hard STOP.

Workflow

1. Scope

Resolve scope per the contract.

2. Discover

Find hotspots worth the risk:

  • git log --oneline -- <pkg> — files that keep appearing in fix: commits; churn is where convolution costs the most.
  • Read for the smells: nesting past ~3 levels, long boolean chains, one function interleaving parsing + decision + formatting, repeated re-derivation of the same intermediate value.

Pick one unit (a function or a small cluster). Convoluted-but-working code nobody touches is a weak finding; convoluted code with churn is a strong one.

3. Prove it (pin first)
  • Existing tests must cover the unit's observable behavior, or you write pinning tests first — inputs/outputs as they are today, including the weird edges.
  • If the behavior cannot be safely pinned (nondeterminism, giant I/O surface), skip the finding — an unpinned simplification is a gamble, not maintenance.
Show full SKILL.md (159 more words)Show less
4. Fix

Simplify in place: flatten nesting with early returns, name the intermediate values, split interleaved concerns into local helpers. Introduce no new abstractions — no new interfaces, layers, or files unless splitting one oversized file is itself the simplification. Zero behavior change, byte for byte where observable.

5. Verify

Pinning tests and the owning package's full gate, all green. The pinning tests ship with the change.

6. Ship

Compose /ship for this one unit. Loop within budget.

What NOT to do

  • Never fold a behavior change into the refactor. A bug discovered mid-simplify is a separate routine-logic-bugfixer finding — note it, finish the behavior-preserving simplification, report the bug in the summary.
  • Don't remove indirection layers (single-impl interfaces, passthrough wrappers) — that is routine-abstraction-improver's job.
  • Don't "simplify" by deleting handling for edge cases you can't prove unreachable — that's how convoluted code got its reputation for being load-bearing.
  • Don't reformat or rename beyond the unit you picked; keep the diff reviewable.

Arguments

$ARGUMENTS

© bex-co, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/routine-logic-simplifier of bex-co/beancount-io.

Open the folder on GitHubat commit 2103ca1

Compare with similar skills

Routine Logic Simplifier next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Routine Logic Simplifier compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Routine Logic Simplifier this skillbex-co/beancount-io295—~834Automated safety check: PassMIT
Sanity Radar Investigatesanity-io/sanity6.4k—~1.5kAutomated safety check: PassMIT
Nx Importnrwl/nx29k6 repos~3.5kAutomated safety check: PassMIT
Nx Workspacenomcopter/react-mosaic4.8k8 repos~1.9kAutomated safety check: PassCustom licence
Electron Multi-Process ArchitectureiOfficeAI/AionUi33k1 repos~1.8kAutomated safety check: PassApache-2.0
Nx Run Tasksnomcopter/react-mosaic4.8k8 repos~613Automated safety check: PassCustom licence

Similar skills

  • Sanity Radar Investigate

    sanity-io/sanity

    Official

    Investigate a suspected Studio performance regression surfaced by Studio Radar or the bench suite — confirm the signal against host calibration, narrow the commit range, confirm with an A/B…

    6.4k GitHub stars~1.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Nx Import

    nrwl/nx

    Import, merge, or combine repositories into an Nx workspace using nx import.

    29k GitHub starsUsed in 6 repos~3.5k tokens
    DevelopmentAuto-check passed
  • Nx Workspace

    nomcopter/react-mosaic

    Explore and understand Nx workspaces. An agent skill from nomcopter/react-mosaic.

    4.8k GitHub starsUsed in 8 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Tells the agent where new code belongs in an Electron multi-process project and which APIs each process may use, with rules for new bridges, services, agents and workers.

    33k GitHub starsUsed in 1 repo~1.8k tokens
    DevelopmentAuto-check passed
  • Nx Run Tasks

    nomcopter/react-mosaic

    Helps with running tasks in an Nx workspace. An agent skill from nomcopter/react-mosaic.

    4.8k GitHub starsUsed in 8 repos~613 tokens
    DevelopmentAuto-check passed
  • Astro Developer

    withastro/astro

    Official

    Comprehensive guide for developing in the Astro monorepo. An agent skill from withastro/astro.

    63k GitHub starsUsed in 1 repo~1.5k tokens
    DevelopmentAuto-check passed

More from bex-co/beancount-io

All 27 skills in this repo
  • Beancount Close

    bex-co/beancount-io

    Close an accounting period in a Beancount ledger by reconciling each active account through beancount-reconcile, checking assertions and recurring gaps, reviewing flags, then proposing a commit with…

    295 GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Beancount Import

    bex-co/beancount-io

    Import a bank or card CSV, OFX/QFX, or QIF export into an existing Beancount ledger.

    295 GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Beancount Importer Author

    bex-co/beancount-io

    Write or repair a reusable Beangulp importer from a sample bank export, with reviewed golden files and a passing test harness.

    295 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Beancount Init

    bex-co/beancount-io

    Scaffold a new Beancount ledger with bea init and validation, with optional Fava browser setup when requested.

    295 GitHub stars~1.2k tokensUpdated today
    Auto-check: notes
  • Beancount Options

    bex-co/beancount-io

    Record a described options trade or lifecycle event as validated Beancount transactions through bea, after review and confirmation.

    295 GitHub stars~3.7k tokensUpdated today
    Auto-check passed
  • Beancount Reconcile

    bex-co/beancount-io

    Reconcile one Beancount account against a CSV statement or pasted PDF text.

    295 GitHub stars~4.1k tokensUpdated today
    Auto-check passed

Questions about Routine Logic Simplifier

What does Routine Logic Simplifier do?

Autonomous maintenance routine that finds one convoluted unit of business logic in a monorepo package — deep nesting, boolean spaghetti, interleaved concerns — pins its behavior with tests…. Routine Logic Simplifier is an agent skill from bex-co/beancount-io. Autonomous maintenance routine that finds one convoluted unit of business logic in a monorepo package — deep nesting, boolean spaghetti, interleaved concerns — pins its behavior with tests, simplifies it in place with zero behavior change, and ships via /ship.

When should I use Routine Logic Simplifier?

Routine Logic Simplifier fits situations like: explicitly invokes /routine-logic-simplifier; asks to simplify convoluted existing logic; is make this convoluted logic read simply without changing what it does.

How do I install Routine Logic Simplifier in Claude Code?

Run `npx skills add bex-co/beancount-io --skill routine-logic-simplifier -a claude-code`. Or copy the skill folder (.agents/skills/routine-logic-simplifier in bex-co/beancount-io) into .claude/skills/routine-logic-simplifier in your project. Claude Code loads it when a task matches its description.

How do I install Routine Logic Simplifier in Codex?

Run `npx skills add bex-co/beancount-io --skill routine-logic-simplifier -a codex`. Or copy the skill folder (.agents/skills/routine-logic-simplifier in bex-co/beancount-io) into .agents/skills/routine-logic-simplifier in your project. Codex loads it when a task matches its description.

Can I use Routine Logic Simplifier in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bex-co/beancount-io --skill routine-logic-simplifier -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/routine-logic-simplifier, .gemini/skills/routine-logic-simplifier, .github/skills/routine-logic-simplifier and .opencode/skills/routine-logic-simplifier in your project.

What does Routine Logic Simplifier need to run?

Going by SKILL.md and its folder, Routine Logic Simplifier needs the command-line tools its instructions call (git).

Does Routine Logic Simplifier access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Routine Logic Simplifier safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Routine Logic Simplifier use?

Routine Logic Simplifier is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Routine Logic Simplifier use?

About 834 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Routine Logic Simplifier?

Skills that share tags, products or a category with Routine Logic Simplifier: Sanity Radar Investigate (sanity-io/sanity, 6.4k stars), Nx Import (nrwl/nx, 29k stars), Nx Workspace (nomcopter/react-mosaic, 4.8k stars) and Electron Multi-Process Architecture (iOfficeAI/AionUi, 33k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Routine Logic Simplifier?

bex-co (a GitHub organization) maintains it in bex-co/beancount-io, which has 295 GitHub stars. The repository holds 27 skills in this directory. The repository was last updated on October 7, 2026.

Source: bex-co/beancount-io on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.