spring-boot-migration

spring-boot-migration is a skill for Claude Code, Codex from rrezartprebreza/spring-boot-skills. It costs 45 tokens per session (559 once invoked), scanned A, original, MIT.

A guide for preparing a Spring Boot 3 application for migration to Spring Boot 4. Spring Boot is a Java framework for building applications; a staged migration upgrades the framework in controlled steps.

In plain words
What is it for?
Use it to upgrade first to Boot 3.5, remove Boot 3 deprecations, check dependency and Spring Cloud compatibility, and plan the Boot 4 migration.
Why use it?
It identifies compatibility work before the major upgrade, including deprecated APIs, Java and Jakarta requirements, dependencies, containers, and tests.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the spring-boot-3-skills plugin — 33 skills shipped together

Good fit Use it to upgrade first to Boot 3.5, remove Boot 3 deprecations, check dependency and Spring Cloud compatibility, and plan the Boot 4 migration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rrezartprebreza/spring-boot-skills/spring-boot-migration
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rrezartprebreza/spring-boot-skills --skill spring-boot-migration
Clone the repo
git clone --depth 1 https://github.com/rrezartprebreza/spring-boot-skills

Made for: Claude Code, Codex.

Or install spring-boot-3-skills, the plugin that ships this one along with the rest of its 33 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spring-boot-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/rrezartprebreza/spring-boot-skills/spring-boot-migration/github.svg)](https://agentmods.dev/skills/rrezartprebreza/spring-boot-skills/spring-boot-migration)
Your own site
<a href="https://agentmods.dev/skills/rrezartprebreza/spring-boot-skills/spring-boot-migration"><img src="https://agentmods.dev/badge/skills/rrezartprebreza/spring-boot-skills/spring-boot-migration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spring-boot-migration

Your own site · 80×15
<a href="https://agentmods.dev/skills/rrezartprebreza/spring-boot-skills/spring-boot-migration"><img src="https://agentmods.dev/badge/skills/rrezartprebreza/spring-boot-skills/spring-boot-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 559 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.00559
Opus 5 $0.00023 $0.00280
Sonnet 5 $0.00009 $0.00112
Haiku 4.5 $0.00005 $0.00056

Measured 10d ago against content hash 105542f5a492, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

spring-boot-migration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/spring-boot-3/spring-boot-migration/SKILL.md · 55 lines

How it starts

The opening of the file, as written. The whole thing — 55 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Spring Boot 3 to 4 Migration

Migrate in controlled stages. Keep behavior changes separate from the framework upgrade.

Establish the baseline

  1. Upgrade to the latest Boot 3.5 maintenance release.
  2. Run unit, slice, integration, startup, and migration tests before changing the major version.
  3. Remove Boot 3 deprecations and record all explicitly versioned dependencies.
  4. Compare the Boot 3.5 and Boot 4 dependency-management reports.
  5. Verify Spring Cloud and other portfolio release-train compatibility independently.

Prepare for Boot 4

  • Require Java 17 or newer; prefer Java 21 for application builds.
  • Replace javax.* remnants with Jakarta APIs before the upgrade.
  • Remove Undertow assumptions; Boot 4 requires a Servlet 6.1-compatible container.
  • Inventory Jackson 2 custom modules, serializers, ObjectMapper beans, and package imports.
  • Inventory test annotations, especially @MockBean, @SpyBean, and implicit MockMvc setup.
  • Add spring-boot-properties-migrator temporarily after changing the Boot version, then remove it.

Migrate dependencies deliberately

Boot 4 is more modular. Prefer dedicated starters over relying on incidental transitive dependencies. Expect dedicated starters for web MVC, security tests, Flyway/Liquibase, and technology-specific tests. Use the classic starters only as a temporary diagnostic bridge, never as the final dependency model.

Verify the result

  • Run the application with every supported profile.
  • Exercise schema migration against a production-like database copy.
  • Verify JSON contracts, security failures, pagination, and error responses.
  • Confirm actuator exposure, logging, metrics, and tracing behavior.
  • Remove the properties migrator and all classic starters before declaring the migration complete.

Examples

  • See examples/good-migration-plan.md for a staged migration.
  • See examples/bad-migration-plan.md for a risky one-step upgrade.

Gotchas

  • Agent jumps from an old Boot 3 minor directly to Boot 4 - upgrade to current 3.5 first.
  • Agent changes framework versions and business behavior together - isolate the migration diff.
  • Agent assumes all Boot 3 starters keep the same names and transitive dependencies - audit each one.
  • Agent leaves spring-boot-properties-migrator in production - remove it after configuration cleanup.
  • Agent treats passing compilation as completion - verify runtime wiring, JSON, security, and tests.

Read the full file on GitHub · 55 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 55 lines · 45 tokens per session scan A 105542f5a492

Subscribe to this mod's changes

spring-boot-migration is a skill published in the GitHub repository rrezartprebreza/spring-boot-skills (260 stars, last pushed 2d ago), licensed MIT. It adds 45 tokens to every session and 559 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

design-patterns

Common design patterns with Java examples (Factory, Builder, Strategy, Observer, Decorator, etc.). Use when user asks "implement pattern", "use factory", "strategy pattern", or when designing extensible components.

decebals/claude-code-java · 47 tokens

solid-principles

SOLID principles checklist with Java examples. Use when a class has too many responsibilities, an abstraction leaks, or a dependency points the wrong way, and when the user asks about Single Responsibility, Open/Closed, Liskov, Interface Segregation or Dependency Inversion. For naming, duplication and method length…

decebals/claude-code-java · 73 tokens

java-migration

Guide for upgrading Java projects between major versions (8→11→17→21→25). Use when user says "upgrade Java", "migrate to Java 25", "update Java version", or when modernizing legacy projects.

decebals/claude-code-java · 51 tokens

jpa-patterns

JPA/Hibernate patterns and common pitfalls (N+1, lazy loading, transactions, queries). Use when user has JPA performance issues, LazyInitializationException, or asks about entity relationships and fetching strategies.

decebals/claude-code-java · 47 tokens

spring-boot-patterns

Spring Boot best practices and patterns. Use when creating controllers, services or repositories, or when the user asks about Spring Boot layering, wiring, configuration or exception handling. For JPA and Hibernate behaviour, use jpa-patterns instead.

decebals/claude-code-java · 53 tokens

test-quality

Write high-quality JUnit 5 tests with AssertJ assertions. Use when user says "add tests", "write tests", "improve test coverage", or when reviewing/creating test classes for Java code.

decebals/claude-code-java · 45 tokens