find_pattern_usage
Analyze code across multiple files to identify specific pattern usage with regex support and context analysis for understanding complex code and technical debt assessment.
Instructions
Find usage of specific patterns across multiple files in a project. Supports regex patterns with intelligent context analysis.
WORKFLOW: Perfect for understanding complex code, identifying issues, and technical debt assessment TIP: Use Desktop Commander to read files, then pass content here for analysis SAVES: Claude context for strategic decisions
Input Schema
Name | Required | Description | Default |
---|---|---|---|
analysisDepth | No | Level of analysis detail | detailed |
analysisType | No | Type of analysis to perform | comprehensive |
code | No | The code to analyze (for single-file analysis) | |
filePath | No | Path to single file to analyze | |
files | No | Array of specific file paths (for multi-file analysis) | |
includeContext | No | Number of context lines to include (0-10) | |
language | No | Programming language | javascript |
maxDepth | No | Maximum directory depth for multi-file discovery (1-5) | |
patterns | Yes | Patterns to search for (regex supported) | |
projectPath | No | Absolute path to project root directory |