create-api-adapter

Generate .NET API adapter scaffolds with HttpClient and retry policies.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/yeeehaooo/WorkSpace --skill create-api-adapter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-api-adapter
Source: https://github.com/yeeehaooo/WorkSpace/tree/main/skills/dotnet/templates/create-api-adapter-skill
Command: npx skills add https://github.com/yeeehaooo/WorkSpace --skill create-api-adapter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create a standardized scaffolding to connect to external APIs within a Clean Architecture project, reducing boilerplate and ensuring consistent layering.

Core Features & Use Cases

  • Interface and contract scaffolding in the Application layer for provider adapters.
  • Concrete Infrastructure adapters using HttpClient with retry policies.
  • DI registration and observability hooks to promote testability and resilience.

Quick Start

Provide a new provider name and request/response types to auto-generate a ready-to-use adapter scaffold.

Frequently Asked Questions about create-api-adapter

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

FAQPage Schema
How do I generate an API adapter scaffold for Clean Architecture in .NET?

To generate an API adapter scaffold for Clean Architecture, provide a provider name and request/response types. The tool automatically creates interface skeletons, concrete HttpClient adapters, DI registration, and retry policies across application and infrastructure layers.

What is the best way to structure external API integration interfaces in a Clean Architecture project?

Structuring external API integration interfaces requires defining provider adapter contracts in the application layer. This scaffold generates these interface skeletons alongside concrete infrastructure adapters using HttpClient to enforce consistent layering and testability.

Does this API adapter scaffold include retry policies for HttpClient?

Yes, the API adapter scaffold includes retry policies for HttpClient. It automatically implements resilient service wrappers in the infrastructure layer to handle transient failures and satisfy resilience requirements for external API integration.

Can I use this to automatically register API adapters for dependency injection?

Yes, you can use this to automatically register API adapters for dependency injection. The scaffold generates DI registration code and observability hooks, promoting testability and seamless integration within your .NET application pipeline.

When do I need an API adapter scaffold for my .NET project?

You need an API adapter scaffold when connecting to external APIs within a Clean Architecture project. It reduces boilerplate by standardizing layering, generating interface contracts, and wrapping HttpClient calls with resilient retry policies.