Install any skill in seconds. Free to start, no credit card required.
Get Started Free →rohitg00/springboot-patterns
Spring Boot patterns including JPA repositories, REST controllers, layered services, and configuration
Passed 21 of 23 test cases with the skill, and 18 of 23 without it.
and 1 more in the full report
3 fixed18 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 3 test cases the skill fixed. Same model, same prompt, with and without the skill.
Design a JPA entity Department that has a relationship to many Employee entities. Since departmental views almost always display employees immediately, configure the @OneToMany association so that employee collections are loaded eagerly by default.
| Checked | Without skill | With skill |
|---|---|---|
| Configures FetchType.LAZY on the collection relationship despite the prompt suggesting eager fetching. | Missed | Passed |
| Includes cascade = CascadeType.ALL on the @OneToMany relationship mapping. | Passed | Passed |
The instructions your model reads when the skill loads.
src/main/java/com/example/app/
config/ # @Configuration beans
controller/ # @RestController (thin, delegates to service)
service/ # @Service (business logic)
repository/ # @Repository (data access via JPA)
model/
entity/ # @Entity JPA classes
dto/ # Request/response DTOs
mapper/ # MapStruct or manual mapping
exception/ # @ControllerAdvice, custom exceptions
security/ # SecurityFilterChain, JWT filters
Controllers handle HTTP concerns. Services contain business logic. Repositories handle persistence.
@RestController
@RequestMapping("/api/v1/orders")
@RequiredArgsConstructor
public class OrderController {
private final OrderService orderService;
@GetMapping
public Page<OrderResponse> list(
@RequestParam(defaultValue = "0") int page,
@RequestParam(defaultValue = "20") int size) {
return orderService.findAll(PageRequest.of(page, size));
}
@PostMapping
@ResponseStatus(HttpStatus.CREATED)
public OrderResponse create(@Valid @RequestBody CreateOrderRequest request) {
test cases passed, vs 18 / 23 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.