java-springboot
Rapidly generate Spring Boot 3.x microservice skeletons with Maven.
Install
mkdir -p .claude/skills/java-springboot && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15825" && unzip -o skill.zip -d .claude/skills/java-springboot && rm skill.zipInstalls to .claude/skills/java-springboot
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Genera la estructura completa de un microservicio Java Spring Boot 3.x con Maven. Úsalo cuando necesites crear el proyecto base (pom.xml, clase principal), la capa de servicio (interfaz + implementación) o el controlador REST.Key capabilities
- →Generate a pom.xml file for a Spring Boot 3.x project
- →Create the main application class for a Spring Boot microservice
- →Define a service interface for business logic
- →Implement a service with business logic
- →Generate a REST controller with an endpoint
How it works
The skill generates specific Java and XML files based on the request, adhering to a predefined package structure and Spring Boot version.
Inputs & outputs
When to use java-springboot
- →Create spring boot project
- →Scaffold rest controller
- →Generate service layer
- →Initialize maven configuration
About this skill
Cuando se use este skill, genera los archivos de un microservicio Spring Boot 3.2.0 con Java 17 y Maven, siguiendo la estructura de paquete com.example.msrandomnumber.
[Setup] — Estructura inicial y configuración del proyecto
Genera los siguientes archivos:
pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.0</version>
<relativePath/>
</parent>
<groupId>com.example</groupId>
<artifactId>ms-random-number</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>ms-random-number</name>
<description>Microservicio que retorna un número aleatorio del 1 al 9</description>
<properties>
<java.version>17</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
src/main/java/com/example/msrandomnumber/MsRandomNumberApplication.java
package com.example.msrandomnumber;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class MsRandomNumberApplication {
public static void main(String[] args) {
SpringApplication.run(MsRandomNumberApplication.class, args);
}
}
[Service] — Capa de servicio
Genera los siguientes archivos:
src/main/java/com/example/msrandomnumber/service/RandomNumberService.java
package com.example.msrandomnumber.service;
public interface RandomNumberService {
int getRandomNumber();
}
src/main/java/com/example/msrandomnumber/service/RandomNumberServiceImpl.java
package com.example.msrandomnumber.service;
import org.springframework.stereotype.Service;
import java.util.concurrent.ThreadLocalRandom;
@Service
public class RandomNumberServiceImpl implements RandomNumberService {
@Override
public int getRandomNumber() {
return ThreadLocalRandom.current().nextInt(1, 10);
}
}
[Controller] — Controlador REST
Genera el siguiente archivo:
src/main/java/com/example/msrandomnumber/controller/RandomNumberController.java
package com.example.msrandomnumber.controller;
import com.example.msrandomnumber.service.RandomNumberService;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
@RestController
@RequestMapping("/api")
public class RandomNumberController {
private final RandomNumberService randomNumberService;
public RandomNumberController(RandomNumberService randomNumberService) {
this.randomNumberService = randomNumberService;
}
@GetMapping("/random")
public ResponseEntity<Map<String, Integer>> getRandom() {
int number = randomNumberService.getRandomNumber();
return ResponseEntity.ok(Map.of("number", number));
}
}
When not to use it
- →When the project is not a Java Spring Boot 3.x microservice
- →When the project does not use Maven
- →When the project does not use Java 17
Prerequisites
Limitations
- →The skill generates files for Spring Boot 3.2.0
- →The skill generates files for Java 17
- →The skill generates files with Maven
How it compares
This skill automates the scaffolding of a Spring Boot microservice with specific versions and structure, which is faster and more consistent than manual file creation.
Compared to similar skills
java-springboot side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| java-springboot (this skill) | 0 | 5mo | No flags | Beginner |
| java-coding-standards | 16 | 4mo | No flags | Intermediate |
| java-pro | 34 | 4mo | No flags | Advanced |
| springboot-tdd | 5 | 5mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
java-coding-standards
affaan-m
Java coding standards for Spring Boot services: naming, immutability, Optional usage, streams, exceptions, generics, and project layout.
java-pro
sickn33
Master Java 21+ with modern features like virtual threads, pattern matching, and Spring Boot 3.x. Expert in the latest Java ecosystem including GraalVM, Project Loom, and cloud-native patterns. Use PROACTIVELY for Java development, microservices architecture, or performance optimization.
springboot-tdd
affaan-m
Test-driven development for Spring Boot using JUnit 5, Mockito, MockMvc, Testcontainers, and JaCoCo. Use when adding features, fixing bugs, or refactoring.
jpa-patterns
affaan-m
JPA/Hibernate patterns for entity design, relationships, query optimization, transactions, auditing, indexing, pagination, and pooling in Spring Boot.
backend-microservice-development
TencentBlueKing
后端微服务开发规范,涵盖目录结构、分层架构(API/Service/DAO)、依赖注入、配置管理、Spring Boot 最佳实践。当用户进行后端开发、创建新微服务、编写 Kotlin/Java 代码或设计服务架构时使用。
microservice-infrastructure
TencentBlueKing
微服务基础设施指南,涵盖条件配置、事件驱动架构、服务间通信、国际化与日志等微服务架构的核心基础设施。当用户实现服务间调用、配置多环境、实现异步通信、处理国际化或规范日志输出时使用。