Marcelo Daniel Toledo

Marcelo Daniel Toledo

Software Developer | Bachelor's Degree in Computer Science

Back to Projects
Logo Refit HTTP Skill

Refit HTTP Skill

Open Source

AI Skill for creating Refit-based HTTP clients in .NET with integrated resilience patterns (Retry, Circuit Breaker).

.NET Refit Polly HTTP AI Skill

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