Agent skill · DevOps & Cloud

microsoft-extensions-ai

Use when building provider-agnostic AI applications with Microsoft.Extensions.AI. Covers IChatClient, IEmbeddingGenerator, middleware pipelines, caching, telemetry, and DI integration for chat completions and embeddings. USE FOR: provider-agnostic AI abstractions, dependency-injected chat clients, embedding generation, middleware pipelines (caching, logging, rate limiting), switching between OpenAI/Azure/Ollama without code changes DO NOT USE FOR: Azure-specific model catalog features (use azure-ai-inference), building agent workflows with tools and orchestration (use agent-framework), MCP too

majiayu000github.com/majiayu000GitHub ↗
claude-codecopilotMIT
Install
npx skills add majiayu000/claude-skill-registry --skill microsoft-extensions-ai --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 11 KB
Bundled scripts: none
Version: 1.0.0
Declared author: Tyler-R-Kendrick
Requires: claude, copilot, cursor
Path: skills/ai-llm/microsoft-extensions-ai/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Microsoft.Extensions.AI ## Overview Microsoft.Extensions.AI provides a set of provider-agnostic abstractions for AI services in .NET, centered on `IChatClient` for chat completions and `IEmbeddingGenerator<,>` for vector embeddings. It follows the same patterns as `ILogger` and `HttpClient` in .NET -- services program against interfaces, providers are configured at the composition root, and middleware can be composed in pipelines for caching, telemetry, rate limiting, and function calling. ## NuGet Packages ```bash dotnet add package Microsoft.Extensions.AI dotnet add package Microsoft.Extensions.AI.OpenAI # OpenAI / Azure OpenAI provider dotnet add package Microsoft.Extensions.AI.Ollama # Ollama local models dotnet add package Microsoft.Extensions.AI.AzureAIInference # Azure AI model catalog ``` ## Basic Chat Completion ```csharp using Microsoft.Extensions.AI; IChatClient chatClient = new OllamaChatClient(new Uri("http://localhost:11434"), "llama3.1"); var response = await chatClient.GetResponseAsync("What is dependency injection?"); Console.WriteLine(response.Messages.Last().Text); ``` ## Streaming Chat Completion ```csharp using Microsoft.Extensions.AI; IChatClient chatClient

What's inside
Steps it walks through
  1. Overview
  2. NuGet Packages
  3. Basic Chat Completion
  4. Streaming Chat Completion
  5. Multi-Turn Conversations
  6. Chat Options
  7. Best Practices
Ships with 1 file
  • metadata.json
Commands it runs
dotnet add package Microsoft.Extensions.AI
dotnet add package Microsoft.Extensions.AI.OpenAI        # OpenAI / Azure OpenAI provider
dotnet add package Microsoft.Extensions.AI.Ollama        # Ollama local models
dotnet add package Microsoft.Extensions.AI.AzureAIInference  # Azure AI model catalog
More from claude-skill-registry
All skills →
About this skill
What does the microsoft-extensions-ai skill do?

Use when building provider-agnostic AI applications with Microsoft.Extensions.AI. Covers IChatClient, IEmbeddingGenerator, middleware pipelines, caching, telemetry, and DI integration for chat completions and embeddings. USE FOR: provider-agnostic AI abstractions, dependency-injected chat clients, embedding generation, middleware pipelines (caching, logging, rate limiting), switching between OpenAI/Azure/Ollama without code changes DO NOT USE FOR: Azure-specific model catalog features (use azure-ai-inference), building agent workflows with tools and orchestration (use agent-framework), MCP too

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill microsoft-extensions-ai --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going