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
Implementing point-in-time queries and bi-temporal history
Enforcing data integrity rules for financial records
Core principles
Never float money — use DECIMAL(19,4) or integer minor units; floating point errors compound
Currency is always explicit — every amount must carry its ISO 4217 currency code
Soft-delete only — status flags and effective dates, never DELETE financial records
Bi-temporal when auditability demands it — system time tracks inserts, business time tracks validity
Cost basis per lot — position tracking must support FIFO/LIFO/weighted average for tax reporting
Reference Files
references/account-structures-currency.md — chart of accounts hierarchy, account model design, ISO 4217 compliance, floating-point avoidance, rounding rules per jurisdiction
references/multi-currency-instruments.md — exchange rate management, multi-currency schema, realized vs unrealized FX gains, financial instrument hierarchy, position tracking
references/temporal-data-integrity.md — effective dating, as-of queries, bi-temporal schema pattern, and data integrity constraints for financial tables
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.