Implements robust event-driven architectures by storing application state as a sequence of immutable domain events for complete auditability and temporal queries.
The Event Sourcing skill provides Claude with production-ready patterns for building systems where state changes are captured as a sequence of events rather than just current snapshots. It enables full history reconstruction, perfect audit trails for compliance-heavy industries like finance, and seamless CQRS implementation with separate read and write models. By providing standardized templates for aggregate modeling, optimistic concurrency, and snapshots, this skill ensures that complex domain logic remains consistent and scalable while avoiding common anti-patterns like event mutation or ordering issues.
Key Features
0169 GitHub stars
02Snapshot strategies for high-performance aggregate loading
03Immutable domain event modeling using Pydantic
04Event-sourced aggregate state reconstruction from history
05Optimistic concurrency control with versioned event stores
06Asynchronous projections for optimized CQRS read models
Use Cases
01Implementing CQRS patterns to scale read and write operations independently
02Creating systems that require temporal querying or 'time-travel' debugging
03Building financial systems with strict compliance and audit trail requirements