Implement event sourcing: design event schemas, build aggregate roots, handle projections, implement CQRS, and manage event versioning and migration.
When to use this skill
- Designing an event-sourced system
- Implementing projections
- Handling event schema evolution
Core concepts
This skill provides guidance on event sourcing best practices, patterns, and common pitfalls. It is designed to be loaded on demand when a relevant task is detected.
Installation
curl -LO https://opencode-skills.example/downloads/architecture/event-sourcing.zip
unzip event-sourcing.zip -d ~/.config/opencode/skills/
Restart OpenCode — the skill loads automatically.
When it triggers
- designing an event-sourced system
- implementing projections
- handling event schema evolution