What problem does it solve?
Java and Spring Boot codebases frequently suffer from recurring defects: N+1 queries, lost updates from read-modify-write races, silently ignored DTO fields, bean naming conflicts, and @Transactional annotations that fail due to self-invocation. This Skill gives the AI a concrete, example-driven rulebook so generated or reviewed Java code avoids these pitfalls from the start.
Core Features & Use Cases
- Coding Conventions: Naming rules, class member ordering, Lombok-based DTO standards, parameterized logging, and JUnit 5 test structure.
- Concurrency & Database Safety: Atomic update SQL, optimistic locking, unique-index fallbacks for get-or-create, batch query patterns to eliminate N+1, and Redis+DB consistency strategies.
- Spring Boot Traps: Constructor injection, circular dependency prevention, self-invocation proxy failures, pagination index alignment, and bean name collision diagnosis.
- Use Case: When asked to implement a batch stock-deduction endpoint, the AI applies @Valid input constraints, Redis atomic decrement with compensation, and avoids IN-clause queries over 500 parameters.
Quick Start
Ask the AI to write or review a Spring Boot service method, such as implementing a concurrent-safe points balance update with proper validation and tests.