pekko-cqrs-es-implementation
Installation
SKILL.md
Pekko CQRS/ES Implementation
Use this skill only when the implementation stack is Scala 3 plus Apache Pekko and the architecture is CQRS/Event Sourcing.
Workflow
-
Confirm the aggregate, commands, events, state lifecycle, and serialization requirements.
-
Keep the domain model separate from the Pekko actor shell.
-
Model command handling as validation plus event emission.
-
Apply events through pure state transition functions.
-
Define Protocol Buffers schemas and evolution rules for persisted events.
-
Put use-case orchestration in ZIO/application services, not inside the aggregate actor.
-
Build read-model updaters as idempotent projections.