Event sourcing patterns and design decisions
View on GitHubmelodic-software/claude-code-plugins
event-modeling
plugins/event-modeling/skills/event-sourcing-design/SKILL.md
January 21, 2026
Select agents to install to:
npx add-skill https://github.com/melodic-software/claude-code-plugins/blob/main/plugins/event-modeling/skills/event-sourcing-design/SKILL.md -a claude-code --skill event-sourcing-designInstallation paths:
.claude/skills/event-sourcing-design/# Event Sourcing Design Skill
Design event-sourced systems with proper event store, projection, and versioning patterns.
## MANDATORY: Documentation-First Approach
Before designing event sourcing:
1. **Invoke `docs-management` skill** for event sourcing patterns
2. **Verify patterns** via MCP servers (perplexity, context7)
3. **Base guidance on established event sourcing literature**
## Event Sourcing Fundamentals
```text
Traditional vs Event Sourcing:
TRADITIONAL (State-Based):
┌─────────────┐ ┌─────────────┐
│ Application │───►│ Database │
│ │ │ (Current │
│ │ │ State) │
└─────────────┘ └─────────────┘
EVENT SOURCING:
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Application │───►│ Event Store │───►│ Projections │
│ │ │ (All Events)│ │ (Read Views)│
└─────────────┘ └─────────────┘ └─────────────┘
│
▼
[Complete History]
```
## When to Use Event Sourcing
### Good Fit Scenarios
```text
Event Sourcing Works Well For:
✓ AUDIT REQUIREMENTS
- Complete history needed
- Regulatory compliance
- Legal evidence
✓ COMPLEX DOMAIN LOGIC
- Business rules evolve
- Temporal queries needed
- "What if" analysis
✓ HIGH-VALUE AGGREGATES
- Financial transactions
- Medical records
- Legal documents
✓ COLLABORATION SCENARIOS
- Conflict resolution
- Merge capabilities
- Offline sync
✓ EVENT-DRIVEN ARCHITECTURE
- Microservices integration
- Async processing
- Real-time updates
```
### Poor Fit Scenarios
```text
Event Sourcing May Not Fit:
✗ SIMPLE CRUD
- Basic data entry
- No audit needs
- Simple queries
✗ FREQUENT UPDATES
- High-velocity small changes
- Real-time streaming data
- IoT sensor data
✗ LARGE AGGREGATES
- Many events per aggregate
- Performance concerns
- Memory constraints
✗ AD-HOC QUERIES
- Complex reporting
- Unknown query patterns
- BI/analytics focus
`