Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use when adding retries, backoff, or concurrency protection to Spring Boot 3 / Spring Framework 6 services. Covers Spring Retry or Resilience4j selection, proxy behavior, and transaction limits.
.claude/skills/rrezartprebreza-resilience-retry/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -32% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -17% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -41% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -22% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -7% | 0% |
Spring Framework 7 provides core declarative retry and concurrency limiting. This is not a repackaging of the separate spring-retry project; attribute names and recovery behavior differ.
java@Configuration @EnableResilientMethods class ResilienceConfig { }
Use @Retryable for transient failures and @ConcurrencyLimit as a lightweight bulkhead:
java@Service class PaymentClient { @Retryable( includes = ConnectException.class, maxRetries = 4, delay = 200, multiplier = 2.0, maxDelay = 2000, jitter = 50) PaymentResult charge(ChargeRequest request) { ... } } @ConcurrencyLimit(4) Report generateReport(UUID id) { ... }
maxRetries counts retries after the first call, so four retries means five total attempts. Backoff attributes are flat on @Retryable; multiplier = 1.0 means fixed delay.
Core resilience has no @Recover. When attempts are exhausted, the last exception reaches the caller. Catch it at the orchestration boundary or use a listener. Because the implementation is proxy-based, self-invocation bypasses advice. Put retry outside a transactional bean when each attempt needs a fresh transaction.
spring-retry for basic core retry - use @EnableResilientMethods with Framework 7.org.springframework.retry.annotation - core annotations use org.springframework.resilience.annotation.maxAttempts - core uses maxRetries, which counts retries rather than total calls.@Recover - core resilience has no recovery callback; handle the final exception at the caller.@Backoff - use flat delay, multiplier, maxDelay, and jitter attributes.@EnableResilientMethods - annotations are ignored without enablement.| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 22,221 | 12,691 | -43% | 1 | 1 | 0% | 3,136 | 2,118 | -32% | 0 | 0 | — |
case-02 | fail→pass | 20,918 | 14,887 | -29% | 1 | 1 | 0% | 2,997 | 2,479 | -17% | 0 | 0 | — |
case-03 | fail→pass | 27,491 | 9,078 | -67% | 1 | 1 | 0% | 4,046 | 2,388 | -41% | 0 | 0 | — |
case-04 | pass→pass | 22,688 | 17,788 | -22% | 1 | 1 | 0% | 2,735 | 3,110 | +14% | 0 | 0 | — |
case-05 | pass→pass | 19,589 | 9,379 | -52% | 1 | 1 | 0% | 2,858 | 2,260 | -21% | 0 | 0 | — |
case-06 | pass→pass | 17,029 | 21,826 | +28% | 1 | 1 | 0% | 3,495 | 4,068 | +16% | 0 | 0 | — |
case-07 | fail→pass | 14,757 | 5,240 | -64% | 1 | 1 | 0% | 1,969 | 1,535 | -22% | 0 | 0 | — |
case-08 | fail→pass | 8,980 | 6,936 | -23% | 1 | 1 | 0% | 1,692 | 1,575 | -7% | 0 | 0 | — |
case-09 | fail→pass | 13,213 | 7,586 | -43% | 1 | 1 | 0% | 1,584 | 975 | -38% | 0 | 0 | — |
case-10 | fail→pass | 20,740 | 11,654 | -44% | 1 | 1 | 0% | 2,484 | 2,673 | +8% | 0 | 0 | — |
case-11 | pass→pass | 9,081 | 3,289 | -64% | 1 | 1 | 0% | 1,722 | 909 | -47% | 0 | 0 | — |
case-12 | pass→pass | 12,819 | 9,812 | -23% | 1 | 1 | 0% | 2,371 | 2,376 | +0% | 0 | 0 | — |
case-13 | pass→pass | 18,188 | 14,398 | -21% | 1 | 1 | 0% | 2,605 | 2,623 | +1% | 0 | 0 | — |
case-14 | fail→pass | 10,043 | 5,359 | -47% | 1 | 1 | 0% | 1,835 | 1,538 | -16% | 0 | 0 | — |
case-15 | pass→pass | 15,271 | 3,170 | -79% | 1 | 1 | 0% | 2,247 | 1,095 | -51% | 0 | 0 | — |
case-16 | fail→pass | 12,923 | 3,937 | -70% | 1 | 1 | 0% | 2,220 | 1,196 | -46% | 0 | 0 | — |
case-17 | fail→pass | 17,253 | 4,403 | -74% | 1 | 1 | 0% | 3,280 | 1,354 | -59% | 0 | 0 | — |
case-18 | fail→pass | 9,386 | 4,670 | -50% | 1 | 1 | 0% | 1,684 | 1,324 | -21% | 0 | 0 | — |
case-19 | fail→pass | 27,231 | 6,454 | -76% | 1 | 1 | 0% | 4,328 | 1,868 | -57% | 0 | 0 | — |
case-20 | fail→pass | 24,947 | 7,280 | -71% | 1 | 1 | 0% | 3,465 | 1,578 | -54% | 0 | 0 | — |
case-21 | pass→pass | 30,168 | 13,514 | -55% | 1 | 1 | 0% | 3,011 | 3,130 | +4% | 0 | 0 | — |
case-22 | fail→pass | 21,015 | 5,660 | -73% | 1 | 1 | 0% | 3,241 | 1,317 | -59% | 0 | 0 | — |
case-23 | pass→pass | 8,531 | 3,949 | -54% | 1 | 1 | 0% | 1,181 | 1,158 | -2% | 0 | 0 | — |
case-24 | fail→pass | 12,041 | 5,350 | -56% | 1 | 1 | 0% | 2,216 | 1,477 | -33% | 0 | 0 | — |
case-25 | fail→pass | 16,227 | 8,063 | -50% | 1 | 1 | 0% | 2,836 | 2,201 | -22% | 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. 25 cases were attempted. The headline lift of +64 percentage points is the difference between those two pass rates over the 25 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.