Context
Integrating external APIs in .NET often leads to repetitive code: poorly configured HttpClient, manual retries and scattered resilience logic. AI agents that generate integration code also lack clear guidance on the correct patterns in the modern .NET ecosystem.
The Challenge
Create an AI Skill that guides AI agents to generate correct HTTP clients in .NET: interface-based with Refit, with built-in resilience (Retry, Circuit Breaker) and applying modern C# practices.
The Solution
A skill for AI agents (Claude Code) that automatically generates interface-based HTTP clients using Refit, with resilience patterns via Microsoft.Extensions.Http.Resilience (Polly) and immutable DTOs using C# records. Eliminates boilerplate and standardizes the way .NET projects consume external APIs.
Technologies
- .NET — base framework
- Refit — interface-based HTTP clients
- Microsoft.Extensions.Http.Resilience (Polly) — resilience: Retry and Circuit Breaker
- C# Records — immutable DTOs