Ledger design

From rnavarych/alpha-engineer · View interactive version

Ledger design is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Guides double-entry ledger design: journal entries, chart of accounts, sub-ledgers (AR, AP, GL), reconciliation between ledgers, immutable append-only audit trails, balance calculations (running vs computed), and ledger-as-event-log pattern. Use when designing accounting systems or financial record-

How to use this skill

Skill file

Ledger Design

When to use

Core principles

  1. Debits always equal credits — enforce with DB constraint; reject unbalanced entries at the boundary
  2. Never UPDATE or DELETE journal entries — corrections via reversing entries only; history is sacred
  3. Running balance is a cache — journal lines are the source of truth; reconcile daily
  4. Hash chain for tamper detection — SHA-256 chained hashes make unauthorized edits detectable
  5. Sub-ledger detail must reconcile to GL control account — any gap is a critical alert, not a warning

Reference Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.