What problem does it solve? Large TypeScript codebases often accumulate god objects—like a 1,440-line orchestrator handling tasks, sessions, health, and lifecycle—which become untestable and hard to maintain. This Skill guides the decomposition of such monoliths into modular, bounded contexts with clean architecture. ## Core Features & Use Cases - Domain Decomposition: Breaks god objects into focused domains (task management, session management, health monitoring) with entities, value objects, services, and repositories. - Microkernel & Plugin Architecture: Implements a core kernel that loads domains and supports optional plugins like swarm coordination. - Event-Driven Communication: Defines domain events and handlers for loose coupling between bounded contexts. - Use Case: Refactoring a claude-flow orchestrator into five independent domains, each under 300 lines, with >90% domain test coverage and a phased migration plan. ## Quick Start Ask the AI to analyze the current orchestrator architecture and design DDD bounded contexts with clean interfaces and a migration plan.