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/generator-usage.md

View on GitHub
# CRUD Generator Usage

Quick start:

```
python skills/spring-boot-crud-patterns/scripts/generate_crud_boilerplate.py \
  --spec skills/spring-boot-crud-patterns/assets/specs/product.json \
  --package com.example.product \
  --output ./generated \
  --templates-dir skills/spring-boot-crud-patterns/templates [--lombok]
```

Spec (JSON/YAML):
- entity: PascalCase name (e.g., Product)
- id: { name, type (Long|UUID|...), generated: true|false }
- fields: array of { name, type }
- relationships: optional (currently model as FK ids in fields)

What gets generated:
- REST controller at /v1/{resources} with POST 201 + Location header
- Pageable list endpoint returning PageResponse<T>
- Application mapper (application/mapper/${Entity}Mapper) for DTO↔Domain
- Exception types: ${Entity}NotFoundException, ${Entity}ExistException + ${Entity}ExceptionHandler
- GlobalExceptionHandler with validation + DataIntegrityViolationException→409

DTOs:
- Request excludes id when id.generated=true
- Response always includes id

JPA entity:
- `@`Id with `@`GeneratedValue(IDENTITY) for numeric generated ids

Notes:
- Provide all templates in templates/ (see templates/README.md)
- Use --lombok to add Lombok annotations without introducing blank lines between annotations
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