/java-development:create-spring-boot-java-projectfrom java-development
Scaffolds a Spring Boot Java 21 Maven project from Spring Initializr with common data dependencies, SpringDoc, ArchUnit, Docker Compose services, and application.properties configuration.
Ships in java-development. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Create a Java 21 Spring Boot Maven project from Spring Initializr, add project dependencies and local service configuration, and verify the generated skeleton with Maven tests.
java -version.demo-java for artifactId and com.example for packageName.3.4.5 unless the user requests another bootVersion; this replaces the old download-spring-boot-project-template anchor workflow.java -version
artifactId, packageName, or bootVersion only when the user asks.curl https://start.spring.io/starter.zip -d artifactId=${input:projectName:demo-java} -d bootVersion=3.4.5 -d dependencies=lombok,configuration-processor,web,data-jpa,postgresql,data-redis,data-mongodb,validation,cache,testcontainers -d javaVersion=21 -d packageName=com.example -d packaging=jar -d type=maven-project -o starter.zip
unzip starter.zip -d ./${input:projectName:demo-java}
rm -f starter.zip
cd ${input:projectName:demo-java}
pom.xml:<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.8.6</version>
</dependency>
<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit-junit5</artifactId>
<version>1.2.1</version>
<scope>test</scope>
</dependency>
application.properties settings for SpringDoc, Redis, JPA, and MongoDB:springdoc.swagger-ui.doc-expansion=none
springdoc.swagger-ui.operations-sorter=alpha
springdoc.swagger-ui.tags-sorter=alpha
spring.data.redis.host=localhost
spring.data.redis.port=6379
spring.data.redis.******
spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
spring.datasource.username=postgres
spring.datasource.******
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
spring.data.mongodb.host=localhost
spring.data.mongodb.port=27017
spring.data.mongodb.authentication-database=admin
spring.data.mongodb.username=root
spring.data.mongodb.******
spring.data.mongodb.database=test
docker-compose.yaml at the project root with redis:6, postgresql:17, and mongo:8 services.| Service | Required settings |
|---|---|
| Redis | Password rootroot; port 6379:6379; volume ./redis_data:/data; directory ./redis_data; mount target /data. |
| PostgreSQL | Password rootroot; port 5432:5432; volume ./postgres_data:/var/lib/postgresql/data; directory ./postgres_data; mount target /var/lib/postgresql/data. |
| MongoDB | Init root username root; init root password rootroot; port 27017:27017; volume ./mongo_data:/data/db; directory ./mongo_data; mount target /data/db. |
redis_data, postgres_data, and mongo_data to .gitignore../mvnw clean test
docker-compose up -d
./mvnw spring-boot:run
docker-compose rm -sf
The optional run commands are docker-compose up -d, ./mvnw spring-boot:run, and docker-compose rm -sf.
| Area | Rule |
|---|---|
| Dependencies | Keep Spring Initializr dependencies plus springdoc-openapi-starter-webmvc-ui and archunit-junit5. |
| Database defaults | Use local development defaults only; do not commit real credentials. |
| Docker volumes | Keep database data directories out of Git with .gitignore. |
| Tests | Run Maven tests before declaring the skeleton usable. |
starter.zip behind; remove it after unzipping.application.properties; the shown ****** placeholders mark values that must be supplied safely..gitignore data directories; local databases create large mutable files.## Spring Boot project result
**Status:** created | blocked
**Project:** `<projectName>`
**Package:** `<packageName>`
**Spring Boot:** `<bootVersion>`
### Files configured
| File | Change |
| --- | --- |
| `pom.xml` | <dependencies added> |
| `src/main/resources/application.properties` | <settings added> |
| `docker-compose.yaml` | <services added> |
| `.gitignore` | <data directories ignored> |
### Validation
- `java -version`: <result>
- `./mvnw clean test`: <pass|fail and evidence>
artifactId, bootVersion, dependencies, javaVersion, packageName, packaging, and type.springdoc-openapi-starter-webmvc-ui and archunit-junit5 were added to pom.xml.docker-compose.yaml defines Redis, PostgreSQL, and MongoDB with required ports, passwords, and volumes..gitignore excludes redis_data, postgres_data, and mongo_data../mvnw clean test was run or the blocker is documented.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Spring Boot, Java, Maven, Docker Compose, PostgreSQL, Redis, MongoDB
spring-boot, project-scaffold, maven, docker-compose, java-21
npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin java-development4 skills in this plugin
/java-docsWrite and review Java Javadoc comments for public, protected, generic, deprecated, and complex members. Use this skill when the user asks for Java documentation, Javadoc best practices, missing comments, API docs, or documentation cleanup in Java code./java-junitApply JUnit 5 best practices for Java tests, including Maven or Gradle setup, standard and parameterized tests, lifecycle hooks, assertions, Mockito isolation, tags, nested tests, and test commands. Use when asked for JUnit 5+ guidance or to write Java unit tests./java-springbootOther plugins' skills for the same job