go-resilience-layer

Generate a Go resilience layer with circuit breaker, retry, and rate limiting.

Updated Jan 17, 2026
One-click install
npx skills add https://github.com/saddam-eng-tech/ai-agent-skills --skill go-resilience-layer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-resilience-layer
Source: https://github.com/saddam-eng-tech/ai-agent-skills/tree/main/go-resilience-layer
Command: npx skills add https://github.com/saddam-eng-tech/ai-agent-skills --skill go-resilience-layer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses the common challenge of handling failures in microservice communication by providing a standardized way to implement resilience patterns.

Core Features & Use Cases

  • Circuit Breaker: Prevents repeated calls to a failing service.
  • Exponential Backoff Retry: Retries failed requests with increasing delays and jitter.
  • Rate Limiting: Controls the rate of outbound requests to protect downstream services.
  • OpenTelemetry Metrics: Optionally emits metrics for state transitions in the resilience layer.
  • Use Case: When your Go microservice makes calls to an external API that is sometimes unstable, this skill can wrap those calls to ensure your service remains available and doesn't overload the failing API.

Quick Start

Generate a resilience layer for my Go microservice client calls with a 50% failure threshold and 3 retry attempts.

Frequently Asked Questions about go-resilience-layer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent cascading failures in Go microservice communication?

Prevent cascading failures in Go microservice communication by wrapping client calls with a composable resilience layer that incorporates circuit breakers to stop repeated calls to failing services. This improves distributed system fault tolerance and keeps your service available.

What is exponential backoff retry with jitter in Go distributed systems?

Exponential backoff retry with jitter is a resilience pattern for Go distributed systems that retries failed microservice requests using increasing delays mixed with randomness. This jitter prevents synchronized retry spikes from overwhelming recovering downstream APIs.

How do I implement token-bucket rate limiting for outbound Go microservice requests?

Implement token-bucket rate limiting for outbound Go microservice requests by generating a standardized resilience layer. This controls the outbound request rate to protect downstream services from being overloaded by excessive client traffic during peak loads.

Does this Go resilience layer support OpenTelemetry metrics for circuit breaker state transitions?

Yes, the Go resilience layer supports optional OpenTelemetry metrics for circuit breaker state transitions. It emits observability data during state changes, allowing you to monitor the resilience layer's behavior and microservice communication health.

When do I need a circuit breaker and retry mechanism for Go microservices?

You need a circuit breaker and retry mechanism when your Go microservice makes calls to an external API that is sometimes unstable. Wrapping those calls ensures your service remains available and prevents overloading the failing downstream API.