Provide repeatable CRUD workflows for Spring Boot 3 services with Spring Data JPA and feature-focused architecture; apply when modeling aggregates, repositories, controllers, and DTOs for REST APIs.
Install with Tessl CLI
npx tessl i github:giuseppe-trisciuoglio/developer-kit --skill spring-boot-crud-patternsOverall
score
82%
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
Deliver feature-aligned CRUD services that separate domain, application, presentation, and infrastructure layers while preserving Spring Boot 3.5+ conventions. This skill distills the essential workflow and defers detailed code listings to reference files for progressive disclosure.
spring-boot-starter-web and spring-boot-starter-data-jpa.@RequiredArgsConstructor or explicit constructors).jakarta.validation) and error handling (ResponseStatusException).feature/<name>/ directories for domain, application, presentation, and infrastructure.create and update.domain/repository describing persistence contracts.infrastructure/persistence that map domain models to JPA entities and delegate to JpaRepository.application/service that orchestrate aggregates, repositories, and mapping logic.presentation/rest, expose endpoints with proper status codes, and wire validation annotations.Consult references/examples-product-feature.md for complete code listings that align with each step.
Product.create) to centralize invariants.Money, Stock) to enforce type safety and encapsulate validation.@Entity annotations in the domain package when using adapters.@Service classes using constructor injection and @Transactional.JpaRepository<ProductEntity, String>) and custom queries for pagination or batch updates.application.yml; see references/spring-official-docs.md.ProductController) and expose REST paths (/api/products).ResponseEntity with appropriate codes: 201 Created on POST, 200 OK on GET/PUT/PATCH, 204 No Content on DELETE.@Valid on request DTOs and handle errors with @ControllerAdvice or ResponseStatusException.references/examples-product-feature.md integration test snippets.@DataJpaTest and Testcontainers to validate persistence mapping, pagination, and batch operations.info for lifecycle events (create, update, delete) and use structured logging for audit trails.python skills/spring-boot/spring-boot-crud-patterns/scripts/generate_crud_boilerplate.py --spec entity.json --package com.example.product --output ./generatedskills/spring-boot/spring-boot-crud-patterns/templates/ or pass --templates-dir <path>; no fallback to built-ins. See templates/README.md.skills/spring-boot/spring-boot-crud-patterns/assets/specs/product.jsonskills/spring-boot/spring-boot-crud-patterns/assets/specs/product_with_rel.jsonIf you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.