moeryomenko/dotfiles/domain-fintech
Claude Code and agent skill by moeryomenko/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Use when building Rust financial systems involving money, currencies, ledgers, payments, trading, rounding, transactions, reconciliation, or audit records.
Install
npx vskill@latest install moeryomenko/dotfiles/domain-fintechSKILL.md
The same SKILL.md was published earlier as moeryomenko/dotfiles/domain-fintech.
Rust Financial-System Guidance
Financial rules are domain, jurisdiction, product, and persistence-model specific. Establish the currency model, allowed scales, rounding rules, overflow policy, transaction semantics, reconciliation requirements, retention policy, and regulatory controls before choosing a Rust type or crate.
Monetary representation
Do not use binary floating point for monetary amounts unless the domain explicitly defines acceptable error bounds and rounding behavior. A suitable representation may be integer minor units, a fixed-scale integer, a decimal type, or another exact representation. Select it from the required range, scale, currencies, calculation rules, persistence format, and interoperability.
rust_decimal::Decimal can be a useful choice, but it is not a universal monetary representation. Ensure serialized/persisted values preserve the necessary scale and that every conversion has a documented rounding policy.
A monetary value usually needs currency metadata and checked arithmetic. Whether a negative result is valid is a domain rule, not a property of subtraction itself.
Ledger, consistency, and auditability
Arc<T> shares ownership; it neither makes records immutable nor creates an audit trail. An audit trail requires durable records with an appropriate append, authorization, integrity, retention, and reconciliation model. Structured logs can supplement that record but rarely substitute for it.
For balance-changing operations, specify atomicity and isolation at the persistence boundary. Use transaction mechanisms offered by the database or ledger rather than relying on in-process ownership alone. Model debits, credits, idempotency keys, state transitions, and externally visible outcomes according to the product's invariants.
External boundaries
Validate untrusted messages, decimal strings, and currency codes before converting them into domain types. Carry enough context for reconciliation without leaking sensitive data to user-facing errors or logs. Define retry policy with idempotency, deadlines, cancellation, jitter, and settlement state in mind.
Load next
- Numeric range, float policy, and overflow:
features/numeric.md - Domain types and invariants:
features/domain-modeling.md,features/type-safety.md - Error/retry boundaries:
features/error-handling.md,features/domain-error.md - Persistence and telemetry concerns:
features/lifecycle.md,features/observability.md
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingopencode/.config/opencode/skills/rust/domain-fintech/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/moeryomenko/dotfiles/domain-fintech)