BACK TO TEMPLATES
promptany
Refactoring Plan and Impact Assessment Prompt
Structured prompt template for planning large code refactorings safely with step-by-step validation goals.
When to use this
Use this prompt before initiating major refactoring work across multiple files.
The template
Formulate a multi-step Refactoring Implementation Plan for the target component. Deliverables: 1. **Current State Analysis**: Identify architectural smells, tight coupling, or performance bottlenecks. 2. **Target Architecture**: Define the desired interface contracts and module layout. 3. **Step-by-Step Execution Plan**: Break implementation into small, reviewable commits that preserve working builds at each step. 4. **Verification Strategy**: Specify the exact build and test commands required to validate each step. Code/Architecture Details: [PASTE DETAILS HERE]
How to use
Run this prompt during design planning sessions.
Last verified 2026-07-26