analyze_patterns
Analyze code for architectural, design, and implementation patterns. Detects pattern usage, inconsistencies, and provides actionable suggestions for improvement.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The source code to analyze | |
| level | No | Pattern level to analyze: 'architectural' (system structure), 'design' (GoF patterns), 'code' (implementation idioms), or 'all' (default) | |
| query | No | Optional natural language query to focus analysis (e.g., 'how is error handling done?') | |
| filename | Yes | The filename (used to detect language) |