Tooluck logoTooluck
SKILL.md

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)

plugins/backend-development/skills/cqrs-implementation/SKILL.md

MITFull file
1# CQRS Implementation
2
3Comprehensive guide to implementing CQRS (Command Query Responsibility Segregation) patterns.
4
5## When to Use This Skill
6
7- Separating read and write concerns
8- Scaling reads independently from writes
9- Building event-sourced systems
10- Optimizing complex query scenarios
11- Different read/write data models needed
12- High-performance reporting requirements
13
14## Core Concepts
15
16### 1. CQRS Architecture
17
18```
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```
43
44### 2. Key Components
45…

Excerpt shown under the repository's MIT license.

More skills in agents

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates