resilience

Implements Polly v8 ResiliencePipelines for .NET 10 HTTP and non-HTTP operations.

1|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/Maj3D10/Training-Platform --skill resilience-maj3d10
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resilience
Source: https://github.com/Maj3D10/Training-Platform/tree/main/.agent/skills/resilience
Command: npx skills add https://github.com/Maj3D10/Training-Platform --skill resilience-maj3d10

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you prevent transient failures from cascading into outages by implementing robust resilience patterns for .NET 10 applications.

Core Features & Use Cases

  • Polly v8 Resilience Pipelines (ResiliencePipeline): Uses the modern pipeline API (retry, circuit breaker, timeout, fallback, hedging) instead of legacy v7 Policy syntax.
  • HTTP resilience via DI: Configures resilience directly on HttpClient using AddResilienceHandler / AddStandardResilienceHandler and Microsoft.Extensions.Http.Resilience.
  • Non-HTTP resilience: Builds named pipelines with AddResiliencePipeline for database, queue, or other operations, and injects them cleanly via keyed services.
  • Safety and correctness guardrails: Emphasizes per-attempt and total timeouts, composition order, idempotency-aware retry guidance, and telemetry instrumentation.

Quick Start

Load the resilience skill and configure your HTTP clients to use a standard production-ready handler for retry, circuit breaker, and timeouts.

Frequently Asked Questions about resilience

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

FAQPage Schema
How do I configure Polly v8 resilience pipelines for HttpClient in .NET 10?

Configure HttpClient resilience in .NET 10 by using AddResilienceHandler or AddStandardResilienceHandler with Microsoft.Extensions.Http.Resilience to apply retry, circuit breaker, and timeout strategies via dependency injection.

What is the difference between Polly v7 Policy and v8 ResiliencePipeline?

Polly v8 replaces the legacy v7 Policy syntax with the modern ResiliencePipeline API, allowing you to compose resilience strategies like retry, circuit breaking, hedging, and fallback directly through dependency injection.

Can I use Polly v8 resilience pipelines for non-HTTP operations like database calls?

Yes, you can build named Polly v8 resilience pipelines with AddResiliencePipeline for database, queue, or other non-HTTP operations, injecting them cleanly into your services via keyed services.

How do I handle timeout layering and strategy composition in a Polly resilience pipeline?

Handle timeout layering by configuring per-attempt and total timeouts within your resilience pipeline, ensuring correct strategy composition order and applying idempotency-aware retry guidance to prevent unsafe retries.

What is the best way to add telemetry to a .NET 10 resilience pipeline?

Add telemetry instrumentation to your .NET 10 resilience pipeline to monitor transient HTTP failures and latency-sensitive reads, enabling graceful degradation and tracking the effectiveness of retry and circuit breaking behaviors.