/architecture-skills:event-sourcingfrom architecture-skills
Guides event sourcing design: qualifying use cases, modeling event streams and aggregates, projections, replay, snapshots, optimistic concurrency, and schema evolution.
Ships in architecture-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use ordered, immutable business facts as the source of truth only when history, intent, temporal reconstruction, auditability, or future reinterpretation has enough value to repay permanent schema and operational costs.
Prefer current-state persistence for form-centric CRUD, generic created/updated/ deleted streams, defensive logs that will not be interpreted, or proposals driven only by scale, Kafka, CQRS, DDD, EDA, or microservices.
These patterns often compose but imply none of one another.
| Mode | Use when | Tradeoff |
|---|---|---|
| Inline | Event and read state must commit together | Higher write latency and coupling |
| Live/on-demand | Historical or occasional calculation | Replay cost at query time |
| Asynchronous | Independent scaling or expensive aggregation | Lag, idempotency, rebuild, and UX complexity |
Build narrow models for screens, reports, totals, and lookup needs. Maintain ordinary query models incrementally, track checkpoints, make at-least-once projectors idempotent, and expose asynchronous lag honestly. Prefer single-stream projections where practical and asynchronous cross-stream aggregation when it avoids contention.
First look for natural lifecycle boundaries such as accounting periods, stock counts, closure, or driver-day assignments. Starting a new stream at a domain checkpoint is modeling; a snapshot is merely a replay optimization.
If measured replay remains expensive, persist aggregate state at a stream version and replay subsequent events. Keep original events authoritative and budget for snapshot schema evolution.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
event-sourcing, cqrs, domain-driven-design, event-streams, aggregates
Other plugins' skills for the same job
npx claudepluginhub eralmansouri/skills --plugin architecture-skills8 skills in this plugin
/codebase-designUse for code-level module design, deep modules, interfaces, seams, adapters, testability, refactoring shallow modules, and finding architecture improvements in an existing codebase./design-reviewDesign review of a codebase area, branch, or PR. Maps its bounded contexts, vertical slices, and modules, then judges where rules live and whether flexibility sits where change actually happens. Use when the user asks for a design or architecture review, or when a review should judge structure rather than bugs or style./domain-driven-designUse for domain-driven design, domain modeling, ubiquitous language, bounded contexts, aggregates, invariants, entities, value objects, domain services, domain events, and deciding whether a rich domain model is warranted.