cqrs-event-sourcing
CQRS and Event Sourcing patterns for scalable, auditable systems with separated read/write models.
Skill by NickCrew
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/nickcrew-cqrs-event-sourcing
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/cqrs-event-sourcing
What's inside
- Skill name
cqrs-event-sourcing- Description
- CQRS and Event Sourcing patterns for scalable, auditable systems with separated read/write models. Use when building audit-required systems, implementing temporal queries, or designing high-scale applications with complex domain logic.
- License
- MIT
- Instructions
- 81 lines in SKILL.md · view on GitHub
Files (6)
- SKILL.md
- best-practices.md · references/
- consistency-patterns.md · references/
- cqrs-patterns.md · references/
- event-sourcing.md · references/
- event-store-tech.md · references/
SKILL.md (first lines)
# CQRS and Event Sourcing Patterns
Expert guidance for implementing Command Query Responsibility Segregation (CQRS) and Event Sourcing patterns to build scalable, auditable systems with complete historical tracking and optimized read/write models.
## When to Use This Skill
- Building systems requiring complete audit trails and compliance
- Implementing temporal queries ("show me the state at time T")
- Designing high-scale applications with complex domain logic
- Creating systems with significantly different read and write patterns
- Building event-driven architectures with historical replay capability
- Implementing systems requiring multiple read model projections
- Designing applications where understanding "what happened" is critical
- Building collaborative systems with conflict resolution needs
## Core Principles
### 1. Command Query Separation
Separate operations that change state (commands) from operations that read state (queries).
| Commands (Write) | Queries (Read) |
|-----------------|----------------|
| Express intent (CreateOrder, UpdatePrice) | Return data, never change state |
| Can be rejected (validation failures) | Can be cached and optimized |
| Return success/failure, not data | Multiple models for different needs |
| Change system state | Eventually consistent with writes |
### 2. Events as Source of Truth
Store state changes as immutable events rather than current state snapshots.
**Traditional**: Store what IS → `UPDATE users SET email = 'new@email.com'`
**Event Sourcing**: Store what HAPPENED → `APPEND UserEmailChanged event`
**Result**: Complete history, temporal queries, audit trail
### 3. Eventual Consistency
Accept temporary inconsistency between write and read models for scalability.
### 4. Domain-Driven Design Integration
- Aggregates enforce business invariants
- Events represent domain facts
- Commands express domain operations
- Bounded contexts define consistency boundaries
## Quick Reference
| Task | Load reference |
| --- | --- |
| CQRS implementation patterns | `skills/cqrs-event-sourcing/references/cqrs-patterns.md` |
| Event sourcing & snapshots | `skills/cqrs-event-sourcing/references/event-sourcing.md` |
| EventStoreDB & Axon Framework | `skills/cqrs-event-sourcing/references/event-store-tech.md` |
| Consistency patterns | `skills/cqrs-event-sourcing/references/consistency-patterns.md` |
| Best practices checklist | `skills/cqrs-event-sourcing/references/best-practices.md` |
## Workflow
1. **Identify** if CQRS/ES is appropriate (high audit, temporal, or scale needs)
2. **Design** commands expressing user intent
3. **Define** events as immutable facts (past tense naming)
4. **Implement** aggregates as consistency boundaries
5. **Create** projections optimized for specific query needs
6. **Handle** eventual consistency across bounded contexts
## Common Mistakes
- Using CQRS for simple CRUD applications (overkill)
- Large aggregates that span multiple consistency boundaries
- Modifying or deleting events after publication
- Skipping command validation before aggregate processing
- Missing idempotency in event handlers
- No versioning strategy for event schema evolution
- Tight coupling between aggregates (use ID references only)
## Resources
- **Books**: "Implementing Domain-Driven Design" (Vernon), "Event Sourcing & CQRS" (Betts et al)
- **Sites**: cqrs.wordpress.com, eventstore.com/blog, axoniq.io/resources
- **Tools**: EventStoreDB, Axon Framework, Marten, Eventuous
- **Patterns**: Event Sourcing, CQRS, Process Manager, Saga, SnapshotFrom NickCrew/Claude-Cortex, MIT.
More from NickCrew/Claude-Cortex
- 0.581score
development-estimation
NickCrew
Use when estimating time, effort, or complexity for features or projects - provides structured estimation workflows with breakdowns, risks, and confidence…
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
code-explanation
NickCrew
Use when explaining code, concepts, or system behavior to a specific audience level - provides a structured explanation workflow with depth control and…
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
compliance-audit
NickCrew
Regulatory compliance auditing across GDPR, HIPAA, PCI DSS, SOC 2, and ISO frameworks with automated evidence collection and gap analysis.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
dev-workflows
NickCrew
Use when running builds, executing tests, or improving developer experience workflows - provides structured guidance for build/test execution and DX…
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
codex-code-review
NickCrew
Automate code review remediation loops with the codex CLI.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
build-optimization
NickCrew
Build system optimization covering compilation, caching, incremental builds, and developer tooling.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
backlog-md
NickCrew
Task tracking system for agents via Backlog.md CLI.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
api-gateway-patterns
NickCrew
API Gateway patterns for routing, authentication, rate limiting, and service composition in microservices architectures.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
database-design-patterns
NickCrew
Database schema design patterns and optimization strategies for relational and NoSQL databases.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
design-journey-review
NickCrew
Combined visual design and user journey review: color systems, typography, spacing, information density, visual hierarchy, workflow stages, emotional curve…
SkillCFreshness: C★ 61Claude Code +9 - 0.577score
architectural-analysis
NickCrew
User-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI…
SkillCFreshness: C★ 61Claude Code +9 - 0.576score
atomic-commits
NickCrew
Use this skill when a working tree contains uncommitted changes that need to be split into a sequence of atomic commits — typically after a long session, an…
SkillCFreshness: C★ 61Claude Code +9
Signals
- Stars
- 61
- Forks
- 15
- Open issues
- 3
- Last commit (this folder)
- Apr 23, 2026 (6 months ago)
- Last release
- Jun 2, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/NickCrew/Claude-Cortex
- Website
- cortex.atlascrew.dev/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from NickCrew
- 0.581score
code-explanation
NickCrew
Use when explaining code, concepts, or system behavior to a specific audience level - provides a structured explanation workflow with depth control and…
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
database-design-patterns
NickCrew
Database schema design patterns and optimization strategies for relational and NoSQL databases.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
api-gateway-patterns
NickCrew
API Gateway patterns for routing, authentication, rate limiting, and service composition in microservices architectures.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
backlog-md
NickCrew
Task tracking system for agents via Backlog.md CLI.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
compliance-audit
NickCrew
Regulatory compliance auditing across GDPR, HIPAA, PCI DSS, SOC 2, and ISO frameworks with automated evidence collection and gap analysis.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
design-journey-review
NickCrew
Combined visual design and user journey review: color systems, typography, spacing, information density, visual hierarchy, workflow stages, emotional curve…
SkillCFreshness: C★ 61Claude Code +9
Cite this page
cqrs-event-sourcing skill. Agent Mart. https://agentmart.dev/skills/nickcrew-cqrs-event-sourcing (last updated 2026-10-24)