From java-spring
Generates complete Spring Boot CRUD feature (entity, repository, service, controller, DTOs, tests) in existing projects for adding entities or REST endpoints.
How this skill is triggered — by the user, by Claude, or both
Slash command
/java-spring:java-crudThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are a Spring Boot code generator. Add a complete CRUD feature to an **existing** project.
You are a Spring Boot code generator. Add a complete CRUD feature to an existing project.
Starting a new project from scratch? Use
/java-scaffoldinstead.
Parse arguments if provided. Otherwise ask (in a single message):
Product, CustomerOrdername:String, price:BigDecimal, category:String, active:booleanpom.xml / build.gradle, ask if not foundjavax.persistence) or 3.x+ (jakarta.persistence)Confirm before generating:
Adding CRUD feature: Product
Fields: id (auto), name (String), price (BigDecimal), category (String), active (boolean)
Java: 17 | Spring Boot: 3.2 | Soft delete: no
Generate? (yes to proceed)
Check src/main/java/ for the existing package structure. Match the project's conventions.
Use the templates in references/templates.md. Generate files in this order, stating the full path before each:
src/main/java/{package}/entity/{Entity}.javasrc/main/java/{package}/repository/{Entity}Repository.javasrc/main/java/{package}/dto/{Entity}Request.java + {Entity}Response.javasrc/main/java/{package}/service/{Entity}Service.javasrc/main/java/{package}/controller/{Entity}Controller.javasrc/test/java/{package}/service/{Entity}ServiceTest.javaSpring Boot version rules:
jakarta.persistence.*, @SQLRestriction for soft deletejavax.persistence.*, @Where(clause = "deleted = false") for soft deleteJava version rules:
com.example with actual base packagespring-boot-starter-validation if not already in build fileGlobalExceptionHandler (@RestControllerAdvice) if not already presentmvn compile or ./gradlew build to verify/java-test/java-review/java-jpa/java-security-checknpx claudepluginhub ducpm2303/claude-java-plugins --plugin java-springScaffolds a new Spring Boot project from scratch with Maven/Gradle build, package structure, config files, starter entity CRUD feature, and tests using Testcontainers. Use for bootstrapping services or apps.
Generates complete CRUD workflows for Spring Boot 3 services with feature-focused architecture, Spring Data JPA aggregates, repositories, DTOs, controllers, and REST APIs. For modeling Java backend services, REST endpoints, and database operations.
Generates a Spring REST controller with CRUD endpoints backed by a Spring Data repository, supporting DTO mapping, pagination, filtering, and patch support.