detect_patterns
Detect design patterns (Singleton, Factory, Observer, etc.) in source code across 10 languages. Choose depth of analysis and output results in JSON.
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 | ||
| json | No | ||
| depth | No | deep | |
| output | No | ||
| directory | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |