Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use this skill when working on Java services/libs and you want clean layering, safe null handling, predictable build structure (Maven/Gradle), and testable code.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✓→✓ | = Same ✓ | -8% | 0% |
| case-04 | ✓→✓ | = Same ✓ | -26% | 0% |
| case-05 | ✓→✓ | = Same ✓ | -24% | 0% |
| case-06 | ✓→✓ | = Same ✓ | -25% | 0% |
| case-08 | ✓→✓ | = Same ✓ | -3% | 0% |
Use this skill when working on Java services/libs and you want clean layering, safe null handling, predictable build structure (Maven/Gradle), and testable code.
Prefer:
Optional<T> for return values (not for fields)Avoid:
Optional in fields/DTOs as a general rule (depends on ecosystem)Keep boundaries clear:
Prefer:
Rules:
Patterns:
pom.xml vs build.gradle) and entry points.mvn test or gradle test depending on project.Exception broadly and hiding failuresOther measured skills in the registry, with their headline benchmark lift.