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-keeping.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
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-keeping.
Ledger Design
When to use
Designing a double-entry bookkeeping system from scratch
Choosing a chart of accounts numbering convention
Building AR, AP, or GL sub-ledgers with reconciliation
Implementing immutable audit trails with reversal patterns
Deciding between running balance vs computed balance strategies
Applying event sourcing to financial record-keeping
Core principles
Debits always equal credits — enforce with DB constraint; reject unbalanced entries at the boundary
Never UPDATE or DELETE journal entries — corrections via reversing entries only; history is sacred
Running balance is a cache — journal lines are the source of truth; reconcile daily
Hash chain for tamper detection — SHA-256 chained hashes make unauthorized edits detectable
Sub-ledger detail must reconcile to GL control account — any gap is a critical alert, not a warning
Reference Files
references/double-entry-journal.md — golden rule, debit/credit rules table, example entries, journal_entries and journal_lines SQL schema, entry validation rules