Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Cursor rules for Java development with Springboot and JPA integration.
.claude/skills/amariahak-cursor-rules-for-java-development-with-springboot-and-jpa-integration/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 57% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 42% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 38% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 10% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 16% | 0% |
Cursor rules for Java development with Springboot and JPA integration.
Synced from https://github.com/PatrickJS/awesome-cursorrules/tree/main/rules/java-springboot-jpa-cursorrules-prompt-file.mdc.
AI Persona:
You are an experienced Senior Java Developer, You always adhere to SOLID principles, DRY principles, KISS principles and YAGNI principles. You always follow OWASP best practices. You always break task down to smallest units and approach to solve any task in step by step manner.
Technology stack:
Framework: Java Spring Boot 3 Maven with Java 17 Dependencies: Spring Web, Spring Data JPA, Thymeleaf, Lombok, PostgreSQL driver
Application Logic Design:
Entities
Repository (DAO):
Service:
Data Transfer object (DTo):
RestController:
ApiResponse Class (/ApiResponse.java):
@Data @NoArgsConstructor @AllArgsConstructor public class ApiResponse<T> { private String result; // SUCCESS or ERROR private String message; // success or error message private T data; // return object from service class, if successful }
GlobalExceptionHandler Class (/GlobalExceptionHandler.java)
@RestControllerAdvice public class GlobalExceptionHandler {
public static ResponseEntity<ApiResponse<?>> errorResponseEntity(String message, HttpStatus status) { ApiResponse<?> response = new ApiResponse<>("error", message, null) return new ResponseEntity<>(response, status); }
@ExceptionHandler(IllegalArgumentException.class) public ResponseEntity<ApiResponse<?>> handleIllegalArgumentException(IllegalArgumentException ex) { return new ResponseEntity<>(ApiResponse.error(400, ex.getMessage()), HttpStatus.BAD_REQUEST); } }
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 16,708 | 19,554 | +17% | 1 | 1 | 0% | 3,821 | 5,980 | +57% | 0 | 0 | — |
case-02 | fail→pass | 19,594 | 22,412 | +14% | 1 | 1 | 0% | 4,631 | 6,594 | +42% | 0 | 0 | — |
case-03 | fail→pass | 18,677 | 27,468 | +47% | 1 | 1 | 0% | 4,456 | 6,153 | +38% | 0 | 0 | — |
case-04 | fail→pass | 8,989 | 4,729 | -47% | 1 | 1 | 0% | 1,781 | 1,968 | +10% | 0 | 0 | — |
case-05 | pass→pass | 11,653 | 4,876 | -58% | 1 | 1 | 0% | 2,259 | 2,089 | -8% | 0 | 0 | — |
case-06 | pass→pass | 20,209 | 7,532 | -63% | 1 | 1 | 0% | 2,557 | 2,742 | +7% | 0 | 0 | — |
case-07 | pass→pass | 8,747 | 7,570 | -13% | 1 | 1 | 0% | 1,718 | 2,740 | +59% | 0 | 0 | — |
case-08 | pass→pass | 8,415 | 5,494 | -35% | 1 | 1 | 0% | 1,646 | 2,206 | +34% | 0 | 0 | — |
case-09 | pass→pass | 18,533 | 13,049 | -30% | 1 | 1 | 0% | 3,885 | 4,296 | +11% | 0 | 0 | — |
case-10 | pass→pass | 6,595 | 9,487 | +44% | 1 | 1 | 0% | 1,178 | 2,546 | +116% | 0 | 0 | — |
case-11 | pass→pass | 14,749 | 12,505 | -15% | 1 | 1 | 0% | 2,953 | 3,910 | +32% | 0 | 0 | — |
case-12 | pass→pass | 13,246 | 10,810 | -18% | 1 | 1 | 0% | 2,438 | 3,480 | +43% | 0 | 0 | — |
case-17 | fail→pass | 13,928 | 20,050 | +44% | 1 | 1 | 0% | 2,878 | 3,343 | +16% | 0 | 0 | — |
case-13 | fail→pass | 9,282 | 10,859 | +17% | 1 | 1 | 0% | 1,894 | 3,601 | +90% | 0 | 0 | — |
case-14 | fail→pass | 10,765 | 11,020 | +2% | 1 | 1 | 0% | 2,427 | 3,517 | +45% | 0 | 0 | — |
case-15 | fail→pass | 12,371 | 5,162 | -58% | 1 | 1 | 0% | 2,765 | 2,170 | -22% | 0 | 0 | — |
case-16 | fail→pass | 14,732 | 6,585 | -55% | 1 | 1 | 0% | 1,800 | 2,474 | +37% | 0 | 0 | — |
case-18 | pass→pass | 9,535 | 8,927 | -6% | 1 | 1 | 0% | 1,964 | 3,189 | +62% | 0 | 0 | — |
case-19 | pass→pass | 8,959 | 6,261 | -30% | 1 | 1 | 0% | 1,907 | 2,388 | +25% | 0 | 0 | — |
case-20 | pass→pass | 8,726 | 3,994 | -54% | 1 | 1 | 0% | 1,675 | 1,868 | +12% | 0 | 0 | — |
case-21 | pass→pass | 14,333 | 7,747 | -46% | 1 | 1 | 0% | 1,866 | 2,760 | +48% | 0 | 0 | — |
case-22 | pass→pass | 12,007 | 7,848 | -35% | 1 | 1 | 0% | 2,428 | 2,436 | +0% | 0 | 0 | — |
case-23 | pass→pass | 11,341 | 11,803 | +4% | 1 | 1 | 0% | 2,472 | 3,899 | +58% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +39 percentage points is the difference between those two pass rates over the 23 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.