Event Sourcing Patterns for HZL

•
12
•

Enforces event-driven architecture and immutable state patterns within the HZL task ledger system.

This skill provides specialized guidance for developers working on HZL, an external task ledger for coding agents. It ensures strict adherence to event sourcing principles by requiring all state mutations to be recorded as immutable events via the EventStore while maintaining projections as read-only derived views. By automating the application of these patterns, it prevents common architectural mistakes like direct database writes, ensures data integrity, and facilitates reliable system state reconstruction from the event history.

主な機能

01Facilitates atomic read-modify-write operations using withWriteTransaction
02Provides standardized service layer logic for business orchestration
03Automates Zod-validated event schema definitions
0412 GitHub stars
05Enforces immutable event-driven state mutations via EventStore
06Coordinates read-only projection updates through the projector pattern

ユースケース

01Refactoring existing state logic to follow strict event-sourcing patterns
02Ensuring data consistency across distributed coding agent task logs
03Implementing new task ledger features while maintaining architectural integrity