What problem does it solve? Understanding where to draw service and module boundaries in a codebase is hard, and grouping code by technical layers instead of business language leads to tangled domains, tight coupling, and unclear ownership. This Skill analyzes any codebase to map business domains, classify subdomains, and recommend bounded contexts grounded in Domain-Driven Design. ## Core Features & Use Cases - Subdomain Identification & Classification: Extracts entities, services, use cases, and controllers, groups them by Ubiquitous Language, and classifies each subdomain as Core, Supporting, or Generic using a decision tree. - Cohesion Scoring & Issue Detection: Computes a 10-point cohesion score (linguistic, usage, data, change) and flags low-cohesion problems like linguistic mismatches, cross-domain entity references, and generic logic inside core domains. - Bounded Context Mapping: Produces domain maps, cross-domain cohesion matrices, prioritized issue reports, and suggested bounded contexts with integration patterns such as Domain Events, Anti-Corruption Layers, and Open Host Services. - Use Case: Ask the agent to analyze a monolithic e-commerce codebase; it identifies Catalog, Order, Payment, and Shipping subdomains, scores their cohesion, flags the Customer entity leaking across contexts, and recommends value-object identifiers plus event-driven integration. ## Quick Start Ask the agent to analyze the domains in this codebase and suggest bounded contexts with cohesion scores.