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

/java-springboot

@f10fdb8 official
by githubgithub/awesome-copilot42k stars
5,426
Run it yourself

Write and review application code in an existing Spring Boot 3/4 project: controllers, validation and ProblemDetail errors, Spring Data JPA/JDBC, RestClient and HTTP interfaces, configuration properties, Kafka/AMQP, caching, scheduling, virtual threads, AOT and startup tuning. Use when adding or changing features. To scaffold a new project use create-spring-boot-java-project instead.

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/java-springboot

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

SKILL.md

≈101 tokens for metadata: the name and description. ≈1k when used: this file. ≈8.3k more on demand in 5 files.

Description uses 5.1% 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 ≈404 characters, or 5.1%.

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.

Spring Boot application development

Opinionated rules plus a router to deeper references. Code samples in the references were compiled and run on Spring Boot 4.1.1 (Spring Framework 7) and, where they differ, on Boot 3.5.16 (Framework 6.2). Boot 3 vs 4 differences are marked "Boot 3" / "Boot 4" in each reference.

Before writing code

  1. Detect, do not assume: read pom.xml/build.gradle(.kts) for the Spring Boot version, Java version, starters in use (spring-boot-starter-web is Boot 3, spring-boot-starter-webmvc is Boot 4), persistence (JPA, JDBC), the migration tool, the test setup, and the package layout and naming conventions of the existing code. Match them.
  2. Never upgrade Spring Boot, Java or dependencies implicitly. A Boot 3 -> 4 move is a deliberate task (spring-boot-4-migration).
  3. Ask before adding infrastructure: a broker (Kafka, RabbitMQ), a cache provider, a new database, or a scheduler/async setup. Add only what the user requested, with the Boot-managed version (no explicit version for BOM-managed artifacts, never latest).
  4. Verify every change with the project's own build: ./mvnw verify or ./gradlew build (plain mvn/gradle if no wrapper). Integration tests need Docker when they use Testcontainers.

Router

Task Read
Repositories, projections, pagination, N+1, @Transactional, auditing, Flyway/Liquibase, Spring Data JDBC references/data.md
Controllers, validation, ProblemDetail, RestClient, @HttpExchange, API versioning, OpenAPI, JSpecify references/rest-api.md
Kafka/AMQP, @Cacheable/Caffeine, @Scheduled, @Async, virtual threads, outbox references/messaging-caching.md
@ConfigurationProperties, profiles, secrets, config import, Docker Compose / Testcontainers at dev time references/configuration.md
AOT, CDS/AppCDS, lazy initialization, native image references/aot-and-startup.md

If these standalone skills are installed, also use them for their topic; otherwise rely on the official docs: java-hibernate-jpa (JPA mapping), spring-boot-testing (tests), spring-security (authentication, authorization, CSRF/CORS), spring-observability (metrics, tracing, Actuator, logs), create-spring-boot-java-project (project defaults, Boot 3 vs 4 build changes), java-add-graalvm-native-image-support (native executable).

Core rules

  • Structure and layers: package by feature; constructor injection; controllers return DTOs/records, never entities; services own the transaction.
  • Validation and errors: Bean Validation on request records with @Valid; one @RestControllerAdvice returning ProblemDetail. JSpecify annotations document nullability only and do not validate.
  • Jackson: Boot 4 uses Jackson 3 (tools.jackson.databind.*, JsonMapper; annotations stay in com.fasterxml.jackson.annotation); Boot 3 uses Jackson 2 (com.fasterxml.jackson.databind.*, ObjectMapper).
  • Slice-test gotcha: put @EnableJpaAuditing, @EnableCaching, @EnableAsync, @EnableScheduling on dedicated @Configuration classes, not on the @SpringBootApplication class, or slices such as @DataJpaTest fail to start (for example, no CacheManager). Slices do not scan @Configuration classes: @Import the one a test needs.
  • Proxied beans: @Cacheable, @Async and @Transactional work through proxies: they do nothing on self-invocation or on private/final methods; test them through the injected bean.

Checklist

  • Versions, build tool and conventions detected; starters match the Boot major
  • No new infrastructure or dependency without the user's agreement
  • ./mvnw verify / ./gradlew build passes; secrets absent from code, properties and logs

See also: Spring Boot reference https://docs.spring.io/spring-boot/reference/, Spring Framework reference https://docs.spring.io/spring-framework/reference/, Spring Data https://docs.spring.io/spring-data/commons/reference/.

Source: SKILL.md on GitHub

No rule matched.

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 warning5d5 checks · Risk SAFE
  • Gen Agent Trust Hub12d

    The skill provides safe and idiomatic guidance for Spring Boot 3 and 4 development. It incorporates several security best practices, such as proper secret management (advising against committing credentials), input validation, and secure API design. A minor risk factor is present as the agent is instructed to read external project build and configuration files, which could theoretically contain malicious instructions designed to influence the agent.

  • Socket5d

    No alerts

  • Snyk12d

    Risk: LOW · No issues

  • Runlayer9mo

    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 4 days ago.

Activeupdated last month
  • Testing
  • java
  • spring-boot
  • rest-api
  • jpa
  • spring-security
  • configuration
  • dependency-injection

README badge

README badge for github/awesome-copilot/java-springboot

Instructs Claude to follow Spring Boot best practices for Java applications, covering project structure, dependency injection, configuration management, REST API design, data access patterns, testing, and security. Targets developers building Spring Boot applications with Maven or Gradle and using Spring Data JPA for persistence.

Generated from the current SKILL.md.

Does this skill cover Spring Security configuration?
Yes. It includes guidance on using Spring Security for authentication and authorization, password encoding with BCrypt, and preventing SQL injection and XSS attacks.
What testing frameworks does this skill recommend?
JUnit 5 and Mockito for unit tests, @SpringBootTest for integration tests, test slice annotations like @WebMvcTest and @DataJpaTest for isolated testing, and Testcontainers for reliable database and external service testing.
Does this skill cover data layer patterns?
Yes. It covers Spring Data JPA repositories, custom queries with @Query, the JPA Criteria API, and DTO projections for efficient data fetching.
What configuration approach does this skill recommend?
Use externalized configuration via application.yml, @ConfigurationProperties for type-safe binding, Spring Profiles for environment-specific configs, and environment variables or secret management tools like Vault or AWS Secrets Manager for secrets.
Does this skill address error handling?
Yes. It recommends implementing a global exception handler using @ControllerAdvice and @ExceptionHandler for consistent error responses across the application.

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