CQRS Architecture Guide
Provides standardized patterns and PHP implementation guidelines for Command Query Responsibility Segregation (CQRS) audits and development.
This skill serves as a comprehensive knowledge base for implementing and auditing CQRS architecture within PHP environments. It equips Claude with the ability to identify architectural violations—such as side effects in queries or logic-heavy handlers—while providing clear checklists for commands, queries, and handlers. Whether you are building a new system or reviewing an existing codebase, this skill ensures strict adherence to separation of concerns and industry-standard patterns like those found in PHP 8.4, helping developers maintain clean, scalable backend systems.
主要功能
01Guidance on Command and Query Bus routing and domain event dispatching
0245 GitHub stars
03Comprehensive checklists for Command, Query, and Handler integrity
04Violation detection patterns for identifying common CQRS antipatterns
05Clear separation of concerns for write-side and read-side models
06Modern PHP 8.4 implementation examples using readonly classes
使用场景
01Conducting architectural code reviews to ensure strict CQRS compliance
02Generating boilerplate for modern PHP 8.4 CQRS components and DTOs
03Refactoring legacy service layers into decoupled Command and Query handlers