DDD Aggregate Consistency Audit

•
45
•

Audits PHP code for Domain-Driven Design (DDD) aggregate compliance to ensure transactional consistency and robust domain boundaries.

This skill automates the review of DDD aggregate patterns in PHP applications, ensuring that business logic remains encapsulated within aggregate roots. It identifies critical architectural flaws such as cross-aggregate transactions, improper entity access, and leaked invariants, helping developers maintain clean architecture, high data integrity, and scalable domain models. By analyzing grep patterns and code structures, it provides actionable feedback to fix violations of identity-based referencing and 'God Object' anti-patterns.

주요 기능

01Identifies direct access to child entities bypassing aggregate roots.
02Analyzes aggregate size to prevent 'God Object' anti-patterns.
03Detects cross-aggregate transaction violations to ensure atomicity.
0445 GitHub stars
05Enforces identity-based referencing between aggregates to reduce coupling.
06Flags business invariants implemented outside of domain models.

사용 사례

01Onboarding new developers to ensure DDD best practices are followed.
02Performing automated architectural reviews during code refactoring.
03Auditing legacy PHP projects transitioning to Hexagonal or Clean Architecture.