Financial data modeling

From rnavarych/alpha-engineer · View interactive version

Financial data modeling is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Guides financial data modeling: account structures (asset, liability, equity, revenue, expense), currency handling (ISO 4217, minor units), decimal precision (BigDecimal, integer cents), multi-currency ledgers, financial instrument representation, and temporal data patterns. Use when designing datab

How to use this skill

Skill file

Financial Data Modeling

When to use

Core principles

  1. Never float money — use DECIMAL(19,4) or integer minor units; floating point errors compound
  2. Currency is always explicit — every amount must carry its ISO 4217 currency code
  3. Soft-delete only — status flags and effective dates, never DELETE financial records
  4. Bi-temporal when auditability demands it — system time tracks inserts, business time tracks validity
  5. Cost basis per lot — position tracking must support FIFO/LIFO/weighted average for tax reporting

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.