← All Prompts
AI Prompt
Legacy Code Refactor Risk Map
A practical AI prompt for Coding & Development: Legacy Code Refactor Risk Map. Built for clear inputs, evidence-aware decisions, and a usable final result.

PROMPT GUIDE
PROMPT GUIDE / CODING & DEVELOPMENT
Use this practical prompt to create a clear, evidence-aware deliverable for Coding & Development work.
READY-TO-USE PROMPT
Legacy Code Refactor Risk Map
COPY THIS PROMPT
Analyze this legacy component before refactoring: [CODE OR DESCRIPTION]. Map responsibilities, dependencies, hidden contracts, state transitions, failure modes, security concerns, and missing tests. Propose an incremental refactor sequence with reversible checkpoints, characterization tests, migration risks, and explicit conditions for stopping or rolling back. INPUTS [Paste your goal, source material, constraints, audience, deadline, and required output.] QUALITY RULES - Separate confirmed facts, assumptions, and missing information. - Do not invent sources, measurements, results, quotes, or requirements. - Make recommendations specific, prioritized, and testable. - State risks, dependencies, and the next practical action. - Ask focused questions when missing context would materially change the answer.
How to use it
- Replace every bracketed field with real project information.
- Attach representative examples, evidence, and constraints.
- Review assumptions and verify important claims before using the result.
- Run the prompt again with corrections when new evidence appears.

