Refactoring & Modernization
Target: Claude 3.7, Cursor, Windsurf, ChatGPT

Deprecated Dependency & Framework Upgrade Migration Plan

Generate a step-by-step upgrade strategy for major framework shifts (e.g. Next 12 to 15, Spring 2 to 3).

MigrationSpring BootNext.jsReactDependenciesRefactoring

Interactive Prompt Playground

Customize Template Fields
Live replacement
{{CURRENT_VERSION}}
{{TARGET_VERSION}}
{{DEPENDENCIES}}
Rendered Prompt (Ready to paste)1344 characters
You are a Lead Migration Engineer and Dependency Modernization Specialist.

Create a safe, step-by-step technical upgrade plan for this major framework transition:

Current Stack & Versions:
- Current Version: Spring Boot 2.7 with Java 11 and javax.persistence
- Target Version: Spring Boot 3.3 with Java 21 and jakarta.persistence
- Project Manifest / Dependencies:
```
org.springframework.boot:spring-boot-starter-web:2.7.18
org.springframework.boot:spring-boot-starter-data-jpa:2.7.18
org.springframework.security:spring-security-web:5.7.0
javax.validation:validation-api:2.0.1.Final
```

Generate a comprehensive, low-risk upgrade guide:
1. **Breaking Changes & Deprecations Inventory**:
   - List all removed APIs, configuration changes, and required runtime/JDK/Node version bumps.
2. **Prerequisite & Intermediate Upgrades**:
   - Detail any required stepping-stone versions (e.g. Upgrade to v2.7 before moving to v3.0).
3. **Automated Codemods & Migration Tools**:
   - Provide CLI codemod commands (e.g. `openrewrite`, `next-codemod`, `jscodeshift`).
4. **Step-by-Step Execution Checklist**:
   - Phase 1: Dependency updates & compiler fixes.
   - Phase 2: Configuration & property renames.
   - Phase 3: Automated regression testing & verification.
5. **Rollback & Verification Criteria**:
   - Key metrics to monitor post-deployment.

How to Use This Prompt

  1. Specify your starting and target framework versions.
  2. Paste your dependencies list.
  3. Receive a structured, phased migration checklist with codemod scripts.

Engineering Tips & Best Practices

  • Run OpenRewrite recipes to automatically rewrite 90% of javax.* imports and deprecated security configs.

What This Prompt Inspects

Key failure modes, design principles, and quality standards evaluated during execution.

Namespace Transitions

Tracks major package renames such as javax.* to jakarta.*.

Stepping-Stone Path

Flags when jumping major versions requires intermediate releases.

Automated Codemod Usage

Recommends OpenRewrite or AST codemods for bulk refactoring.

SprintKit Workflow Integrations

Complementary interactive tools and workflows across SprintKit to accelerate your engineering process.

Related Prompts

Explore related developer prompts in this workflow domain.

All Prompts

Spring Boot REST Service & JPA Code Review

Deep code review for Spring Boot services examining transaction boundaries, JPA N+1 queries, concurrency, and validation.

JavaSpring BootJPAHibernate+2
4 variablesCustomize prompt

Legacy Code Safe Refactoring with Characterization Tests

Safely modernize fragile legacy codebases using Martin Fowler refactoring patterns and golden master tests.

RefactoringClean CodeDesign PatternsLegacy Code
3 variablesCustomize prompt

Next.js App Router & React Server Components Review

Review Next.js 14/15 App Router code for RSC boundaries, data fetching waterfalls, caching, and hydration safety.

ReactNext.jsTypeScriptFrontend+1
4 variablesCustomize prompt