Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

creating-springboot-projects

БесплатноЗапускает вложенные скриптыНе проверен

Use when starting a new Spring Boot project or service: scaffolding or bootstrapping a backend, REST API, microservice or modular monolith; choosing how to…

a-pavithraaот a-pavithraa★ 82 звезды на GitHub

Об этом скилле

Creating Spring Boot Projects

Purpose

Use this skill to create new Spring Boot 4 projects or define their structure before implementation. The skill adds value when the user needs an architecture decision, Spring Boot 4 feature selection, or the bundled templates in assets/.

Critical rules

  • Never jump straight to implementation before assessing project complexity.
  • Default to the simplest architecture that fits the domain.
  • Treat Spring Boot 4 as the target. Default new projects to Java 25 (LTS). Accept 21 or 17 when the user asks. Read references/java-version-policy.md before you pick a newer, non-LTS Java.
  • Read the reference files before choosing a higher-complexity architecture or optional framework feature.
  • Reuse the templates in assets/ instead of rewriting the same scaffolding from scratch.

Workflow

Step 1: Assess project shape

Collect the project constraints first:

  1. Domain complexity: simple CRUD, moderate workflow, or rich domain rules.
  2. Team size: 1-3, 3-10, or 10+.
  3. Expected lifespan: months, 1-2 years, or 5+ years.
  4. Type-safety needs: basic validation or strong value-object-heavy modeling.
  5. Bounded contexts: single domain or multiple feature areas.
  6. Persistence and infrastructure needs: database choice, migration tool, local development setup.

Step 2: Choose the architecture

Use this matrix as the default decision aid. If the choice is not obvious, read references/architecture-guide.md before proceeding.

Pattern Use when Complexity
layered CRUD services, prototypes, MVPs Low
package-by-module 3-5 distinct features with moderate growth Low-Medium
modular-monolith Module boundaries matter and Spring Modulith is justified Medium
tomato Rich domain modeling, value objects, stronger type safety Medium-High
ddd-hexagonal Complex domains, CQRS, strong infrastructure isolation High

tomato is a value-object-heavy modular monolith: JPA entities embed VOs, validation lives in VO constructors, and Spring converters bind VOs at the request boundary. See references/architecture-guide.md for the full definition.

Step 3: Generate the base project

Pick the generator:

  • Progen (preferred when installed): check with command -v progen. Read references/progen-integration.md before you use it, and run it with JDK 25: on JDK 27 its output doesn't compile. Progen deletes ./<app-name>/ if it exists, so always run it through scripts/progen_config.py, which validates values and refuses to overwrite.
  • Spring Initializr: use it when progen is not installed and the user does not want it, or the project does not fit progen (see the reference).

For Spring Initializr, capture the baseline:

  • Project: Maven or Gradle
  • Language: Java
  • Spring Boot: 4.1.x
  • Java: 25 (LTS). See references/java-version-policy.md.

Baseline dependencies for most projects:

  • Spring Web MVC
  • Validation
  • Spring Data JPA if persistence is required
  • Flyway or Liquibase
  • database driver
  • Spring Boot Actuator
  • Testcontainers for integration tests

Optional dependencies based on architecture or features:

  • Spring Modulith for modular monolith or tomato designs
  • ArchUnit rules (CodeRulesTests, Step 6) for every project
  • Additional Spring Boot 4 features only when the use case needs them

Read references/spring-boot-4-features.md before selecting:

  • RestTestClient
  • HTTP Service Clients
  • API versioning
  • JSpecify null-safety
  • resilience features

Step 4: Apply the matching assets

Use the bundled templates from assets/ and replace placeholders only after the package and module names are settled. If progen generated the project, skip the assets it already covers (see references/progen-integration.md).

Placeholder convention

Every template uses {{TOKEN}} placeholders. Resolve all of them before applying. The templates do not compile until every placeholder is replaced. The full set used across assets/:

Placeholder Replace with Example
{{PACKAGE}} Base Java package com.acme.shop
{{MODULE}} Feature/module name (lowercase) orders
{{NAME}} Domain type name (PascalCase) Order, ProductSKU
{{TYPE}} Wrapped scalar type inside a value object String, Long, BigDecimal
{{FIELD}} Record field name (camelCase) code, amount
{{TABLE_NAME}} Database table name (used in JPA @Table) orders
{{TABLE}} Same meaning as {{TABLE_NAME}}. A legacy variant, used only in flyway-migration.sql orders
{{PROJECT_NAME}} Project artifactId / docker prefix (used only in docker-compose.yml) shop-api
{{name}} HTTP service group identifier, not a lowercase variant of {{NAME}}. Appears only in commented @ImportHttpServices(group = "...") examples. orders

If a template uses a placeholder not listed here,

Полный SKILL.md на GitHub

Установить creating-springboot-projects в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/api-versioning-config.javaassets/base-entity.javaassets/controller.javaassets/docker-compose.ymlassets/exception-handler.javaassets/flyway-migration.sqlassets/http-service-client.javaassets/modularity-test.javaassets/package-info-jspecify.javaassets/pom-additions.xmlassets/repository.javaassets/resilience-service.javaassets/resttestclient-test.javaassets/rich-entity.javaassets/service-cqrs.javaassets/spring-converter.javaassets/testcontainers-test.javaassets/value-object.javareferences/architecture-guide.mdreferences/java-version-policy.mdreferences/progen-integration.mdreferences/spring-boot-4-features.mdscripts/align_progen_project.pyscripts/check_new_project.pyscripts/progen_config.py

FAQ

Что делает скилл creating-springboot-projects?

Use when starting a new Spring Boot project or service: scaffolding or bootstrapping a backend, REST API, microservice or modular monolith; choosing how to structure it (layered, package-by-module, modular monolith, tomato, DDD-hexagonal); selecting Spring Boot 4 features; generating the base project with progen or Spring Initializr; or applying the bundled templates and references in this skill. Not for migrating existing projects or for isolated JPA/repository work without broader project-creation context.

Как установить скилл creating-springboot-projects?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл creating-springboot-projects запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить creating-springboot-projects с