dandgabr/coacus/framework-spring-boot
Claude Code and agent skill by dandgabr/coacus
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Provides engineering and architecture patterns for enterprise applications with Spring Boot 3.x+, covering Spring MVC REST, constructor dependency injection, immutable DTOs (Records), Virtual Threads (Loom), validation, Spring Data JPA, and testing with Testcontainers.
Install
npx vskill@latest install dandgabr/coacus/framework-spring-bootSKILL.md
The same SKILL.md was published earlier as dandgabr/coacus/framework-spring-boot.
Spring Boot Server Engineering & Best Practices
This skill establishes the software engineering standards and rules for enterprise applications and microservices built with Spring Boot 3.x+ and modern Java (Java 17/21/25).
🧭 1. Architectural and Design Principles
- Clean Layer Separation:
- Keep framework annotations at the entry points (REST Controllers), configuration, and infrastructure adapters.
- Avoid coupling domain classes to serialization or persistence annotations whenever possible.
- Idiomatic Dependency Injection:
- Strictly use constructor injection with
finalfields. Avoid direct@Autowiredon fields (it makes testing harder and couples the class to the DI container). - Inject interfaces or specialized beans instead of direct implementation classes.
- Immutability and Modern DTOs:
- Use Java
recordfor all Data Transfer Objects (Requests and Responses), guaranteeing immutability and structured validation with Jakarta Bean Validation (@Valid,@NotNull,@NotBlank, and so on).
⚡ 2. Performance, Concurrency, and Virtual Threads
- Virtual Threads (Project Loom): In Spring Boot 3.2+, enable
spring.threads.virtual.enabled=truefor the embedded Tomcat server and for asynchronous tasks blocked on I/O. - Avoid Pinning: On routes that use Virtual Threads, audit the use of
synchronizedand replace it withReentrantLockin blocks that make network or database calls. - Spring Data JPA: Avoid N+1 queries by using
JOIN FETCH,@EntityGraph, or dedicated DTO projections.
🧪 3. Testing Strategy
- Fast Unit Tests: Test services and business rules without loading the Spring context (
MockitoExtension, instantiating the class directly). - Focused Layer Tests: Use
@WebMvcTestto validate REST endpoints, security filters, and Jackson serialization without initializing the database. - Integration Tests with Testcontainers: Use
@SpringBootTestwith Testcontainers for real PostgreSQL, MySQL, or Redis instances.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingknowledge/skills/frameworks/framework-spring-boot/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dandgabr/coacus/framework-spring-boot)