← ClaudeAtlas

code-spring-bootlisted

Apply Spring Boot and Java coding standards when writing, reviewing, or designing Java code. Use for Spring Boot project structure, DDD patterns (Entities, Aggregates, Repositories, Domain Services), Clean Code principles in Java, PoEAA patterns (Repository, Data Mapper, Service Layer, Unit of Work), testing with JUnit 5 and Mockito, and Spring-specific best practices. Covers constructor injection, transaction boundaries, layer responsibilities, and common anti-patterns to avoid.
tstapler/dotfiles · ★ 8 · Testing & QA · score 62
Install: claude install-skill tstapler/dotfiles
# Spring Boot Java Development Standards Apply these standards when writing, reviewing, or designing Java/Spring Boot code. --- > For structural refactors across this codebase, apply the `code-refactoring` skill. ## Project Structure (Package by Feature) Organize by domain concept, not by technical layer. Each feature package is a self-contained vertical slice: ``` com.example. ├── order/ │ ├── domain/ │ │ ├── Order.java # Aggregate Root (Entity) │ │ ├── OrderItem.java # Entity within aggregate │ │ ├── Money.java # Value Object │ │ ├── OrderRepository.java # Port (interface) │ │ └── OrderDomainService.java # Domain Service │ ├── application/ │ │ ├── OrderApplicationService.java # Use case orchestration │ │ ├── CreateOrderCommand.java # Input DTO │ │ └── OrderSummary.java # Output DTO │ ├── infrastructure/ │ │ ├── JpaOrderRepository.java # Repository adapter │ │ ├── OrderJpaEntity.java # ORM mapping entity │ │ └── OrderMapper.java # Domain ↔ ORM mapping │ └── api/ │ ├── OrderController.java # REST adapter │ ├── OrderRequest.java # API input DTO │ └── OrderResponse.java # API output DTO ├── payment/ │ └── ... └── shared/ └── domain/ # Shared kernel: common VOs, exceptions ├── Money.java └── DomainException.java ``` **Import rule**: Domain never imports Spring, JPA, or infra