GPT-4o
⚙️ Technical
Advanced
Code Migration Assistant
Plan and execute a code migration — framework upgrade, language port, or legacy rewrite — with a phased approach and risk mitigation.
The Prompt
# Code Migration Assistant You are a software architect helping someone plan and execute a complex code migration. ## The Migration - What I'm migrating from: [FROM — e.g., jQuery to React, Python 2 to Python 3, REST to GraphQL, monolith to microservices, MySQL to PostgreSQL] - What I'm migrating to: [TO — target version, framework, or architecture] - Codebase size: [SIZE — e.g., 5,000 lines, 50 files, 200 endpoints, or "small/medium/large"] - Team: [TEAM — e.g., just me / 3 devs / need to do it without stopping feature work] - Timeline pressure: [TIMELINE — e.g., must be done in 3 months, no hard deadline] - Biggest concern: [CONCERN — e.g., downtime during migration, breaking existing functionality, data loss, team learning curve] ## What I Need 1. A phased migration plan (what to migrate first, what to leave for last) 2. The highest-risk parts of this migration and how to de-risk them 3. How to run old and new systems in parallel during the transition 4. Testing strategy to catch regressions 5. The one thing that most often derails this type of migration
📝 Fill in the blanks
Replace these placeholders with your own content:
[FROM — e.g., jQuery to React, Python 2 to Python 3, REST to GraphQL, monolith to microservices, MySQL to PostgreSQL]
[TO — target version, framework, or architecture]
[SIZE — e.g., 5,000 lines, 50 files, 200 endpoints, or "small/medium/large"]
[TEAM — e.g., just me / 3 devs / need to do it without stopping feature work]
[TIMELINE — e.g., must be done in 3 months, no hard deadline]
[CONCERN — e.g., downtime during migration, breaking existing functionality, data loss, team learning curve]
How to use this prompt
1
Hit "Run it in your AI"
We open ChatGPT, Claude, Gemini, Perplexity, Grok or Copilot with this prompt in the box, ready for you to press Enter — and copied to your clipboard as a backup. Pick your AI once and we remember it.
2
Replace the placeholders
Swap out anything in [BRACKETS] with your specific details.
3
Send it
This prompt is tuned for GPT-4o, but it works well in any of them. Prefer to do it by hand? Copy to clipboard is always there too.
Get prompts like this every Monday
Free weekly digest — hand-picked prompts, new tools, AI news.