Legacy Code Refactoring Plan
Creates a step-by-step refactoring plan for legacy code with risk assessment
123 views
0 copies
C
nextpj·Feb 22, 2026
codingcodingrefactoringlegacy-code
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
Technical Changelog Writer
Generate professional changelogs from a list of code changes or commits
1230changelog
Code Review Security Auditor
Perform a security-focused code review identifying vulnerabilities
1160security
Legacy Code Migration Assistant
Analyze and plan migration of legacy code to modern tech stack
1140migration
Agentic Code Architect
Design autonomous AI agent systems for complex tasks
1310agent