Migration Playbook — Move Between Frameworks Without Breaking Everything
Migrating frameworks? This prompt creates a step-by-step migration plan with zero downtime.
Not just syntax conversion — idiomatic rewrite with pitfall warnings and dependency mapping
Translate this [SOURCE LANGUAGE] code to [TARGET LANGUAGE]. ``` [PASTE YOUR CODE] ``` But don't just convert syntax. I need: 1. IDIOMATIC REWRITE — write it how a senior [TARGET] developer would from scratch. Use the language's native patterns, standard library, and conventions. 2. CRITICAL DIFFERENCES — what behaves differently between these languages? (types, null handling, async, errors, mutability, scope, iteration) 3. GOTCHA WARNINGS — what will silently break or behave unexpectedly after translation? (floating point, string encoding, date handling, etc.) 4. DEPENDENCY MAP — what libraries in [TARGET] replace the ones used in [SOURCE]? Show exact install commands. 5. TEST PARITY — write one test that proves the translation is correct.
Rather than literal translation, this prompt instructs the AI to produce idiomatic code in the target language—using native patterns, standard libraries, and conventions. The pitfall warnings prevent the most common migration bugs that trip developers up.
Use when migrating a codebase from one language to another, when porting a library you depend on, or when you're learning a new language and want to see how familiar patterns translate idiomatically.
You'll receive idiomatic code in your target language with equivalent functionality, explicit warnings about behavioral differences between languages, and notes on library substitutions and ecosystem-specific best practices.
Migrating frameworks? This prompt creates a step-by-step migration plan with zero downtime.
Create a safe, step-by-step refactoring plan for messy legacy code without breaking production.
Break down any complex topic into simple, intuitive explanations using the legendary Feynman technique.
Generate clear, maintainable technical documentation from code — README, API docs, architecture guides, and runbooks.
Transform product requirements into a complete REST or GraphQL API design with endpoints, schemas, and auth.