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
API Documentation Generator
Generate comprehensive API documentation including endpoints, parameters, responses, and examples.
Technical Debt Audit & Refactoring Plan
Analyzes a codebase description or code sample to identify technical debt, prioritize refactoring opportunities, and produce an actionable cleanup plan with effort estimates.
Code Review Roast Session
Get a brutally honest but educational code review with humor
Technical Changelog & Release Notes Writer
Converts raw developer notes, commit messages, or pull request descriptions into polished, user-friendly changelog entries and release notes for multiple audiences.