- Home
- Skills
- Agents & Orchestration
- Repair Circuit Breaker & Fallback Logic
More screenshots
Works with the AI tools you already use
Repair Circuit Breaker & Fallback Logic
Diagnose and repair circuit breakers, failure classification, open/half-open transitions, probes, fallbacks, and recovery behavior.
$8.99
Repair Circuit Breaker & Fallback Logic
Example session with this skill installed
Our payment gateway breaker isn't opening when Stripe returns 401s, but it does for 503s. Here is the Resilience4j config and the log snippet showing the leaked 401 errors.
- Read your context and instructions
- Compiled the repair circuit breaker
The diagnosis indicates that 401 Unauthorized is being treated as a business logic error rather than a system failure, excluding it from the failure rate calculation. This prevents the breaker from opening even when the credential rotation fails globally.
Circuit Breaker Repair
| Component | Current State | Proposed Change | Reason |
|---|---|---|---|
| Failure Classification | recordExceptions: [IOException.class] | Add NotAuthorizedException.class | 401s in this context indicate a systemic auth failure. |
| Sliding Window | COUNT_BASED (100) | TIME_BASED (30s) | Low volume auth calls take too long to hit count thresholds. |
| Transition Logic | Manual reset only | waitDurationInOpenState: 10s | Allow automatic recovery attempts after cooldown. |
Implementation Patch (Resilience4j YAML)
resilience4j.circuitbreaker:
instances:
paymentGateway:
slidingWindowType: TIME_BASED
slidingWindowSize: 30
minimumNumberOfCalls: 5
failureRateThreshold: 50
waitDurationInOpenState: 10s
recordExceptions:
- java.io.IOException
- com.payment.exception.NotAuthorizedException
ignoreExceptions:
- com.payment.exception.InvalidCardException
Next steps
- Update the
recordExceptionslist in your application configuration. - Run the provided deterministic test case using a
TestTimeSourceto verify the transition to OPEN after 5 failed auth attempts. - Monitor the
resilience4j_circuitbreaker_statemetric during the next deployment.
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
Repair Circuit Breaker & Fallback Logic is a bounded ToolForge Labs workflow. Diagnose and repair circuit breakers, failure classification, open/half-open transitions, probes, fallbacks, and recovery behavior. Works from full repositories or partial context such as snippets, logs, configuration, traces, and architecture notes. Produces concrete repairs or evidence-backed review outputs while preserving existing product/security policy.
It works from a full repository or partial evidence such as snippets, logs, configuration, traces, tickets, and architecture notes. The skill preserves existing product and security policy, separates verified facts from assumptions, avoids invented execution claims, and produces concrete repair or review steps with focused deterministic validation or traceable evidence.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 27 days ago
- Passed all security checks, Safe to install