Claude Marketplaces
SkillsMCP serversMarketplacesDigestTools
Submit

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP servers by category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control
Claude Marketplaces

An independent directory of skills, plugins and MCP servers for Claude Code. Not affiliated with Anthropic.

Browse

  • Skills
  • MCP servers
  • Marketplaces
  • Weekly digest
  • Skill index
  • MCP index
  • Marketplace index

Site

  • About
  • Tools
  • Submit
  • Feedback
  • Privacy
  • llms.txt
  • Plugins reference

Maker

  • Snug
  • Agent Caffeine
  • knobs
  • Wax
  • Vectoys
  • mertduzgun.com
Crafted at
Skills/Debugging
wshobson avatar

Cqrs Implementation

wshobson/agents

Solid foundation for implementing CQRS patterns with complete command and query infrastructure templates. Includes command buses, handlers, event sourcing integration, and read model projections. The code examples cover real scenarios like order management with proper separation of write operations (CreateOrder, CancelOrder) and optimized queries (paginated results, filtering). Most useful when you need to scale reads independently from writes or handle complex reporting requirements. The templates are production-ready with proper validation, error handling, and async support. Skip if you're dealing with simple CRUD operations where the complexity overhead isn't justified.

installs
11.1K
GitHub stars
41.8K
last updated
Aug 21, 2026
View on GitHubSave

Install

$ npx -y skills add wshobson/agents --skill cqrs-implementation --agent claude-code

Installs into .claude/skills of the current project.

Files

CQRS Implementation

Comprehensive guide to implementing CQRS (Command Query Responsibility Segregation) patterns.

When to Use This Skill

  • Separating read and write concerns
  • Scaling reads independently from writes
  • Building event-sourced systems
  • Optimizing complex query scenarios
  • Different read/write data models needed
  • High-performance reporting requirements

Core Concepts

1. CQRS Architecture

                    ┌─────────────┐
                    │   Client    │
                    └──────┬──────┘
                           │
              ┌────────────┴────────────┐
              │                         │
              ▼                         ▼
       ┌─────────────┐          ┌─────────────┐
       │  Commands   │          │   Queries   │
       │    API      │          │    API      │
       └──────┬──────┘          └──────┬──────┘
              │                         │
              ▼                         ▼
       ┌─────────────┐          ┌─────────────┐
       │  Command    │          │   Query     │
       │  Handlers   │          │  Handlers   │
       └──────┬──────┘          └──────┬──────┘
              │                         │
              ▼                         ▼
       ┌─────────────┐          ┌─────────────┐
       │   Write     │─────────►│    Read     │
       │   Model     │  Events  │   Model     │
       └─────────────┘          └─────────────┘

2. Key Components

ComponentResponsibility
CommandIntent to change state
Command HandlerValidates and executes commands
EventRecord of state change
QueryRequest for data
Query HandlerRetrieves data from read model
ProjectorUpdates read model from events

Templates and detailed worked examples

Full template library and detailed worked examples live in references/details.md. Read that file when you need the concrete templates.

Best Practices

Do's

  • Separate command and query models - Different needs
  • Use eventual consistency - Accept propagation delay
  • Validate in command handlers - Before state change
  • Denormalize read models - Optimize for queries
  • Version your events - For schema evolution

Don'ts

  • Don't query in commands - Use only for writes
  • Don't couple read/write schemas - Independent evolution
  • Don't over-engineer - Start simple
  • Don't ignore consistency SLAs - Define acceptable lag
SKILL.md on GitHub

Sponsors

SnugThe clipboard manager you and your agent can use, safelyAgent CaffeineClose your lid, come back to finished workWaxBlock anything with supervision, without erasing your iPhoneOpen StepsSponsoredFree and open-source skills that make AI coding agents easier to understand, verify, and control.

Details

Repository
github.com/wshobson/agents
Category
Debugging

More from wshobson/agents

All 174
  • Python Resource Management11.1K
  • Airflow Dag Patterns11K
  • Dbt Transformation Patterns11K
  • Binary Analysis Patterns11K
  • Incident Runbook Templates11K
  • Paypal Integration11K
  • Temporal Python Testing11K
  • Anti Reversing Techniques11K
  • Angular Migration10.9K
  • Event Store Design10.9K
  • Nx Workspace Patterns10.9K
  • Postmortem Writing10.9K
  • Hybrid Search Implementation10.9K
  • Web3 Testing10.9K
  • Sast Configuration10.8K
  • Distributed Tracing10.8K
  • Screen Reader Testing10.8K
  • Multi Cloud Architecture10.8K
  • Saga Orchestration10.8K
  • Spark Optimization10.8K
  • Similarity Search Patterns10.7K
  • Vector Index Tuning10.7K
  • Hybrid Cloud Networking10.7K
  • Turborepo Caching10.7K

Recommended

More Debugging
1wshobson avatartemporal-python-testingwshobson/agentsTest Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setu11Kinstalls
2googlechrome avatarchrome-extensionsgooglechrome/modern-web-guidanceBuild and publish Chrome Extensions using Manifest V3 best practices. Use this skill whenever the user asks to create, modify, debug, or understand Chrome brows11Kinstalls
3wshobson avataranti-reversing-techniqueswshobson/agentsUnderstand anti-reversing, obfuscation, and protection techniques encountered during software analysis. Use this skill when analyzing malware evasion techniques11Kinstalls
4rohitg00 avataragentmemory-hooksrohitg00/agentmemoryThe agentmemory plugin hooks that capture observations automatically across the agent session lifecycle. Use when explaining how memory gets captured without ma10.8Kinstalls
5wshobson avatarscreen-reader-testingwshobson/agentsTest web applications with screen readers including VoiceOver, NVDA, and JAWS. Use when validating screen reader compatibility, debugging accessibility issues, 10.8Kinstalls
6wshobson avatarsaga-orchestrationwshobson/agentsImplement saga patterns for distributed transactions and cross-aggregate workflows. Use this skill when implementing distributed transactions across microservic10.8Kinstalls