This is your checklist for building anything that touches money. It pushes you away from f64 (precision loss) toward rust_decimal, shows you how to model immutable transactions with Arc for audit trails, and maps fintech domain rules (double-entry accounting, regulatory compliance) directly to Rust patterns. The trace-down tables connect constraints like "money can't disappear" to specific designs like newtypes and RAII transaction scopes. Most valuable if you're building payment systems, trading platforms, or ledgers where getting the money math wrong isn't just a bug, it's a legal problem. Covers currency types, event sourcing for transactions, and the common mistakes that break audit requirements.

skills.sh installs
581
GitHub stars
1.3K
last updated
Jul 14, 2026

Install

$ npx -y skills add zhanghandong/rust-skills --skill domain-fintech --agent claude-code

Installs into .claude/skills of the current project.

Files

FinTech Domain

Layer 3: Domain Constraints

Domain Constraints → Design Implications

Domain RuleDesign ConstraintRust Implication
Audit trailImmutable recordsArc, no mutation
PrecisionNo floating pointrust_decimal
ConsistencyTransaction boundariesClear ownership
ComplianceComplete loggingStructured tracing
ReproducibilityDeterministic executionNo race conditions

Critical Constraints

Financial Precision

RULE: Never use f64 for money
WHY: Floating point loses precision
RUST: Use rust_decimal::Decimal

Audit Requirements

RULE: All transactions must be immutable and traceable
WHY: Regulatory compliance, dispute resolution
RUST: Arc<T> for sharing, event sourcing pattern

Consistency

RULE: Money can't disappear or appear
WHY: Double-entry accounting principles
RUST: Transaction types with validated totals

Trace Down ↓

From constraints to design (Layer 2):

"Need immutable transaction records"
    ↓ m09-domain: Model as Value Objects
    ↓ m01-ownership: Use Arc for shared immutable data

Sponsors

Details

Repository
github.com/zhanghandong/rust-skills
Category
Rust
First seen
Jun 3, 2026

More from zhanghandong/rust-skills

All 34

Recommended

More Rust
1zhanghandong avatardomain-mlzhanghandong/rust-skillsdomain ml573skills.sh installs
2nomadamas avatarrhwp-advancednomadamas/k-skillDebug HWP layout, dump document IR, compare versions, extract thumbnails, and unlock read-only HWPs with the upstream rhwp Rust CLI (export-svg/dump/dump-pages/10.3Kskills.sh installs
3trailofbits avatarsolana-vulnerability-scannertrailofbits/skillsScans Solana programs for 6 critical vulnerabilities including arbitrary CPI, improper PDA validation, missing signer/ownership checks, and sysvar spoofing. Use6Kskills.sh installs
4trailofbits avatardevcontainer-setuptrailofbits/skillsCreates devcontainers with Claude Code, language-specific tooling (Python/Node/Rust/Go), and persistent volumes. Use when adding devcontainer support to a proje5.6Kskills.sh installs
5trailofbits avatarzeroize-audittrailofbits/skillsDetects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and con5.1Kskills.sh installs
6trkbt10 avatarindexion-agent-orienttrkbt10/indexion-skillsGenerate and use a pre-edit structure brief so coding agents learn likely owners, consumer surfaces, and unsafe edit locations before implementing.4.9Kskills.sh installs