hieudoanm/hieudoanm.github.io/cqrs
Claude Code and agent skill by hieudoanm/hieudoanm.github.io
- community
Checking that the SKILL.md file is still in the repository.
Best practices for implementing Command Query Responsibility Segregation (CQRS) pattern. Use when designing, structuring, or reviewing CQRS implementations — covers command handling, query optimization, event sourcing, and eventual consistency.
Install
npx vskill@latest install hieudoanm/hieudoanm.github.io/cqrsSKILL.md
The same SKILL.md was published earlier as hieudoanm/hieudoanm.github.io/cqrs.
CQRS Best Practices
Command Query Responsibility Segregation (CQRS) is a pattern that separates read and write operations for a data store. Best practice is to implement CQRS when you have complex read/write requirements, optimize read models for queries, and handle eventual consistency properly.
When to use
Use when designing, structuring, or reviewing CQRS implementations.
Prerequisites
- Basic familiarity with the project and the problem being addressed.
- For implementation, access to the relevant source code or development environment.
Scope boundary
- When the project does not use this technology or pattern, or the task falls outside its scope; follow the project’s existing stack and conventions.
Essential checks
- Separation of concerns — separate command (write) and query (read) models
- Optimized read models — design read models for specific query needs
- Event-driven updates — use events to synchronize read models
- Eventual consistency — accept eventual consistency between models
- Scalability — scale read and write operations independently
- Separate models — maintain separate read and write models
- Optimize reads — design read models for specific query needs
- Event-driven — use events to synchronize models
Focus areas
- 1. Core Principles
- 2. Architecture Overview
- 3. Command Implementation
- 4. Query Implementation
- 5. Read Model Optimization
- 6. Event Sourcing Integration
- 7. Eventual Consistency
- 8. Testing
Detailed references
Related materials
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.skills/programming/development/architecture/cqrs/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hieudoanm/hieudoanm.github.io/cqrs)