suggest_refactoring
Analyze code to suggest refactoring improvements for readability, performance, and maintainability using project-specific patterns for single or multiple files.
Instructions
Analyze code and suggest refactoring improvements with project-specific patterns (handles both single and multi-file)
WORKFLOW: Ideal for creating production-ready code, tests, and documentation TIP: Generate unlimited iterations locally, then review with Claude SAVES: Claude context for strategic decisions
Input Schema
Name | Required | Description | Default |
---|---|---|---|
analysisDepth | No | Level of analysis detail | detailed |
analysisType | No | Type of refactoring to focus on | comprehensive |
code | No | The code to analyze for refactoring (for single-file analysis) | |
context | No | Optional context for project-specific refactoring | |
filePath | No | Path to single file to refactor | |
files | No | Array of specific file paths (for multi-file analysis) | |
focusAreas | No | Areas to focus on for refactoring | |
language | No | Programming language | javascript |
maxDepth | No | Maximum directory depth for multi-file discovery (1-5) | |
projectPath | No | Path to project root (for multi-file refactoring analysis) |