Legacy Code Refactoring Plan
Creates a step-by-step refactoring plan for legacy code with risk assessment
Content
Analyze this legacy {{language}} code and create a detailed refactoring plan: ``` {{code}} ``` Provide: 1) Code smell identification with severity ratings, 2) A prioritized refactoring sequence (what to change first and why), 3) Risk assessment for each change, 4) Suggested design patterns to apply, 5) The refactored code with comments explaining each improvement, 6) Test cases to verify behavior preservation.
Related Prompts
Code Review Critic
Perform thorough code review with security, performance, and best practices feedback
Automated Code Review Critic
Perform comprehensive automated code review with security, performance, and best practices analysis
AI Agent System Design Blueprint
Design a multi-agent AI system architecture for any use case
Regex Pattern Generator and Explainer
Generates precise regular expressions for any text matching task and explains each component in plain English, with test cases and language-specific implementation code.