/java-dev:spring-modulith-verifierfrom java-dev
Verifies Spring Boot applications follow Spring Modulith package structure, listing violations and fix recommendations.
Ships in java-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use a domain-driven, modular layout: organize packages by business modules, not by technical layers.
dev.sivalabs.projectname/
├── Application # Main Spring Boot entrypoint class
├── shared/ # Cross-cutting concerns
│ ├── package-info.java
├── users/ # Users module (bounded context)
│ ├── config/ # Users module-specific config
│ ├── domain/ # Domain logic
│ │ ├── {models, exceptions, entities, repositories, mappers, services} # Flat, no sub-packages
│ ├── api/ # REST API layer
│ │ ├── {controllers, DTOs} # REST controllers, Request, Response payload DTOs
│ └── UsersAPI.java # Module's public API (facade)
│
├── catalog/ # Catalog module
├── orders/ # Orders module
└── config/ # Global Configuration
└── WebMvcConfig.java
└── SecurityConfig.java
└── WebSecurityConfig.java
└── GlobalExceptionHandler.java
Explanation of the above package structure:
Application.java: The main Spring Boot entry point class annotated with @SpringBootApplication. Contains the main() method that bootstraps the application.
shared/: Contains cross-cutting concerns and utilities shared across multiple modules (e.g., common utilities, shared DTOs, base classes, custom annotations).
{module}/ (e.g., users/, catalog/, orders/): Each business module represents a bounded context and contains:
config/: Module-specific configuration classes annotated with @Configuration for beans, properties, or third-party integrations relevant only to this module.
domain/: Core business logic layer. Keep all domain classes directly in the domain package in a flat structure (no models/, exceptions/, entities/, etc. sub-packages). It contains:
@Entity that map to database tables. These should not be public to prevent direct instantiation and ensure encapsulation.JpaRepository or CrudRepository for data access. These should not be public.public.@Service containing business logic, converting beans using mappers, transaction management, and orchestration of repository calls.public and annotated with @NamedInterface("modulename-public-api") (e.g., @NamedInterface("users-public-api")) so that other modules can access them. All other domain classes remain package-private.api/: REST API layer containing:
@RestController that handle HTTP requests, validate input, and delegate to services.{Module}API.java: A facade class that serves as the module's public API, delegating calls to services, exposing only what other modules should access while hiding internal implementation details.
config/: Global application-wide configuration classes including:
@RestControllerAdvice for consistent error responses.Default to minimum necessary visibility. Only expose what other modules or layers genuinely need.
| Component | Class | Constructor | Methods |
|---|---|---|---|
| Controller | package-private | package-private | package-private |
| Service | public | package-private | public |
| Repository | package-private (interface) | — | — |
| Entity | package-private | protected | public |
| DTO / record | public or package-private | — | — |
| Module API facade | public | package-private | public |
| Request/Response records | package-private | — | — |
| Config/Exception handler | package-private | — | — |
| Type | Convention | Example |
|---|---|---|
| Entities | *Entity | UserEntity, AddressEntity |
| Value Objects | Domain name (record) | Email, UserCode, UserId |
| Commands | *Cmd | CreateUserCmd, UpdateAddressCmd |
| Command Response | *Result | LoginResult, RegistrationResult |
| DTOs | *Dto | UserDto, AddressDto |
| HTTP Request | *Request | CreateUserRequest, CreateAddressRequest |
| HTTP Response | *Response | CreateUserResponse, CreateAddressResponse |
| Repositories | *Repository | UserRepository, AddressBookRepository |
| Services | *Service | UserService, AddressBookService |
| Domain Exceptions | *Exception | InvalidUserCreationException, UserCancellationException |
| Module API | *API | UsersAPI |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
22 skills in this plugin
/api-designDesign consistent, secure, evolvable APIs and contracts for web, mobile, partner, and service-to-service applications./application-securityApply secure-by-design principles and threat-model application features across technology stacks. Use when designing features, reviewing code or architecture, handling input, or exposing application functionality./apply-renovate-prsApply the changes from all open Renovate bot pull requests of a GitHub repository into the local working tree. Use this skill when asked to apply, merge locally, consolidate, batch, or try out Renovate/dependabot-style dependency update PRs so the combined upgrade can be built and tested in one go. This skill only modifies local files; it never commits, pushes, merges, or closes anything on GitHub.
npx claudepluginhub sivaprasadreddy/sivalabs-agent-skills --plugin java-devOther plugins' skills for the same job