This skill may not reflect the latest upstream change
Next.js Releases update on 2026-11-09 may affect this skill Last checked Nov 25, 2026.
spring-boot-architecture
Structure Spring Boot 3+ projects with feature packaging and clean layering. Use when structuring Spring Boot 3 projects, defining layers, or applying architecture patterns.
Unsigned, install at your own risk
UnverifiedThis skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install multi-language-standards-spring-boot-architectureManual setup by platform
Claude Code
~/.claude/skills/multi-language-standards-spring-boot-architecture/SKILL.md
Instructions
Spring Boot Architecture Standards
Priority: P0 (CRITICAL)
Organize by Feature
- Package by Feature: Prefer
com.app.feature(e.g.,user,order) over technical layers (controllers) for scalability. - Dependency Rule: Outer layers (Web) depend on Inner (Service). Inner layers MUST NOT depend on Outer.
- DTO Pattern: ALWAYS use DTOs for API inputs/outputs. NEVER return
@Entitydirectly. - Java Records: Use
recordfor DTOs to ensure immutability (Java 17+).
See implementation examples for Java Record DTOs, controller patterns, and global exception handling.
Define Layer Responsibilities
- Controller (Web): Handle HTTP, Validation (
@Valid), DTO mapping. Delegate logic to Service. - Service (Business): Transaction boundaries, orchestration. Returns Domain/DTOs.
- Repository (Data): Database interactions only. Returns Entities/Projections.
Design API Layer
- Global Error Handling: Use
@RestControllerAdvicewithProblemDetails(RFC 7807). - Validation: Use Jakarta Bean Validation (
@NotNull,@Size) on DTOs. - Response: Use
ResponseEntityfor explicit status orResponseStatusException.
Verification Checklist (Mandatory)
- No Entities in API: all API responses using DTOs/Records instead of JPA Entities?
- Validation:
@Validand Jakarta Bean Validation constraints present on all input DTOs? - Layer coupling: Services depend on Controllers? (Prohibited)
- Transactionality: business transactions correctly bounded with
@Transactionalin Service layer? - Error Details:
ProblemDetailsused for consistent error responses?
Anti-Patterns
- No Fat Controllers: Move business logic to Services.
- No Leaking Entities: Use DTOs instead of JPA Entities in APIs.
- No Circular Dependencies: Use Events or refactor to decouple services.
- No God Classes: Split large services into single-responsibility components.
References
- Implementation Examples
Security
Reviews (0)
Related skills
Browse all →More from Multi-Language Standards
View source →More Build skills
Browse category →Frequently asked questions about spring-boot-architecture
What does the spring-boot-architecture skill do?
Structure Spring Boot 3+ projects with feature packaging and clean layering. Use when structuring Spring Boot 3 projects, defining layers, or applying architecture patterns. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the spring-boot-architecture skill?
Run `npx @skills-hub-ai/cli install multi-language-standards-spring-boot-architecture` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/multi-language-standards-spring-boot-architecture/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does spring-boot-architecture work with?
spring-boot-architecture runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the spring-boot-architecture skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use spring-boot-architecture after installing it?
In Claude Code, type `/multi-language-standards-spring-boot-architecture` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the spring-boot-architecture skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.