detect_patterns
Maps architectural patterns in a project directory and identifies refactoring candidates such as base classes, traits, or interfaces based on similarity thresholds.
Instructions
Maps project architectural patterns (MVC, Repository, etc.) and suggests refactoring candidates (Base Class, Trait, Interface).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dirPath | Yes | The absolute path to the project directory. | |
| minSimilarity | No | Minimum similarity score (0-1) to suggest abstraction. Default: 0.8 | |
| focus | No | Optional focus area. | |
| includePath | No | Optional glob patterns to include. | |
| excludePath | No | Optional glob patterns to exclude. |