cqrs-implementation
Agent skill fromwshobson/agents
Implement Command Query Responsibility Segregation for scalable architectures. Use when separating read and write models, optimizing query performance, or building event-sourced systems.
How to install cqrs-implementation
install cqrs-implementation
# install the agents pack with the skills CLI
npx skills add wshobson/agents# or add only this skill to Claude Code: copy the folder
plugins/backend-development/skills/cqrs-implementation/
# into
~/.claude/skills/cqrs-implementation/ (all projects)
.claude/skills/cqrs-implementation/ (one project)
1# CQRS Implementation23Comprehensive guide to implementing CQRS (Command Query Responsibility Segregation) patterns.45## When to Use This Skill67- Separating read and write concerns8- Scaling reads independently from writes9- Building event-sourced systems10- Optimizing complex query scenarios11- Different read/write data models needed12- High-performance reporting requirements1314## Core Concepts1516### 1. CQRS Architecture1718```19 ┌─────────────┐20 │ Client │21 └──────┬──────┘22 │23 ┌────────────┴────────────┐24 │ │25 ▼ ▼26 ┌─────────────┐ ┌─────────────┐27 │ Commands │ │ Queries │28 │ API │ │ API │29 └──────┬──────┘ └──────┬──────┘30 │ │31 ▼ ▼32 ┌─────────────┐ ┌─────────────┐33 │ Command │ │ Query │34 │ Handlers │ │ Handlers │35 └──────┬──────┘ └──────┬──────┘36 │ │37 ▼ ▼38 ┌─────────────┐ ┌─────────────┐39 │ Write │─────────►│ Read │40 │ Model │ Events │ Model │41 └─────────────┘ └─────────────┘42```4344### 2. Key Components45…
Excerpt shown under the repository's MIT license.
