Spring Boot Patterns
decebals/claude-code-java
Spring Boot best practices and patterns. An agent skill from decebals/claude-code-java.
Migrate RestTemplate to RestClient in Spring Boot 3.2+. An agent skill from benchflow-ai/skillsbench.
$ npx skills add benchflow-ai/skillsbench --skill restclient-migration -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install benchflow-ai/skillsbench restclient-migration --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/benchflow-ai/skillsbench.git skills-src && mkdir -p .claude/skills && cp -r skills-src/tasks/spring-boot-jakarta-migration/environment/skills/restclient-migration .claude/skills/restclient-migration && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "restclient-migration" agent skill from https://github.com/benchflow-ai/skillsbench/tree/main/tasks/spring-boot-jakarta-migration/environment/skills/restclient-migration into .claude/skills/restclient-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "restclient-migration", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/benchflow-ai/skillsbench/tree/main/tasks/spring-boot-jakarta-migration/environment/skills/restclient-migrationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add benchflow-ai/skillsbench --skill restclient-migration -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install benchflow-ai/skillsbench restclient-migration --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/benchflow-ai/skillsbench.git skills-src && mkdir -p .agents/skills && cp -r skills-src/tasks/spring-boot-jakarta-migration/environment/skills/restclient-migration .agents/skills/restclient-migration && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "restclient-migration" agent skill from https://github.com/benchflow-ai/skillsbench/tree/main/tasks/spring-boot-jakarta-migration/environment/skills/restclient-migration into .agents/skills/restclient-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "restclient-migration", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add benchflow-ai/skillsbench --skill restclient-migration -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install benchflow-ai/skillsbench restclient-migration --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/benchflow-ai/skillsbench.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/tasks/spring-boot-jakarta-migration/environment/skills/restclient-migration .cursor/skills/restclient-migration && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "restclient-migration" agent skill from https://github.com/benchflow-ai/skillsbench/tree/main/tasks/spring-boot-jakarta-migration/environment/skills/restclient-migration into .cursor/skills/restclient-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "restclient-migration", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/benchflow-ai/skillsbench.git --path tasks/spring-boot-jakarta-migration/environment/skills/restclient-migration--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add benchflow-ai/skillsbench --skill restclient-migration -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install benchflow-ai/skillsbench restclient-migration --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/benchflow-ai/skillsbench.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/tasks/spring-boot-jakarta-migration/environment/skills/restclient-migration .gemini/skills/restclient-migration && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "restclient-migration" agent skill from https://github.com/benchflow-ai/skillsbench/tree/main/tasks/spring-boot-jakarta-migration/environment/skills/restclient-migration into .gemini/skills/restclient-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "restclient-migration", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install benchflow-ai/skillsbench restclient-migrationInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add benchflow-ai/skillsbench --skill restclient-migration -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/benchflow-ai/skillsbench.git skills-src && mkdir -p .github/skills && cp -r skills-src/tasks/spring-boot-jakarta-migration/environment/skills/restclient-migration .github/skills/restclient-migration && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "restclient-migration" agent skill from https://github.com/benchflow-ai/skillsbench/tree/main/tasks/spring-boot-jakarta-migration/environment/skills/restclient-migration into .github/skills/restclient-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "restclient-migration", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add benchflow-ai/skillsbench --skill restclient-migration -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install benchflow-ai/skillsbench restclient-migration --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/benchflow-ai/skillsbench.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/tasks/spring-boot-jakarta-migration/environment/skills/restclient-migration .opencode/skills/restclient-migration && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "restclient-migration" agent skill from https://github.com/benchflow-ai/skillsbench/tree/main/tasks/spring-boot-jakarta-migration/environment/skills/restclient-migration into .opencode/skills/restclient-migration/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "restclient-migration", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
restclient-migrationMigrate RestTemplate to RestClient in Spring Boot 3.2+. An agent skill from benchflow-ai/skillsbench.
Restclient Migration is an agent skill from benchflow-ai/skillsbench. Migrate RestTemplate to RestClient in Spring Boot 3.2+. Use when replacing deprecated RestTemplate with modern fluent API, updating HTTP client code, or configuring RestClient beans. Covers GET/POST/DELETE migrations, error handling, and ParameterizedTypeReference usage.
Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs, covering Backend development and Error handling. It works with Spring Boot. The repository describes itself as: SkillsBench evaluates how well skills work and how effective agents are at using them. The licence is Apache-2.0.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 9a1f4dd. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are java).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Restclient Migration loads about 2.1k tokens when it runs. Until then it costs about 73 tokens; SKILL.md has 146 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from benchflow-ai/skillsbench at commit 9a1f4dd, republished under its Apache-2.0 licence (© benchflow-ai). 146 words, ~2,129 tokens.
.claude/skills/restclient-migration/SKILL.md (or your agent's skills folder).Spring Framework 6.1 (Spring Boot 3.2+) introduces RestClient, a modern, fluent API for synchronous HTTP requests that replaces the older RestTemplate. While RestTemplate still works, RestClient is the recommended approach for new code.
| Feature | RestTemplate | RestClient |
|---|---|---|
| API Style | Template methods | Fluent builder |
| Configuration | Constructor injection | Builder pattern |
| Error handling | ResponseErrorHandler | Status handlers |
| Type safety | Limited | Better with generics |
@Service
public class ExternalApiService {
private final RestTemplate restTemplate;
public ExternalApiService() {
this.restTemplate = new RestTemplate();
}
public Map<String, Object> getUser(String userId) {
String url = "https://api.example.com/users/" + userId;
ResponseEntity<Map> response = restTemplate.getForEntity(url, Map.class);
return response.getBody();
}
}@Service
public class ExternalApiService {
private final RestClient restClient;
public ExternalApiService() {
this.restClient = RestClient.create();
}
public Map<String, Object> getUser(String userId) {
return restClient.get()
.uri("https://api.example.com/users/{id}", userId)
.retrieve()
.body(new ParameterizedTypeReference<Map<String, Object>>() {});
}
}public void sendNotification(String userId, String message) {
String url = baseUrl + "/notifications";
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_JSON);
headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));
Map<String, String> payload = Map.of(
"userId", userId,
"message", message
);
HttpEntity<Map<String, String>> request = new HttpEntity<>(payload, headers);
restTemplate.postForEntity(url, request, Void.class);
}public void sendNotification(String userId, String message) {
Map<String, String> payload = Map.of(
"userId", userId,
"message", message
);
restClient.post()
.uri(baseUrl + "/notifications")
.contentType(MediaType.APPLICATION_JSON)
.accept(MediaType.APPLICATION_JSON)
.body(payload)
.retrieve()
.toBodilessEntity();
}public Map<String, Object> enrichUserProfile(String userId) {
String url = baseUrl + "/users/" + userId + "/profile";
HttpHeaders headers = new HttpHeaders();
headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));
HttpEntity<?> request = new HttpEntity<>(headers);
ResponseEntity<Map> response = restTemplate.exchange(
url,
HttpMethod.GET,
request,
Map.class
);
return response.getBody();
}public Map<String, Object> enrichUserProfile(String userId) {
return restClient.get()
.uri(baseUrl + "/users/{id}/profile", userId)
.accept(MediaType.APPLICATION_JSON)
.retrieve()
.body(new ParameterizedTypeReference<Map<String, Object>>() {});
}public boolean requestDataDeletion(String userId) {
try {
String url = baseUrl + "/users/" + userId + "/data";
restTemplate.delete(url);
return true;
} catch (Exception e) {
return false;
}
}public boolean requestDataDeletion(String userId) {
try {
restClient.delete()
.uri(baseUrl + "/users/{id}/data", userId)
.retrieve()
.toBodilessEntity();
return true;
} catch (Exception e) {
return false;
}
}@Configuration
public class RestClientConfig {
@Value("${external.api.base-url}")
private String baseUrl;
@Bean
public RestClient restClient() {
return RestClient.builder()
.baseUrl(baseUrl)
.defaultHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE)
.defaultHeader(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON_VALUE)
.build();
}
}@Service
public class ExternalApiService {
private final RestClient restClient;
public ExternalApiService(RestClient restClient) {
this.restClient = restClient;
}
// Methods can now use relative URIs
public Map<String, Object> getUser(String userId) {
return restClient.get()
.uri("/users/{id}", userId)
.retrieve()
.body(new ParameterizedTypeReference<Map<String, Object>>() {});
}
}public Map<String, Object> getUserWithErrorHandling(String userId) {
return restClient.get()
.uri("/users/{id}", userId)
.retrieve()
.onStatus(HttpStatusCode::is4xxClientError, (request, response) -> {
throw new UserNotFoundException("User not found: " + userId);
})
.onStatus(HttpStatusCode::is5xxServerError, (request, response) -> {
throw new ExternalServiceException("External service error");
})
.body(new ParameterizedTypeReference<Map<String, Object>>() {});
}// For generic types like Map or List
Map<String, Object> map = restClient.get()
.uri("/data")
.retrieve()
.body(new ParameterizedTypeReference<Map<String, Object>>() {});
List<User> users = restClient.get()
.uri("/users")
.retrieve()
.body(new ParameterizedTypeReference<List<User>>() {});// For simple types
User user = restClient.get()
.uri("/users/{id}", userId)
.retrieve()
.body(User.class);
String text = restClient.get()
.uri("/text")
.retrieve()
.body(String.class);@Service
public class ExternalApiService {
private final RestTemplate restTemplate;
@Value("${external.api.base-url}")
private String baseUrl;
public ExternalApiService() {
this.restTemplate = new RestTemplate();
}
public boolean verifyEmail(String email) {
try {
String url = baseUrl + "/verify/email?email=" + email;
ResponseEntity<Map> response = restTemplate.getForEntity(url, Map.class);
return Boolean.TRUE.equals(response.getBody().get("valid"));
} catch (Exception e) {
return false;
}
}
}@Service
public class ExternalApiService {
private final RestClient restClient;
@Value("${external.api.base-url}")
private String baseUrl;
public ExternalApiService() {
this.restClient = RestClient.create();
}
public boolean verifyEmail(String email) {
try {
Map<String, Object> response = restClient.get()
.uri(baseUrl + "/verify/email?email={email}", email)
.retrieve()
.body(new ParameterizedTypeReference<Map<String, Object>>() {});
return response != null && Boolean.TRUE.equals(response.get("valid"));
} catch (Exception e) {
return false;
}
}
}For reactive applications, use WebClient instead:
// WebClient for reactive/async operations
WebClient webClient = WebClient.create(baseUrl);
Mono<User> userMono = webClient.get()
.uri("/users/{id}", userId)
.retrieve()
.bodyToMono(User.class);RestClient is preferred for synchronous operations in non-reactive applications.
© benchflow-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in tasks/spring-boot-jakarta-migration/environment/skills/restclient-migration of benchflow-ai/skillsbench.
Open the folder on GitHubat commit 9a1f4dd
Restclient Migration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Restclient Migration this skillbenchflow-ai/skillsbench | 1.8k | — | ~2.1k | Automated safety check: Pass | Apache-2.0 | |
| Spring Boot Patternsdecebals/claude-code-java | 751 | — | ~3.2k | Automated safety check: Pass | MIT | |
| Spring Boot Resilience4jgiuseppe-trisciuoglio/developer-kit | 355 | — | ~3.5k | Automated safety check: Notes | MIT | |
| Node Backend Development Guidelinesdiet103/claude-code-infrastructure-showcase | 10k | 2 repos | ~2k | Automated safety check: Pass | MIT | |
| cmux Backend Rulesmanaflow-ai/cmux | 28k | 1 repos | ~682 | Automated safety check: Pass | Custom licence | |
| Twenty Syncable Entity Wiringtwentyhq/twenty | 58k | — | ~2.9k | Automated safety check: Pass | Custom licence |
decebals/claude-code-java
Spring Boot best practices and patterns. An agent skill from decebals/claude-code-java.
giuseppe-trisciuoglio/developer-kit
Provides fault tolerance patterns for Spring Boot 3.x using Resilience4j.
diet103/claude-code-infrastructure-showcase
Sets layered architecture and coding rules for Node.js, Express and TypeScript microservices, covering routes, controllers, services, repositories, Prisma, Sentry and Zod.
manaflow-ai/cmux
Sets the backend TypeScript and Cloud VM rules for cmux: Effect-based services, thin route handlers, Postgres as source of truth, migrations and provider secrets.
twentyhq/twenty
Registers a new syncable entity in three NestJS modules and adds its service and GraphQL resolver layers when contributing to the Twenty server.
piomin/claude-ai-spring-boot
Spring Boot 3.x development - REST APIs, JPA, Security, Testing, and Cloud-native patterns.
benchflow-ai/skillsbench
This skill should be used when working on Lean 4 formalization projects to maintain persistent memory of successful proof patterns, failed approaches, project conventions, and user preferences…
benchflow-ai/skillsbench
World-class data engineering skill for building scalable data pipelines, ETL/ELT systems, real-time streaming, and data infrastructure.
benchflow-ai/skillsbench
AC branch pi-model power flow equations (P/Q and |S|) with transformer tap ratio and phase shift, matching acopf-math-model.md and MATPOWER branch fields.
benchflow-ai/skillsbench
Civilization 6 district mechanics library. An agent skill from benchflow-ai/skillsbench.
benchflow-ai/skillsbench
Build deterministic, verifiable data visualizations with D3.js (v6).
benchflow-ai/skillsbench
DC power flow analysis for power systems. An agent skill from benchflow-ai/skillsbench.
Works with
Categories
Migrate RestTemplate to RestClient in Spring Boot 3.2+. An agent skill from benchflow-ai/skillsbench. Restclient Migration is an agent skill from benchflow-ai/skillsbench.2+.
Restclient Migration fits situations like: replacing deprecated RestTemplate with modern fluent API; updating HTTP client code; configuring RestClient beans.
Run `npx skills add benchflow-ai/skillsbench --skill restclient-migration -a claude-code`. Or copy the skill folder (tasks/spring-boot-jakarta-migration/environment/skills/restclient-migration in benchflow-ai/skillsbench) into .claude/skills/restclient-migration in your project. Claude Code loads it when a task matches its description.
Run `npx skills add benchflow-ai/skillsbench --skill restclient-migration -a codex`. Or copy the skill folder (tasks/spring-boot-jakarta-migration/environment/skills/restclient-migration in benchflow-ai/skillsbench) into .agents/skills/restclient-migration in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add benchflow-ai/skillsbench --skill restclient-migration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/restclient-migration, .gemini/skills/restclient-migration, .github/skills/restclient-migration and .opencode/skills/restclient-migration in your project.
SKILL.md names no scripts, command-line tools or credentials: Restclient Migration is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Restclient Migration is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.1k tokens (SKILL.md is roughly 8.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Restclient Migration: Spring Boot Patterns (decebals/claude-code-java, 751 stars), Spring Boot Resilience4j (giuseppe-trisciuoglio/developer-kit, 355 stars), Node Backend Development Guidelines (diet103/claude-code-infrastructure-showcase, 10k stars) and cmux Backend Rules (manaflow-ai/cmux, 28k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
benchflow-ai (a GitHub organization) maintains it in benchflow-ai/skillsbench, which has 1,832 GitHub stars. The repository holds 178 skills in this directory. The repository was last updated on July 23, 2026.
Source: benchflow-ai/skillsbench on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.