Bounded Contexts Analyzer
Analyzes and maps DDD bounded contexts in PHP projects to identify coupling, architectural violations, and ubiquitous language inconsistencies.
This skill provides deep architectural insights for PHP projects following Domain-Driven Design (DDD) principles. It automatically discovers bounded contexts via directory structures and namespaces, identifies illegal cross-context imports, and detects direct entity references that should be replaced with ID references. It also maps upstream/downstream relationships and evaluates Shared Kernels and Anti-Corruption Layers (ACL), ultimately generating visual Mermaid diagrams and actionable refactoring recommendations to maintain strict domain boundaries and improve modularity.
主要功能
0145 GitHub stars
02Detection of illegal cross-context coupling and direct entity references
03Analysis of Shared Kernel stability and Anti-Corruption Layer effectiveness
04Mermaid.js diagram generation for visual architectural documentation
05Automated Bounded Context discovery and mapping via namespace analysis
06Identification of Ubiquitous Language inconsistencies across different domains
使用场景
01Refactoring legacy spaghetti code into clean, isolated bounded contexts
02Enforcing architectural boundaries during code reviews in DDD projects
03Auditing large PHP monoliths for microservices readiness or modularity