LE

ledger-invariants

Designs ledger systems for financial products with a focus on balance invariants and auditability.

Install

mkdir -p .claude/skills/ledger-invariants && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14541" && unzip -o skill.zip -d .claude/skills/ledger-invariants && rm skill.zip

Installs to .claude/skills/ledger-invariants

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Ledger design — single-entry vs double-entry choice, balance invariants, suspense accounts, reconciliation cadence, close discipline, out-of-balance break alerts. Outputs to `docs/design/ledger-<project>.md`. Reads `/project-classify`; skip XS. Use when user says "ledger", "double-entry", "general ledger", "GL", "journal entry", "reconciliation", "out of balance", "trial balance", "suspense account", "/ledger-invariants", or before any product moves money / records balances.
479 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

Key capabilities

  • Choose ledger paradigm (single, double, triple-entry)
  • Define canonical balance invariants
  • Skeleton out a chart of accounts (COA)
  • Specify journal-entry schema
  • Establish reconciliation cadences and ownership
  • Design suspense workflow and period close calendar

How it works

The skill guides the design of a money-movement ledger by selecting a paradigm, defining invariants, structuring a chart of accounts, detailing journal entries, and establishing reconciliation and suspense workflows.

Inputs & outputs

You give it
A request to design a ledger for money movement
You get back
A Markdown document (`docs/design/ledger-<project>.md`) detailing ledger design, invariants, COA, and workflows

When to use ledger-invariants

  • Designing a new financial ledger
  • Setting up reconciliation cadences
  • Handling payment invariants

About ledger-invariants

Establishes algebraic rules for ledger entries, balance checking, and handling out-of-balance breaks.

Ledger design — single-entry vs double-entry choice, balance invariants, suspense accounts, reconciliation cadence, close discipline, out-of-balance break alerts. Outputs to `docs/design/ledger-<project>.md`. Reads `/project-classify`; skip XS. Use when user says "ledger", "double-entry", "general l

When not to use it

  • When the project is classified as XS (skip)
  • When updating balance fields directly
  • When using float math on money

Limitations

  • Skips XS classified projects
  • Does not permit direct updates on balance fields
  • Does not permit float math on money

How it compares

This skill provides a structured, invariant-driven approach to ledger design, ensuring financial integrity and auditability, unlike an ad-hoc system that might lead to out-of-balance issues.

Compared to similar skills

ledger-invariants side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
ledger-invariants (this skill)03moNo flagsAdvanced
postgresql-table-design304moNo flagsIntermediate
agentdb-advanced-features710moReviewAdvanced
event-store-design52moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry