What problem does it solve?
Java development projects frequently suffer from inconsistent coding standards, unhandled edge cases, outdated dependencies, and poor logging practices, leading to technical debt, hard-to-maintain codebases, and avoidable production bugs.
Core Features & Use Cases
- Modern Java Best Practices: Enforces use of Java 21 LTS features like records, sealed classes, pattern matching, and virtual threads to reduce boilerplate and improve performance.
- Production-Grade Guardrails: Includes strict rules for SLF4J logging with Logback/Log4j2, domain-specific error handling, null safety, and dependency management to minimize production bugs.
- Use Case: When building a new Spring Boot REST API, this skill guides you to use the Maven wrapper, structure packages in layered architecture, write descriptively named JUnit 5 tests with Mockito, and use Testcontainers for integration tests with real databases.
Quick Start
Use the java-generic skill to review your existing Java project's code, build configuration, and test suite, and apply all recommended modern Java best practices to improve code quality and align with production-grade standards.