cqrs
Installation
SKILL.md
CQRS
Use this skill when
- Separating read and write models when they diverge
- Scaling reads independently with read models
- Simplifying writes by removing read building from the write path
- Using event sourcing with projections
Do not use this skill when
- Reads are the same shape as writes
- The added complexity is not justified
Instructions
- Model commands as intent, with validation and idempotency.
- Model queries as purpose-built read models.
- Choose storage per side: relational for commands, materialized for reads.
- Synchronize read models via events or projections.
- Handle consistency: define acceptable lag for reads.
- Keep command handling transactional and auditable.