What problem does it solve?
Projects often accumulate source files in parent namespaces that have child components, creating "orphaned" classes with unclear ownership, brittle imports, and poor modular boundaries. This skill detects those root-namespace violations, explains their impact on maintainability and coupling, and provides pragmatic refactoring strategies to restore clear, leaf-only component structure.
Core Features & Use Cases
- Namespace Mapping: Scan directory or package trees and produce a component/namespace map that highlights leaf nodes and extended (root) namespaces.
- Orphaned Class Detection & Classification: Locate source files in root namespaces, classify them as domain/shared/mixed, and show their consuming components and dependencies.
- Flattening Recommendations & Plans: For each violation propose consolidate, split, or extract-shared strategies, generate step-by-step refactoring plans, and estimate effort and risk for execution.
- Use Case: Prepare a legacy codebase for domain grouping by identifying orphaned classes in parent packages, extracting shared utilities, and consolidating small leaf components into single components.
Quick Start
Find orphaned classes in my repository, map component namespaces, and produce a recommended flattening plan with priorities.