spring-boot-crud-patterns
This skill scaffolds end-to-end CRUD operations for Spring Boot 3.5+ applications using feature-focused, domain-driven design patterns. It generates domain aggregates, repository contracts, JPA persistence adapters, application services, and REST controllers with proper separation of concerns and validation gates. Use it to build REST endpoints, implement database operations, or diagnose transaction boundaries in existing Spring Boot services.
Spring Boot CRUD Patterns generates complete create/read/update/delete workflows for Spring Boot 3 services with domain-driven architecture and JPA persistence.
AI-generated summary based on this skill's SKILL.md
Install
giuseppe-trisciuoglio/developer-kit/spring-boot-crud-patterns · repository language: Python
git clone https://github.com/giuseppe-trisciuoglio/developer-kit
cp -r developer-kit/plugins/developer-kit-java/skills/spring-boot-crud-patterns ~/.claude/skills/spring-boot-crud-patternsnpx skillfed install giuseppe-trisciuoglio/developer-kit/spring-boot-crud-patternsFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What spring boot crud operations does this skill cover?
spring-boot-crud-patterns scaffolds complete Create, Read, Update, and Delete workflows for Spring Boot 3.5+ applications. It generates domain aggregates, JPA repository implementations, application services with transaction boundaries, REST controllers, and validated DTOs. The skill follows domain-driven design principles with feature-focused architecture to ensure proper separation of concerns across your CRUD layers.
How do I create a REST API endpoint with spring-boot-crud-patterns?
spring-boot-crud-patterns generates REST endpoints by defining your domain aggregate, creating a Spring Data JPA repository interface, building an application service layer, and exposing a REST controller. The skill handles entity mapping, DTO validation with constraints, transaction boundaries, and HTTP method routing. You specify your feature domain and the skill produces a complete endpoint scaffold ready for customization.
What is the spring data jpa repository pattern used here?
spring-boot-crud-patterns implements the repository pattern by generating Spring Data JPA repository interfaces that extend CrudRepository or JpaRepository. These repositories abstract database access, enabling you to query and persist domain aggregates without writing SQL. The skill pairs repositories with application services that manage transaction boundaries and business logic, keeping your controllers focused on HTTP concerns.
How does spring-boot-crud-patterns handle DTO validation?
spring-boot-crud-patterns creates validated DTOs using Java records or classes with Jakarta Bean Validation constraints (e.g., @NotNull, @Size, @Email). Validation occurs at controller entry points before data reaches your service layer. The skill generates proper error responses and ensures your REST endpoints reject invalid payloads, maintaining data integrity across your CRUD operations.
Can spring-boot-crud-patterns help diagnose transaction issues?
Yes. spring-boot-crud-patterns helps diagnose and fix CRUD regressions by clarifying transaction boundaries in your Spring Boot services. It shows where @Transactional should be applied, how to handle lazy-loading exceptions, and when to use read-only transactions. Use it to audit existing services and understand why updates or deletes may be failing silently.
What architecture pattern does spring-boot-crud-patterns follow?
spring-boot-crud-patterns uses feature-focused, domain-driven design with clear separation of concerns. It organizes code into domain aggregates, repository contracts, persistence adapters, application services, and REST controllers. This layered approach keeps business logic isolated from infrastructure, making your Spring Boot 3 services testable, maintainable, and aligned with CRUD best practices.
SKILL.md
rendered from the published skill — quoted content, verbatim
Spring Boot CRUD Patterns
Overview
Provides complete CRUD workflows for Spring Boot 3.5+ services using feature-focused architecture. Creates and validates domain aggregates, JPA repositories, application services, and REST controllers with proper separation of concerns. Defer detailed code listings to reference files for progressive disclosure.
When to Use
- Create REST endpoints for create/read/update/delete workflows backed by Spring Data JPA.
- Implement feature packages following DDD-inspired architecture with aggregates, repositories, and application services.
- Define DTO records, request validation, and controller mappings for external clients.
- Diagnose CRUD
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 15 files
plugins/developer-kit-java/skills/spring-boot-crud-patterns/SKILL.md
plugins/developer-kit-java/skills/spring-boot-crud-patterns/assets/specs/product.json
plugins/developer-kit-java/skills/spring-boot-crud-patterns/assets/specs/product_with_rel.json
plugins/developer-kit-java/skills/spring-boot-crud-patterns/references/crud-reference.md
plugins/developer-kit-java/skills/spring-boot-crud-patterns/references/examples-product-feature.md
plugins/developer-kit-java/skills/spring-boot-crud-patterns/references/generator-usage.md
plugins/developer-kit-java/skills/spring-boot-crud-patterns/references/spring-official-docs.md
plugins/developer-kit-java/skills/spring-boot-crud-patterns/references/templates/Controller.java.tpl
plugins/developer-kit-java/skills/spring-boot-crud-patterns/references/templates/CreateService.java.tpl
plugins/developer-kit-java/skills/spring-boot-crud-patterns/references/templates/DeleteService.java.tpl
plugins/developer-kit-java/skills/spring-boot-crud-patterns/references/templates/DomainModel.java.tpl
plugins/developer-kit-java/skills/spring-boot-crud-patterns/references/templates/DomainRepository.java.tpl
plugins/developer-kit-java/skills/spring-boot-crud-patterns/references/templates/DomainService.java.tpl
plugins/developer-kit-java/skills/spring-boot-crud-patterns/references/templates/DtoRequest.java.tpl
plugins/developer-kit-java/skills/spring-boot-crud-patterns/references/templates/DtoResponse.java.tpl