Java resilience pattern

From VincentChuWaiChow/vanguard-frontier-agentic · View interactive version

Java resilience pattern is an AI agent skill from the GitHub repository VincentChuWaiChow/vanguard-frontier-agentic. Use this skill when statically reviewing resilience4j + Spring composition on a Java code path: decorator/aspect order between @Retry, @CircuitBreaker, @RateLimiter, @TimeLimiter, and @Bulkhead; retry safety on non-idempotent write paths (idempotency/dedup keys); TimeLimiter and total retry timeout-

How to use this skill

Skill file

java-resilience-pattern

Purpose

This skill statically reviews resilience4j decorator composition on Spring-based Java code paths for correctness, not just presence. Fault-tolerance annotations are only sound in composition — the same @Retry and @CircuitBreaker pairing can be correct or dangerous depending on aspect order, whether the protected operation is idempotent, whether retry sits inside or outside a transaction boundary, whether TimeLimiter is actually bounding an asynchronous call, and whether Bulkhead isolates the right thread pool. The review catches misordered aspects that inflate the circuit breaker's observed failure rate, non-idempotent writes retried without a dedup key, retry composed unsafely with @Transactional, timeout budgets that don't compose, semaphore bulkheads mistaken for thread isolation, and fallbacks that silently swallow degraded-mode signal.

Trigger conditions

When not to use

Lean operating rules

References

Load these only when needed:

Response minimum

Return, at minimum:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.