GitLab Well Architected
Cookbook navigation
Prompts / Migrate from Legacy Framework

Migrate from Legacy Framework

MigrationAutomationDeveloperRefactoringCreateBeginner

Migrate code between frameworks while preserving functionality and adopting modern patterns.

For GitLab Duo

prompt

Migrate this code from [OLD FRAMEWORK] to [NEW FRAMEWORK]:

[PASTE CODE]

Ensure:
1. Functionality is preserved
2. Modern patterns are used
3. Deprecated APIs are updated
4. Tests are updated
5. Performance is maintained

Use the prompt

Share the source code, current versions, and target framework documentation. Existing behavior tests give you something concrete to compare as the implementation changes.