coding-java

Installation
SKILL.md

coding-java

Purpose

This skill enables the AI to assist with Java 21+ development, focusing on modern features like records, sealed classes, pattern matching, and virtual threads from Project Loom, plus Spring Boot 3 applications using Maven or Gradle for building and dependency management.

When to Use

Use this skill for projects requiring Java 21+ syntax, such as implementing sealed classes for restricted inheritance, pattern matching in switch statements, or scalable applications with virtual threads. Apply it in backend development with Spring Boot 3, or when managing builds with Maven/Gradle for enterprise-grade Java apps.

Key Capabilities

  • Handle Java records for immutable data classes: Define with record Point(int x, int y) {}.
  • Implement sealed classes to limit subclasses: Use sealed interface Shape permits Circle, Square {}.
  • Utilize pattern matching in switch: Example: switch (obj) { case String s -> process(s); default -> handleDefault(); }.
  • Manage virtual threads for concurrency: Launch with Thread.startVirtualThread(() -> task()); in Java 21+.
  • Build Spring Boot 3 apps: Configure with @SpringBootApplication and use embedded Tomcat.
  • Automate builds: Run Maven with mvn spring-boot:run or Gradle with gradle bootRun for project compilation.
Related skills
Installs
23
GitHub Stars
5
First Seen
Mar 5, 2026