/java-kotlin-development:create-spring-boot-kotlin-projectfrom java-kotlin-development
Scaffolds a Spring Boot Kotlin project from Spring Initializr with Gradle Kotlin DSL, Java 21, WebFlux, reactive data dependencies, SpringDoc, ArchUnit, and local Redis/PostgreSQL/MongoDB Docker services.
Ships in java-kotlin-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.
Scaffolds a Kotlin Spring Boot application from Spring Initializr, customizes dependencies and local service configuration, and validates the generated project with Gradle tests.
java -version.${input:projectName:demo-kotlin} before running commands when the user supplies a project name.artifactId, packageName, and bootVersion in the Spring Initializr request when the project name, package, or Spring Boot version should differ.java -version.starter.zip into ./${input:projectName:demo-kotlin}.starter.zip after extraction with rm -f starter.zip.docker-compose.yaml with Redis, PostgreSQL, and MongoDB services when local backing services are needed..gitignore../gradlew clean test from the generated project root.curl https://start.spring.io/starter.zip \
-d artifactId=${input:projectName:demo-kotlin} \
-d bootVersion=3.4.5 \
-d dependencies=configuration-processor,webflux,data-r2dbc,postgresql,data-redis-reactive,data-mongodb-reactive,validation,cache,testcontainers \
-d javaVersion=21 \
-d language=kotlin \
-d packageName=com.example \
-d packaging=jar \
-d type=gradle-project-kotlin \
-o starter.zip
unzip starter.zip -d ./${input:projectName:demo-kotlin}
rm -f starter.zip
Insert these into build.gradle.kts without duplicating existing entries:
dependencies {
implementation("org.springdoc:springdoc-openapi-starter-webflux-ui:2.8.6")
testImplementation("com.tngtech.archunit:archunit-junit5:1.2.1")
}
Use springdoc-openapi-starter-webflux-ui, not springdoc-openapi-starter-webmvc-ui, because the generated project includes webflux.
Add the following application.properties sections and fill secret values through the project's normal secret mechanism rather than committing real passwords:
# SpringDoc configurations
springdoc.swagger-ui.doc-expansion=none
springdoc.swagger-ui.operations-sorter=alpha
springdoc.swagger-ui.tags-sorter=alpha
# Redis configurations
spring.data.redis.host=localhost
spring.data.redis.port=6379
spring.data.redis.password=rootroot
# R2DBC configurations
spring.r2dbc.url=r2dbc:postgresql://localhost:5432/postgres
spring.r2dbc.username=postgres
spring.r2dbc.password=rootroot
spring.sql.init.mode=always
spring.sql.init.platform=postgres
spring.sql.init.continue-on-error=true
# MongoDB configurations
spring.data.mongodb.host=localhost
spring.data.mongodb.port=27017
spring.data.mongodb.authentication-database=admin
spring.data.mongodb.username=root
spring.data.mongodb.password=rootroot
spring.data.mongodb.database=test
Create docker-compose.yaml at the project root when local dependencies are needed.
| Service | Image | Port | Volume | Required credentials |
|---|---|---|---|---|
| Redis | redis:6 | 6379:6379 | ./redis_data:/data | password rootroot |
| PostgreSQL | postgres:17 or postgresql:17 only if that image exists in the target environment | 5432:5432 | ./postgres_data:/var/lib/postgresql/data | password rootroot |
| MongoDB | mongo:8 | 27017:27017 | ./mongo_data:/data/db | initdb root username root, password rootroot |
Add redis_data, postgres_data, and mongo_data directories to .gitignore.
./gradlew clean test
docker-compose up -d
./gradlew spring-boot:run
docker-compose rm -sf
Run the optional Docker and application commands only when the user wants services started locally.
starter.zip once, then delete it.webflux is in the generated dependency list.The original download-spring-boot-project-template anchor maps to the Spring Initializr request in this skill. Preserve local service paths exactly: ./redis_data maps to /data, ./postgres_data maps to /var/lib/postgresql/data, and ./mongo_data maps to /data/db. Optional commands are docker-compose up -d, ./gradlew spring-boot:run, and docker-compose rm -sf.
### Spring Boot Kotlin project result
**Status:** created | instructions only | blocked
**Project:** `${input:projectName:demo-kotlin}`
**Package:** `com.example`
**Generated with**
- Java: `21`
- Spring Boot: `3.4.5`
- Build: `gradle-project-kotlin`
- Dependencies: `configuration-processor,webflux,data-r2dbc,postgresql,data-redis-reactive,data-mongodb-reactive,validation,cache,testcontainers`
**Files changed**
- `build.gradle.kts`: <dependency summary>
- `application.properties`: <configuration summary>
- `docker-compose.yaml`: <services added>
- `.gitignore`: <data directories added>
**Validation**
- `java -version`: pass | fail
- `./gradlew clean test`: pass | fail
artifactId, packageName, and bootVersion match the user's request or documented defaults.starter.zip is removed after extraction.build.gradle.kts contains SpringDoc WebFlux UI and ArchUnit dependencies without duplicates.docker-compose.yaml defines Redis, PostgreSQL, and MongoDB only when local services are needed.redis_data, postgres_data, and mongo_data are ignored by Git../gradlew clean test was run or the blocker is reported.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Spring Boot, Kotlin, Gradle, Docker, PostgreSQL, MongoDB, Redis, Java
spring-boot, kotlin, project-scaffold, webflux, gradle-kotlin-dsl
8 skills in this plugin
/java-add-graalvm-native-image-supportGraalVM Native Image expert that adds native image support to Java applications, builds the project, analyzes build errors, applies fixes, and iterates until successful compilation using Oracle best practices. Use this skill when the user asks for graalvm native image agent./java-helidonApply Helidon 4 SE and MP best practices for Java 21 applications, including routing, DB Client, Jakarta and MicroProfile APIs, configuration, security, observability, and tests. Use when working with Helidon SE, Helidon MP, HttpService, HttpRules, MicroProfile Config, Helidon DB Client, Helidon Security, or Helidon testing./java-refactoring-extract-methodRefactor Java 17 methods with the Extract Method technique to improve readability, testability, maintainability, reusability, modularity, cohesion, low coupling, and consistency. Use when the user asks to identify long or complex Java methods, extract helper methods, preserve behavior, and return complete compilable refactored code./java-refactoring-remove-parameterRefactor Java 17 methods by applying Remove Parameter safely. Use this skill when asked to remove unused or redundant Java method parameters, update call sites, preserve behavior, and return complete compilable refactored methods./javax-to-jakarta-migrationMigrate Java applications from `javax.*` APIs to `jakarta.*` APIs for Tomcat 11, Jakarta EE 10+, and framework upgrades. Use this skill when `javax` imports are detected, dependencies need Jakarta coordinates, `web.xml` namespaces must change, or compile errors follow a Jakarta migration./kotlin-springbootBuild, review, and test idiomatic Spring Boot applications written in Kotlin. Use this skill when the user asks for Spring Boot with Kotlin best practices, Kotlin JPA entities, coroutine controllers, configuration properties, validation, logging, or test slices.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin java-kotlin-developmentOther plugins' skills for the same job