detect_patterns
Analyze source code to detect common design patterns like Singleton and Factory across multiple programming languages.
Instructions
Detect design patterns in source code (Singleton, Factory, Observer, Strategy, Decorator, Builder, Adapter, Command, Template Method, Chain of Responsibility). Supports 9 languages: Python, JavaScript, TypeScript, C++, C, C#, Go, Rust, Java, Ruby, PHP.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| directory | No | ||
| output | No | ||
| depth | No | deep | |
| json | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |