Index of every page on this site: llms.txt
All skills
github avatar

/create-spring-boot-java-project

@f10fdb8 official
by githubgithub/awesome-copilot41k stars
5,399
Run it yourself

Create a new Spring Boot Java project (Maven or Gradle) from start.spring.io with sensible defaults for configuration, PostgreSQL, logging, security, testing and Docker. Use when asked to scaffold, bootstrap or generate a Spring Boot application. Detects existing project versions and never upgrades implicitly.

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/create-spring-boot-java-project

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈86 tokens for metadata: the name and description. ≈1.1k when used: this file. ≈5.2k more on demand in 8 files.

Description uses 4.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈345 characters, or 4.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Create a Spring Boot Java project

Scaffold a Spring Boot application with start.spring.io, then apply a small set of opinionated defaults. Out of scope for now: front-ends (Vue/React/Angular), cloud deployment (Azure), Git setup, CRaC and AOT images.

Step 0: Detect before you create

  • If the working directory already contains a pom.xml or build.gradle(.kts), this is an existing project: do not regenerate it. Read its Spring Boot, Java and test-framework versions and follow them. Never upgrade versions implicitly; propose an upgrade and wait for the user's decision.
  • Check the tools: java -version (JDK matching the chosen Java version), docker --version (needed for Testcontainers and Compose). On the default path (current Boot via start.spring.io) Maven/Gradle need not be installed: the generated wrapper is used. The Boot 3.5 fallback needs Maven or Gradle installed once to create the wrapper (see versions.md).
  • Ask only for what is missing: project name, group id, package, build tool (default Maven), dependencies (default: web, actuator, validation, devtools; add data-jpa, postgresql, security, docker-compose, testcontainers when a database or auth is needed).

Step 1: Resolve versions

Follow references/versions.md: query https://start.spring.io/metadata/client at run time for the latest stable Spring Boot release, fall back to the documented pinned values if offline. Do not hardcode latest anywhere.

Step 2: Generate the project

Use the start.spring.io HTTP API with explicit, pinned parameters (no piped installers). Replace the values in capitals.

Maven:

curl -fsS https://start.spring.io/starter.zip \
  -d type=maven-project -d language=java -d packaging=jar \
  -d bootVersion=BOOT_VERSION -d javaVersion=JAVA_VERSION \
  -d groupId=com.example -d artifactId=demo -d name=demo \
  -d packageName=com.example.demo -d baseDir=demo \
  -d dependencies=web,actuator,validation,devtools \
  -o demo.zip && unzip -q demo.zip && rm demo.zip

Gradle: same command with -d type=gradle-project (Groovy DSL) or -d type=gradle-project-kotlin (Kotlin DSL; the language stays java).

Inspect the result (ls demo, read the build file) and make sure the wrapper (mvnw or gradlew) is executable. Add -d dependencies=...,data-jpa,postgresql,docker-compose,testcontainers for a database project.

Step 3: Apply the defaults

Area What to do Reference
Boot 3 vs 4 differences Starter names, Jackson 3, test modules references/spring-boot-4.md
Configuration application.properties or .yml (match the project), profiles, @ConfigurationProperties, secrets via environment references/configuration.md
Database PostgreSQL, Hibernate settings, Compose for dev, Testcontainers for tests references/database.md
Logging SLF4J, parameterized messages, levels, structured logging references/logging.md
Security Spring Security basics, secure defaults, Problem Details references/security.md
Docker JVM image and GraalVM native image Dockerfiles references/docker.md
Testing See the spring-boot-testing skill (slices, Testcontainers, Failsafe) skills/spring-boot-testing
Best practices See the java-springboot skill and instructions/springboot.instructions.md skills/java-springboot

Keep dotfiles minimal: a .gitignore covering target/, build/, .gradle/, IDE folders and .env; never commit .env (commit a .env.sample).

Step 4: Verify

  1. Build and test: ./mvnw verify (Maven) or ./gradlew build (Gradle).
  2. Run: ./mvnw spring-boot:run or ./gradlew bootRun, then curl -fsS localhost:8080/actuator/health must return {"status":"UP"}.
  3. Report the chosen versions and anything that was skipped or deferred.

Provenance

Adapted from the Apache-2.0 skill jdubois/dr-jskill; see references/PROVENANCE.md.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warningtoday5 checks · Risk SAFE
  • Gen Agent Trust Hub15d

    This skill scaffolds a Spring Boot project using official and well-known industry services with strong security best practices, including non-root Docker images and secure secret management instructions.

  • Sockettoday

    No alerts

  • Snyk15d

    Risk: LOW · No issues

  • Runlayer8mo

    1/1 file flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at f10fdb8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month
  • spring-boot
  • java
  • maven
  • postgres
  • redis
  • mongodb
  • docker
  • scaffold

README badge

README badge for github/awesome-copilot/create-spring-boot-java-project

Scaffolds a Spring Boot 3.4.5 Maven project with Java 21, preconfigured with PostgreSQL, Redis, MongoDB, and Docker Compose services. Includes SpringDoc OpenAPI for API documentation and ArchUnit for architecture testing, with default credentials and port mappings ready to use.

Generated from the current SKILL.md.

What Java version does this skill require?
Java 21. The skill generates a Spring Boot 3.4.5 project configured for Java 21.
Can I customize the project name and Spring Boot version?
Yes. You can modify the `artifactId`, `packageName`, and `bootVersion` parameters in the download command before running it.
What databases and services are included?
The skill sets up PostgreSQL, Redis, and MongoDB via docker-compose, along with SpringDoc OpenAPI for API documentation and ArchUnit for architecture testing.
Do I need Docker installed?
Yes. The skill requires both Docker and Docker Compose to run the included database services (Redis, PostgreSQL, MongoDB).

Generated from the current SKILL.md. These answers refresh after source changes.