tessl install github:giuseppe-trisciuoglio/developer-kit --skill spring-boot-crud-patternsgithub.com/giuseppe-trisciuoglio/developer-kit
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.
Review Score
82%
Validation Score
11/16
Implementation Score
70%
Activation Score
100%
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.json