Agent skill

Microsoft Extensions AI

by managedcode in managedcode/dotnet-skills

Build provider-agnostic .NET AI integrations with Microsoft.Extensions.AI, IChatClient, embeddings, middleware, structured output, vector search, and evaluation.

MITAuto-check passedAI & LLM Engineering

Install Microsoft Extensions AI

skills CLI
$ npx skills add managedcode/dotnet-skills --skill microsoft-extensions-ai -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install managedcode/dotnet-skills microsoft-extensions-ai --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/managedcode/dotnet-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/catalog/Libraries/Microsoft-Extensions-AI/skills/microsoft-extensions-ai .claude/skills/microsoft-extensions-ai && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
microsoft-extensions-ai
GitHub stars
486
Token cost
~3.4k tokens
SKILL.md length
1,398 words
Files
84 (incl. references)
Skills in repo
81
Repo updated
First seen
Licence
MIT

At a glance

Build provider-agnostic .NET AI integrations with Microsoft.Extensions.AI, IChatClient, embeddings, middleware, structured output, vector search, and evaluation.

  • Works in 9 steps: Classify the request first: plain model… → Default to Microsoft.Extensions.AI for… → Reference… → …
  • Reviewing .NET code that uses Microsoft.Extensions.AI
  • SKILL.md covers Trigger On, Workflow, Architecture and Core Knowledge, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Microsoft Extensions AI is an agent skill from managedcode/dotnet-skills. Build provider-agnostic .NET AI integrations with Microsoft.Extensions.AI, IChatClient, embeddings, middleware, structured output, vector search, and evaluation. USE FOR: building or reviewing .NET code that uses Microsoft.Extensions.AI, Microsoft.Extensions.AI.Abstractions, IChatClient, IEmbeddingGenerator, ChatOptions, or AIFunction;. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build…

Its SKILL.md is about 3.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 86 other files, including reference files (for example `manifest.json`, `references/evaluation.md` and `references/examples.md`). Compatibility notes: Requires Microsoft.Extensions.AI or a .NET AI application that needs model, embedding, tool-calling, or evaluation composition without full agent orchestration.

It sits in AI & LLM Engineering, covering Structured output and tool calling, Embeddings and Vector databases. It works with .NET and Model Context Protocol. The repository describes itself as: Installable .NET skill catalog and CLI for Codex, Claude Code, GitHub Copilot, and Gemini. The licence is MIT.

When your agent uses it

  • Reviewing .NET code that uses Microsoft.Extensions.AI
  • Microsoft.Extensions.AI.Abstractions
  • IEmbeddingGenerator
  • : unrelated stacks

Example prompts

  • “/microsoft-extensions-ai”

Requirements

  • Compatibility (from SKILL.md): Requires `Microsoft.Extensions.AI` or a .NET AI application that needs model, embedding, tool-calling, or evaluation composition without full agent orchestration.

Workflow steps

9 steps, taken from the first numbered list in SKILL.md.

  1. Classify the request first: plain model access, tool calling, embeddings/vector search, evaluation, image generation, local-model…
  2. Default to Microsoft.Extensions.AI for application and service code that needs provider-agnostic chat, embeddings, middleware, structured…
  3. Reference Microsoft.Extensions.AI.Abstractions directly only when authoring provider libraries or lower-level reusable integration packages.
  4. Model IChatClient and IEmbeddingGenerator composition explicitly in DI. Keep options, caching, telemetry, logging, and tool invocation…
  5. Treat chat state deliberately. For stateless providers, resend history. For stateful providers, propagate ConversationId rather than…
  6. Use Microsoft.Extensions.VectorData and Microsoft.Extensions.DataIngestion as adjacent building blocks for RAG instead of hand-rolling…
  7. Treat the .NET AI quickstarts as bootstrap paths, not finished architecture. They now cover minimal assistants, MCP client/server flows…
  8. Escalate to microsoft-agent-framework when the requirement becomes agent threads, multi-agent orchestration, higher-order workflows…
  9. Validate with real providers, realistic prompts, and evaluation gates so the abstraction layer actually buys portability and reliability.

What it can do on your machine

Read from SKILL.md and the folder at commit 535dd55. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are mermaid).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires `Microsoft.Extensions.AI` or a .NET AI application that needs model, embedding, tool-calling, or evaluation composition without full agent orchestration.

    From compatibility in the SKILL.md frontmatter.

Context cost

Microsoft Extensions AI loads about 3.4k tokens when it runs, and up to ~117k if it reads all its reference files. Until then it costs about 150 tokens; SKILL.md has 1,398 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~150
When it runs · the whole SKILL.md, loaded when a task matches
~3.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~117k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from managedcode/dotnet-skills at commit 535dd55, republished under its MIT licence (© managedcode). 1,398 words, ~3,443 tokens.

Download SKILL.mdSave it as .claude/skills/microsoft-extensions-ai/SKILL.md (or your agent's skills folder). This skill also uses 83 other files; get the full folder from GitHub.
name
microsoft-extensions-ai
description
Build provider-agnostic .NET AI integrations with `Microsoft.Extensions.AI`, `IChatClient`, embeddings, middleware, structured output, vector search, and evaluation. USE FOR: building or reviewing .NET code that uses Microsoft.Extensions.AI, Microsoft.Extensions.AI.Abstractions, IChatClient, IEmbeddingGenerator, ChatOptions, or AIFunction;. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.
compatibility
Requires `Microsoft.Extensions.AI` or a .NET AI application that needs model, embedding, tool-calling, or evaluation composition without full agent orchestration.

Microsoft.Extensions.AI

Trigger On

  • building or reviewing .NET code that uses Microsoft.Extensions.AI, Microsoft.Extensions.AI.Abstractions, IChatClient, IEmbeddingGenerator, ChatOptions, or AIFunction
  • adding IImageGenerator, local-model chat via Ollama, AI app templates, or the .NET AI quickstarts for assistants and MCP
  • choosing between low-level AI abstractions, provider SDKs, vector-search composition, evaluation libraries, and a fuller agent framework
  • adding streaming chat, structured output, embeddings, tool calling, telemetry, caching, or DI-based AI middleware
  • wiring Microsoft.Extensions.VectorData, Microsoft.Extensions.DataIngestion, MCP tooling, or evaluation packages around a provider-agnostic AI app

Workflow

  1. Classify the request first: plain model access, tool calling, embeddings/vector search, evaluation, image generation, local-model prototyping, MCP bootstrap, or true agent orchestration.
  2. Default to Microsoft.Extensions.AI for application and service code that needs provider-agnostic chat, embeddings, middleware, structured output, and testability.
  3. Reference Microsoft.Extensions.AI.Abstractions directly only when authoring provider libraries or lower-level reusable integration packages.
  4. Model IChatClient and IEmbeddingGenerator composition explicitly in DI. Keep options, caching, telemetry, logging, and tool invocation inspectable in the pipeline.
  5. Treat chat state deliberately. For stateless providers, resend history. For stateful providers, propagate ConversationId rather than assuming all providers behave the same way.
  6. Use Microsoft.Extensions.VectorData and Microsoft.Extensions.DataIngestion as adjacent building blocks for RAG instead of hand-rolling store abstractions prematurely. Treat the embedding model, vector dimensions, and collection schema as one owned contract: changing any of them means reindexing rather than reusing old vector data. Keep vector API source-breaking notes version-aware; in the 10.5+ line, named-argument usage of VectorStoreVectorAttribute uses dimensions:.
  7. Treat the .NET AI quickstarts as bootstrap paths, not finished architecture. They now cover minimal assistants, MCP client/server flows, local models, app templates, and image generation. Start there for a vertical slice, then harden the DI, telemetry, and evaluation story here.
  8. Escalate to microsoft-agent-framework when the requirement becomes agent threads, multi-agent orchestration, higher-order workflows, durable execution, or remote agent hosting.
  9. Validate with real providers, realistic prompts, and evaluation gates so the abstraction layer actually buys portability and reliability.

Architecture

mermaid
flowchart LR
  A["Task"] --> B{"Need agent threads, multi-agent orchestration, or remote agent hosting?"}
  B -->|Yes| C["Use Microsoft Agent Framework on top of `Microsoft.Extensions.AI.Abstractions`"]
  B -->|No| D{"Need provider-agnostic chat, embeddings, tools, typed output, or evaluation?"}
  D -->|Yes| E["Use `Microsoft.Extensions.AI`"]
  E --> F["Compose `IChatClient` / `IEmbeddingGenerator` in DI"]
  F --> G["Add caching, telemetry, tools, vector data, and evaluation deliberately"]
  D -->|No| H["Use plain provider SDKs or deterministic .NET code"]

Core Knowledge

  • Microsoft.Extensions.AI.Abstractions contains the core exchange contracts such as IChatClient, IEmbeddingGenerator<TInput, TEmbedding>, message/content types, and tool abstractions.
  • Microsoft.Extensions.AI adds the higher-level application surface: middleware builders, automatic function invocation, caching, logging, and OpenTelemetry integration.
  • Most apps and services should reference Microsoft.Extensions.AI; provider and connector libraries usually reference only the abstractions package.
  • IChatClient centers on GetResponseAsync and GetStreamingResponseAsync. The returned ChatResponse or ChatResponseUpdate objects carry messages, tool-related content, metadata, and optional conversation identifiers.
  • Local-model quickstarts still route through the same IChatClient abstraction. Ollama-backed clients are useful for low-cost prototyping, offline dev loops, and portability testing, but you still own chat history replay, latency, and model-quality tradeoffs.
  • ChatOptions is the normal control plane for model ID, temperature, tools, AdditionalProperties, and provider-specific raw options.
  • Tool calling is modeled with AIFunction, AIFunctionFactory, and FunctionInvokingChatClient. Ambient data can flow through closures, AdditionalProperties, AIFunctionArguments.Context, or DI.
  • Tool calling can target local .NET methods, external APIs, or MCP-backed tools. The model requests calls; your app still owns execution, validation, and side-effect boundaries.
  • Tool definitions consume request tokens. Keep tool descriptions short and register only the tools relevant for the current conversation or workflow.
  • FunctionInvokingChatClient can handle the tool-invocation loop and parallel tool-call responses automatically when the provider/model supports that shape.
  • IEmbeddingGenerator is the standard abstraction for semantic search, vector indexing, similarity, and cache-key generation. Pair it with Microsoft.Extensions.VectorData.Abstractions for vector store operations, and keep the embedding model, collection dimensions, and chunking/versioning story aligned so reindexing stays explicit.
  • IImageGenerator is the experimental MEAI image surface. Treat MEAI001 as an intentional opt-in, keep image generation separate from chat concerns, and compose logging/caching/hosting middleware around it the same way you would for IChatClient.
  • Microsoft.Extensions.DataIngestion gives you the document-side RAG pipeline: IngestionDocument, document readers like MarkItDown/Markdig, document processors such as ImageAlternativeTextEnricher, chunkers, chunk processors, VectorStoreWriter<T>, and IngestionPipeline<T> for end-to-end composition.
  • IngestionPipeline<T>.ProcessAsync is partial-success oriented. Handle IAsyncEnumerable<IngestionResult> deliberately instead of assuming one failed document should automatically crash the whole ingestion run.
  • Microsoft.Extensions.AI.Evaluation.* gives you quality, NLP, safety, caching, and reporting layers for regression checks and CI gates.
  • dotnet/extensions v10.9.0 adds experimental RoutingChatClient/SemanticRoutingChatClient and FailoverChatClient/OrderedFailoverChatClient pipelines. Keep routing policy, fallback order, retry ownership, cost, and telemetry explicit; do not compose nested retry and failover layers without bounded attempts.
  • Experimental failover switches clients only when the failed attempt has produced no output. Once streaming output has been emitted, surface the failure instead of replaying the response through another model and duplicating visible text or tool work. Test both failure-before-first-update and failure-after-first-update paths; keep fallback attempts bounded.
  • The same release redesigns AI evaluation reports and refreshes their viewer. Treat report shape as a versioned CI artifact, and revalidate downstream parsers or publishing jobs before upgrading evaluation packages.
  • The prior v10.8.4 templates remove GitHub Models and require an explicit --provider azureopenai, --provider ollama, or --provider openai; update scaffolding scripts and provider-authentication tests instead of relying on the old default.
  • The preceding v10.8.0 release moved Microsoft.Extensions.AI.OpenAI to OpenAI 2.12.0, added speech-format auto-detection, and fixed ImageGeneratingChatClient content ordering. Keep multimodal and speech fixtures alongside the new approval/state tests.
  • AIFunctionNameAttribute, AIParameterNameAttribute, and ToolApprovalRequestContent.RequiresConfirmation are new experimental MEAI001 APIs. Opt in deliberately and keep approval decisions at the side-effect boundary.
  • The August 2026 local official-docs snapshot mirrors the current 64-page .NET AI markdown tree, including the renamed tool-calling concept, MEDI/MEVD concepts, quickstart include fragments, and the dedicated vector-store section. Use mcp when the protocol itself becomes the design problem; stay here when you still mostly need app composition around IChatClient and friends.
  • The current .NET AI ecosystem guidance separates direct MEAI composition, MCP interoperability, a prebuilt Copilot SDK harness, and Microsoft Agent Framework orchestration. Use Microsoft Agent Framework when you need autonomous orchestration, threads, workflows, hosting, or multi-agent collaboration instead of just model composition.
Show full SKILL.md (464 more words)Show less

Decision Cheatsheet

If you needDefault choiceWhy
App-level provider abstraction with middlewareMicrosoft.Extensions.AIHighest leverage for apps and services
A reusable provider or connector libraryMicrosoft.Extensions.AI.AbstractionsKeeps your package at the contract layer
Typed chat or UI streamingIChatClient with GetResponseAsync / GetStreamingResponseAsyncCommon request/response shape across providers
Tool calling from .NET methodsAIFunction + FunctionInvokingChatClientNative function metadata and invocation pipeline
Typed structured outputIChatClient.GetResponseAsync<T> extensionsKeeps schema intent in code instead of prompt parsing
Vector search or RAGIEmbeddingGenerator + Microsoft.Extensions.VectorData.AbstractionsStandardizes embeddings and store access
Local model prototypingIChatClient with an Ollama-backed implementationKeeps the app on the MEAI abstractions while you validate prompts or UX locally
Text-to-image or image-generation middlewareIImageGeneratorUse the dedicated image abstraction instead of overloading chat APIs
Evaluation and regression gatesMicrosoft.Extensions.AI.Evaluation.*Relevance, safety, task adherence, caching, reports
Agent threads or multi-step autonomous orchestrationmicrosoft-agent-frameworkThis is beyond plain provider abstraction

Common Failure Modes

  • Referencing only Microsoft.Extensions.AI.Abstractions in an app and then rebuilding middleware, telemetry, or function invocation by hand.
  • Treating IChatClient as if it already gives you durable agent threads, orchestration, or hosted-agent semantics.
  • Mixing provider-specific assistants APIs with IChatClient as if they were the same runtime contract.
  • Forgetting to distinguish stateless history replay from stateful ConversationId flows.
  • Hiding important chat behavior in singleton service fields instead of explicit message history, options, or persistent storage.
  • Adding tool calling without validating parameter binding, invalid input behavior, side effects, or DI-scoped dependencies.
  • Building RAG without stable chunking, embedding-model/version tracking, or vector dimension discipline.
  • Shipping AI features without evaluation baselines, safety checks, or telemetry for prompt/model drift.

Deliver

  • a justified package and abstraction choice: Abstractions only vs full Microsoft.Extensions.AI
  • a concrete IChatClient / IEmbeddingGenerator composition strategy
  • explicit tool-calling, options, state, caching, logging, and telemetry decisions
  • vector-search, evaluation, or MCP integration guidance when the scenario needs it
  • a clear escalation path to Agent Framework when the problem exceeds provider abstraction

Validate

  • the abstraction layer solves a real portability, testability, or composition problem
  • provider registration and middleware order stay explicit in DI
  • chat state management matches whether the provider is stateless or stateful
  • structured output, tool invocation, and embedding flows are typed and observable
  • vector store, embedding model, and chunking strategy are consistent
  • evaluation or safety gates exist for important prompts and agent-like behaviors
  • agentic requirements are not being under-modeled as a simple IChatClient integration

When exact wording, edge-case API behavior, or less-common examples matter, check the local official docs snapshot before relying on summaries.

References

  • official-docs-index.md - Slim local snapshot map with direct links to every mirrored .NET AI docs page plus API-reference pointers
  • patterns.md - Package choice, IChatClient, embeddings, DI pipelines, tool-calling, and Agent Framework escalation guidance
  • examples.md - Quickstart-to-task map covering chat, structured output, function calling, vector search, local models, MCP, and assistants
  • evaluation.md - Quality, NLP, safety, caching, reporting, and CI-oriented evaluation guidance

© managedcode, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 83 other files (references) in catalog/Libraries/Microsoft-Extensions-AI/skills/microsoft-extensions-ai of managedcode/dotnet-skills.

  • SKILL.md
  • manifest.json
  • references/evaluation.md
  • references/examples.md
  • references/official-docs-index.md
  • references/official-docs/azure-ai-services-authentication.md
  • references/official-docs/conceptual/agents.md
  • references/official-docs/conceptual/calling-tools.md
  • references/official-docs/conceptual/chain-of-thought-prompting.md
  • references/official-docs/conceptual/data-ingestion.md
  • references/official-docs/conceptual/embeddings.md
  • references/official-docs/conceptual/how-genai-and-llms-work.md
  • references/official-docs/conceptual/medi-library.md
  • references/official-docs/conceptual/mevd-library.md
  • references/official-docs/conceptual/prompt-engineering-dotnet.md
  • references/official-docs/conceptual/rag.md
  • references/official-docs/conceptual/understanding-tokens.md
  • references/official-docs/conceptual/zero-shot-learning.md
  • … and 66 more

Open the folder on GitHubat commit 535dd55

Compare with similar skills

Microsoft Extensions AI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Microsoft Extensions AI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Microsoft Extensions AI this skillmanagedcode/dotnet-skills486—~3.4kAutomated safety check: PassMIT
Codebase Managementgiancarloerra/SocratiCode3.3k1 repos~1.8kAutomated safety check: PassAGPL-3.0
AI SDK Developmenttrypostit/trypost6762 repos~3.5kAutomated safety check: PassMIT
Pgvector Semantic Searchtimescale/pg-aiguide1.9k1 repos~3.8kAutomated safety check: PassApache-2.0
Cookbook Aimldatabricks-solutions/databricks-apps-cookbook183—~1.7kAutomated safety check: PassCustom licence
Frontmcp Extensibilityagentfront/frontmcp146—~3.2kAutomated safety check: PassApache-2.0

Similar skills

  • Codebase Management

    giancarloerra/SocratiCode

    Set up, index, and manage SocratiCode codebase indexing. An agent skill from giancarloerra/SocratiCode.

    3.3k GitHub starsUsed in 1 repo~1.8k tokens
    AI & LLM EngineeringAuto-check passed
  • AI SDK Development

    trypostit/trypost

    TRIGGER when working with ai-sdk which is Laravel official first-party AI SDK.

    676 GitHub starsUsed in 2 repos~3.5k tokens
    AI & LLM EngineeringAuto-check passed
  • Pgvector Semantic Search

    timescale/pg-aiguide

    A skill your agent uses for setting up vector similarity search with pgvector for AI/ML embeddings, RAG applications, or semantic search.

    1.9k GitHub starsUsed in 1 repo~3.8k tokens
    AI & LLM EngineeringAuto-check passed
  • Cookbook Aiml

    databricks-solutions/databricks-apps-cookbook

    Invoke ML models, run vector search, and connect to MCP servers from Databricks Apps.

    183 GitHub stars~1.7k tokensUpdated 3 days ago
    AI & LLM EngineeringAuto-check passed
  • Frontmcp Extensibility

    agentfront/frontmcp

    A skill your agent uses when extending FrontMCP beyond the core SDK by integrating external npm packages, libraries, or third-party services into providers and tools.

    146 GitHub stars~3.2k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Qianwenai Wiki

    chujianyun/skills

    千问AI平台(Qianwen AI Platform / DashScope)官方文档离线知识库,用于检索并回答模型选择、API Key、OpenAI 兼容接口、DashScope SDK、文本与多模态生成、图像/视频/语音、Realtime API、Embedding、Reranking、Function Calling、MCP、批量调用、计费、Token Plan、API/SDK/CLI…

    740 GitHub stars~717 tokensUpdated 12 days ago
    AI & LLM EngineeringAuto-check passed

More from managedcode/dotnet-skills

All 81 skills in this repo
  • Analyzer Config

    managedcode/dotnet-skills

    Use a repo-root .editorconfig to configure free .NET analyzer and style rules.

    486 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Archunitnet

    managedcode/dotnet-skills

    Use the open-source free ArchUnitNET library for architecture rules in .NET tests.

    486 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Aspire

    managedcode/dotnet-skills

    Build, upgrade, and operate Aspire 13.5.x C or TypeScript application hosts with the current CLI, AppHost, ServiceDefaults, integrations, dashboard, testing, MCP, and deployment patterns for…

    486 GitHub stars~3.6k tokensUpdated today
    Auto-check passed
  • Aspnet Core

    managedcode/dotnet-skills

    Build, debug, modernize, or review ASP.NET Core applications with correct hosting, middleware, security, configuration, logging, and deployment patterns on current .NET.

    486 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Asynkron Profiler

    managedcode/dotnet-skills

    Use the open-source free Asynkron.Profiler dotnet tool for CLI-first CPU, allocation, exception, contention, and heap profiling of .NET commands or existing trace artifacts.

    486 GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Azure Functions

    managedcode/dotnet-skills

    Build, review, or migrate Azure Functions in .NET with correct execution model, isolated worker setup, bindings, DI, and Durable Functions patterns.

    486 GitHub stars~2.6k tokensUpdated today
    Auto-check passed

Questions about Microsoft Extensions AI

What does Microsoft Extensions AI do?

Build provider-agnostic .NET AI integrations with Microsoft.Extensions.AI, IChatClient, embeddings, middleware, structured output, vector search, and evaluation. Microsoft Extensions AI is an agent skill from managedcode/dotnet-skills.AI, IChatClient, embeddings, middleware, structured output, vector search, and evaluation.

When should I use Microsoft Extensions AI?

Microsoft Extensions AI fits situations like: reviewing .NET code that uses Microsoft.Extensions.AI; microsoft.Extensions.AI.Abstractions; IEmbeddingGenerator; : unrelated stacks.

How do I install Microsoft Extensions AI in Claude Code?

Run `npx skills add managedcode/dotnet-skills --skill microsoft-extensions-ai -a claude-code`. Or copy the skill folder (catalog/Libraries/Microsoft-Extensions-AI/skills/microsoft-extensions-ai in managedcode/dotnet-skills) into .claude/skills/microsoft-extensions-ai in your project. Claude Code loads it when a task matches its description.

How do I install Microsoft Extensions AI in Codex?

Run `npx skills add managedcode/dotnet-skills --skill microsoft-extensions-ai -a codex`. Or copy the skill folder (catalog/Libraries/Microsoft-Extensions-AI/skills/microsoft-extensions-ai in managedcode/dotnet-skills) into .agents/skills/microsoft-extensions-ai in your project. Codex loads it when a task matches its description.

Can I use Microsoft Extensions AI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add managedcode/dotnet-skills --skill microsoft-extensions-ai -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/microsoft-extensions-ai, .gemini/skills/microsoft-extensions-ai, .github/skills/microsoft-extensions-ai and .opencode/skills/microsoft-extensions-ai in your project.

What does Microsoft Extensions AI need to run?

SKILL.md names no scripts, command-line tools or credentials: Microsoft Extensions AI is instructions for the agent only. Compatibility (from SKILL.md): Requires `Microsoft.Extensions.AI` or a .NET AI application that needs model, embedding, tool-calling, or evaluation composition without full agent orchestration..

Does Microsoft Extensions AI access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Microsoft Extensions AI safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Microsoft Extensions AI use?

Microsoft Extensions AI is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Microsoft Extensions AI use?

About 3.4k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 113k tokens, read only when the agent opens those files.

What are the alternatives to Microsoft Extensions AI?

Skills that share tags, products or a category with Microsoft Extensions AI: Codebase Management (giancarloerra/SocratiCode, 3.3k stars), AI SDK Development (trypostit/trypost, 676 stars), Pgvector Semantic Search (timescale/pg-aiguide, 1.9k stars) and Cookbook Aiml (databricks-solutions/databricks-apps-cookbook, 183 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Microsoft Extensions AI?

managedcode (a GitHub organization) maintains it in managedcode/dotnet-skills, which has 486 GitHub stars. The repository holds 81 skills in this directory. The repository was last updated on October 7, 2026.

Source: managedcode/dotnet-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.