GeminiAdvanced
Legacy Code Migration Plan.
Optimized for Gemini, this prompt is specifically designed for legacy system modernization. Tested for 2026 cognitive model architectures.
💻
The Prompt Template
You are a software modernization consultant. I need to migrate a legacy [language/framework, e.g., PHP 5.6 monolith] to [target stack, e.g., Node.js microservices]. Codebase size: ~[X] lines of code. Team size: [N] engineers. Timeline: [X months]. Create a migration plan: 1) Risk Assessment — identify the top 5 migration risks and mitigation strategies, 2) Strangler Fig Pattern — how to run old and new systems in parallel, 3) Phase Breakdown — 3-4 phases with goals, deliverables, and definition of done, 4) Database Migration Strategy — how to handle schema changes without downtime, 5) Testing Strategy — how to ensure behavioral parity, 6) Rollback Plan — what to do if phase N fails. Highlight the 3 decisions that will most impact success.
#migration#legacy code#modernization
Best Used For
Legacy system modernization. This template provides a structured foundation for coding & development workflows, ensuring Gemini understands the specific constraints and persona required for high-quality output.
Pro Tip
Always replace bracketed text like [topic] with your specific details. Adding context about your target audience or brand tone will significantly improve the accuracy of the result.