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.
npx skills add Phaedra-Solutions/cursor-rules --skill upgrade-spring-bootgit clone --depth 1 https://github.com/Phaedra-Solutions/cursor-rulesWrote 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.
[](https://agentmods.dev/skills/phaedra-solutions/cursor-rules/upgrade-spring-boot)<a href="https://agentmods.dev/skills/phaedra-solutions/cursor-rules/upgrade-spring-boot"><img src="https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/upgrade-spring-boot/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.
<a href="https://agentmods.dev/skills/phaedra-solutions/cursor-rules/upgrade-spring-boot"><img src="https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/upgrade-spring-boot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00150 | $0.01696 |
| Opus 5.5 | $0.00060 | $0.00678 |
| Sonnet 5.5 | $0.00030 | $0.00339 |
| Haiku 4.5 | $0.00015 | $0.00170 |
Grade A, and why
upgrade-spring-boot 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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Upgrade Spring Boot
When to use
- The user asks to upgrade Spring Boot or the JDK, or the project is on Boot 2.x/3.x or Java below 21 (see
legacy/java-spring-boot-legacy). - A security fix exists only in a supported line (4.0, 4.1).
For a patch release within the same line, update the version and run Verify.
Before you start
- Read the Boot version, Java release, build tool (Maven or Gradle, wrapper version), Spring Cloud release train, and libraries with their own Spring compatibility (springdoc, MapStruct, Lombok, Hibernate, Flyway/Liquibase, Testcontainers, Spring Cloud).
- Working tree clean; new branch (
chore/spring-boot-3.5); the build and tests pass before you start (record failures). - Ask the user:
- the target (default: Boot 4.1 on Java 21 or 25);
- whether to stop after each hop for review;
- whether downloading the OpenRewrite plugin and recipe artifacts is approved (
core/supply-chain). Note thatrewrite-springandrewrite-migrate-javaare under the Moderne Source Available License (free to run; not OSI open source), and the full Boot 4.1 recipe (io.moderne.java.spring.boot4.UpgradeSpringBoot_4_1) is proprietary and runs with the Moderne CLI. The steps below use only the source-available recipes.
- Plan the hops: JDK first if needed (Boot 3+ needs Java 17+), then 2.7 → 3.5 → 4.0 → 4.1. From Boot 2.0–2.6, patch to 2.7.18 first.
- Current tool versions (Oct 2026):
rewrite-maven-plugin6.46.1,rewrite-spring6.37.1,rewrite-migrate-java3.42.1, Gradle pluginorg.openrewrite.rewrite7.41.0. Re-check Maven Central before use.
Steps
-
Baseline:
./mvnw verify(or./gradlew build); save the dependency tree and/actuator/mappingsoutput from a local run. -
JDK upgrade (if needed), dry run first; the patch lands in
target/rewrite/rewrite.patch:./mvnw -U org.openrewrite.maven:rewrite-maven-plugin:6.46.1:dryRun \ -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-migrate-java:3.42.1 \ -Drewrite.activeRecipes=org.openrewrite.java.migrate.UpgradeToJava21
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.
- 3d ago First seen · 76 lines · 150 tokens per session scan A 0cc51d5a7388
upgrade-spring-boot is a skill published in the GitHub repository Phaedra-Solutions/cursor-rules (4 stars, last pushed 2d ago), licensed MIT. It adds 150 tokens to every session and 1,696 once invoked, about $0.0006 per session on Opus 5.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-11-01.
Other skills, from other repositories
java-unit-test
A code-generation guide for Java unit tests in Spring Boot projects. Unit tests check one small piece of code in isolation; Spring Boot is a Java framework for building web applications and services.
java-coding-standards
Java coding standards for Spring Boot services: naming, immutability, Optional usage, streams, exceptions, generics, and project layout.
java
Use when writing, reviewing or refactoring modern Java (21+, 25 LTS) — records and sealed interfaces as algebraic data types, exhaustive pattern-matching switch over instanceof ladders, virtual-thread concurrency, structured concurrency and ScopedValue replacing ThreadLocal, Stream and Optional pipelines…
java-spring-development
Java Spring Boot development guidelines with best practices for building robust, secure, and maintainable enterprise applications.
java-coding-standards
A set of Java coding standards for Spring Boot services, covering naming, immutable data, optional values, streams, and exceptions.
java-idioms
Modern Java (17/21+ LTS) idioms: records, sealed classes, pattern matching switch, Optional hygiene, streams, and JUnit 5 testing. Use when writing, refactoring, or reviewing Java core logic, domain models, or libraries. Pair with spring-boot-idioms for Spring services.