Catalog
github/create-spring-boot-kotlin-project

github

create-spring-boot-kotlin-project

Create Spring Boot Kotlin Project Skeleton

v1.0Latest
New~1.0kUpdated Jun 26, 2026

Create Spring Boot Kotlin project prompt

Check Java version

  • Run following command in terminal and check the version of Java
java -version

Download Spring Boot project template

  • Run following command in terminal to download a Spring Boot project template
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 the downloaded file

  • Run following command in terminal to unzip the downloaded file
unzip starter.zip -d ./${input:projectName:demo-kotlin}

Remove the downloaded zip file

  • Run following command in terminal to delete the downloaded zip file
rm -f starter.zip

Unzip the downloaded file

  • Run following command in terminal to unzip the downloaded file
unzip starter.zip -d ./${input:projectName:demo-kotlin}

Add additional dependencies

  • Insert springdoc-openapi-starter-webmvc-ui and archunit-junit5 dependency into build.gradle.kts file
dependencies {
  implementation("org.springdoc:springdoc-openapi-starter-webflux-ui:2.8.6")
  testImplementation("com.tngtech.archunit:archunit-junit5:1.2.1")
}
  • Insert SpringDoc configurations into application.properties file
# SpringDoc configurations
springdoc.swagger-ui.doc-expansion=none
springdoc.swagger-ui.operations-sorter=alpha
springdoc.swagger-ui.tags-sorter=alpha
  • Insert Redis configurations into application.properties file
# Redis configurations
spring.data.redis.host=localhost
spring.data.redis.port=6379
spring.data.redis.password=rootroot
  • Insert R2DBC configurations into application.properties file
# 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
  • Insert MongoDB configurations into application.properties file
# 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 project root and add following services: redis:6, postgresql:17 and mongo:8.

    • redis service should have
      • password rootroot
      • mapping port 6379 to 6379
      • mounting volume ./redis_data to /data
    • postgresql service should have
      • password rootroot
      • mapping port 5432 to 5432
      • mounting volume ./postgres_data to /var/lib/postgresql/data
    • mongo service should have
      • initdb root username root
      • initdb root password rootroot
      • mapping port 27017 to 27017
      • mounting volume ./mongo_data to /data/db
  • Insert redis_data, postgres_data and mongo_data directories in .gitignore file

  • Run gradle clean test command to check if the project is working

./gradlew clean test
  • (Optional) docker-compose up -d to start the services, ./gradlew spring-boot:run to run the Spring Boot project, docker-compose rm -sf to stop the services.

Let's do this step by step.

Files1
1 files · 1.0 KB

Select a file to preview

Overall Score

72/100

Grade

B

Good

Safety

75

Quality

68

Clarity

78

Completeness

65

Summary

This skill provides step-by-step instructions for creating a Spring Boot Kotlin project scaffold by downloading a template from start.spring.io, extracting it, and configuring dependencies (PostgreSQL, Redis, MongoDB), application properties, and Docker Compose services. It guides an agent through unzipping files, modifying Gradle build config and application properties, and running test builds.

Static Analysis Findings

1 finding

Patterns detected by deterministic static analysis before AI scoring. Hover over any finding code for detailed information and remediation guidance.

Network Access
SEC-060Outbound Network Request

Outbound network request (curl/wget/fetch)

SKILL.mdcurl https://

Detected Capabilities

network request (curl)file downloadfile extraction (unzip)file deletion (rm)directory creationfile write (build.gradle.kts, application.properties, docker-compose.yaml, .gitignore)shell command execution (gradle test, docker-compose)

Trigger Keywords

Phrases that MCP clients use to match this skill to user intent.

create spring boot projectspring boot kotlin scaffolddocker compose setupreactive database configgradle kotlin project

Risk Signals

INFO

SEC-060: Outbound network request to start.spring.io

SKILL.md | curl https://start.spring.io/starter.zip
WARNING

Hardcoded credentials in example application.properties (passwords: rootroot)

SKILL.md | Redis, PostgreSQL, MongoDB password examples

Referenced Domains

External domains referenced in skill content, detected by static analysis.

start.spring.io

Use Cases

  • Scaffold a new Spring Boot Kotlin project with reactive dependencies
  • Configure multi-database setup with PostgreSQL R2DBC, Redis, and MongoDB
  • Set up local development environment with Docker services for databases
  • Generate Spring Boot starter project with preconfigured application properties
  • Create project structure with gradle, docker-compose, and dependency management

Quality Notes

  • Strengths: Clear step-by-step structure with shell commands, example configurations for each service, Docker Compose specifications, and gradle test validation.
  • Strengths: Well-scoped to new project creation with parameters for project name and Spring Boot version customization.
  • Strengths: Includes optional Docker commands and mentions prerequisites (Java 21, Docker, Docker Compose).
  • Weakness: Credentials are hardcoded as examples (rootroot) — should explicitly note these are dev-only and must be changed for production.
  • Weakness: No error handling guidance (e.g., what if curl fails? What if unzip fails?).
  • Weakness: Duplicate section 'Unzip the downloaded file' appears twice, suggesting incomplete editing.
  • Weakness: No validation that the generated project structure is correct after template download and extraction.
  • Weakness: Missing guidance on Spring Boot version compatibility or how to update dependencies post-generation.
  • Weakness: No mention of IDE setup (IntelliJ, VS Code) or import steps for generated project.
  • Note: Input parameters use agentskills.io convention (${input:projectName:demo-kotlin}) — consistent with spec.
Model: claude-haiku-4-5-20251001Analyzed: Jun 26, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Use github/create-spring-boot-kotlin-project in your dev environment

Command Palette

Search for a command to run...

github/create-spring-boot-kotlin-project | SkillRepo