Skip to content

giuseppe-trisciuoglio/developer-kit / plugins/developer-kit-java/skills/spring-boot-crud-patterns

spring-boot-crud-patterns

Verified

Provides and generates complete CRUD workflows for Spring Boot 3 services. Creates feature-focused architecture with Spring Data JPA aggregates, repositories, DTOs, controllers, and REST APIs. Validates domain invariants and transaction boundaries. Use when modeling Java backend services, REST API endpoints, database operations, web service patterns, or JPA entities for Spring Boot applications.

FileKindSize
SKILL.mdskill md9.8 KB
assets/specs/product.jsonconfig240 B
assets/specs/product_with_rel.jsonconfig316 B
references/crud-reference.mdmarkdown208 B
references/examples-product-feature.mdmarkdown455 B
references/generator-usage.mdmarkdown1.2 KB
references/spring-official-docs.mdmarkdown116 B
references/templates/Controller.java.tplother2.4 KB
references/templates/CreateService.java.tplother1.1 KB
references/templates/DeleteService.java.tplother699 B
references/templates/DomainModel.java.tplother378 B
references/templates/DomainRepository.java.tplother403 B
references/templates/DomainService.java.tplother1.0 KB
references/templates/DtoRequest.java.tplother110 B
references/templates/DtoResponse.java.tplother112 B
references/templates/EntityExceptionHandler.java.tplother1.5 KB
references/templates/ErrorResponse.java.tplother141 B
references/templates/ExistException.java.tplother306 B
references/templates/GetService.java.tplother847 B
references/templates/GlobalExceptionHandler.java.tplother2.5 KB
references/templates/JpaEntity.java.tplother545 B
references/templates/ListService.java.tplother1.1 KB
references/templates/Mapper.java.tplother447 B
references/templates/NotFoundException.java.tplother224 B
references/templates/PageResponse.java.tplother175 B
references/templates/PersistenceAdapter.java.tplother1.5 KB
references/templates/README.mdmarkdown1.4 KB
references/templates/SpringDataRepository.java.tplother202 B
references/templates/UpdateService.java.tplother1.1 KB
scripts/examples/product.jsonconfig240 B
scripts/examples/product_with_rel.jsonconfig641 B
scripts/generate_crud_boilerplate.pyexecutablescript36.2 KB

references/templates/README.md

View on GitHub
# CRUD Generator Templates

You must provide all templates (.tpl) required by the generator; there is no fallback.

How it works:
- The generator loads .tpl files from this directory (or a directory passed via --templates-dir).
- It uses Python string.Template placeholders (e.g., $package, $entity, $id_type, $id_name, $id_name_lower, $base_path, $dto_request, $dto_response).
- If any template is missing or fails to render, generation fails.

Required template filenames:
- DomainModel.java.tpl
- DomainRepository.java.tpl
- JpaEntity.java.tpl
- SpringDataRepository.java.tpl
- PersistenceAdapter.java.tpl
- CreateService.java.tpl
- GetService.java.tpl
- UpdateService.java.tpl
- DeleteService.java.tpl
- ListService.java.tpl
- Mapper.java.tpl
- DtoRequest.java.tpl
- DtoResponse.java.tpl
- PageResponse.java.tpl
- ErrorResponse.java.tpl
- Controller.java.tpl
- GlobalExceptionHandler.java.tpl
- EntityExceptionHandler.java.tpl
- NotFoundException.java.tpl
- ExistException.java.tpl

Tip: Start simple and expand over time; these files are your team’s baseline.

Conventions:
- Base path is versioned: /v1/{resources}
- POST returns 201 Created and sets Location: /v1/{resources}/{id}
- GET collection supports pagination via Pageable in controller and returns PageResponse<T>
- Application layer uses ${Entity}Mapper for DTO↔Domain and throws ${Entity}ExistException on duplicates
- Exceptions are mapped by GlobalExceptionHandler and ${Entity}ExceptionHandler
deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall