ledger-design
Installation
SKILL.md
Ledger design pattern library
Reference patterns for financial ledger systems.
Double-entry rules
For every event:
- At least two entries
- Sum of debits = sum of credits (per currency)
- Entries are atomic with the event (single transaction)
- The invariant is enforced by a database constraint or trigger, not application code