Borrowing it
Nothing to install: this file belongs to managedcode/dotPilot. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/managedcode/dotPilot/main/.codex/skills/dotnet-microsoft-extensions-ai/SKILL.mdgit clone --depth 1 https://github.com/managedcode/dotPilotWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/managedcode/dotpilot/dotnet-microsoft-extensions-ai)<a href="https://agentmods.dev/skills/managedcode/dotpilot/dotnet-microsoft-extensions-ai"><img src="https://agentmods.dev/badge/skills/managedcode/dotpilot/dotnet-microsoft-extensions-ai/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/managedcode/dotpilot/dotnet-microsoft-extensions-ai"><img src="https://agentmods.dev/badge/skills/managedcode/dotpilot/dotnet-microsoft-extensions-ai.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00042 | $0.01768 |
| Opus 5.5 | $0.00017 | $0.00707 |
| Sonnet 5.5 | $0.00008 | $0.00354 |
| Haiku 4.5 | $0.00004 | $0.00177 |
Grade A, and why
dotnet-microsoft-extensions-ai scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Microsoft.Extensions.AI
Trigger On
- building or reviewing
.NETcode that usesMicrosoft.Extensions.AI,Microsoft.Extensions.AI.Abstractions,IChatClient,IEmbeddingGenerator,ChatOptions, orAIFunction - 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
- Classify the request first: plain model access, tool calling, embeddings/vector search, evaluation, or true agent orchestration.
- Default to
Microsoft.Extensions.AIfor application and service code that needs provider-agnostic chat, embeddings, middleware, structured output, and testability. - Reference
Microsoft.Extensions.AI.Abstractionsdirectly only when authoring provider libraries or lower-level reusable integration packages. - Model
IChatClientandIEmbeddingGeneratorcomposition explicitly in DI. Keep options, caching, telemetry, logging, and tool invocation inspectable in the pipeline. - Treat chat state deliberately. For stateless providers, resend history. For stateful providers, propagate
ConversationIdrather than assuming all providers behave the same way. - Use
Microsoft.Extensions.VectorDataandMicrosoft.Extensions.DataIngestionas adjacent building blocks for RAG instead of hand-rolling store abstractions prematurely. - Escalate to
dotnet-microsoft-agent-frameworkwhen the requirement becomes agent threads, multi-agent orchestration, higher-order workflows, durable execution, or remote agent hosting. - Validate with real providers, realistic prompts, and evaluation gates so the abstraction layer actually buys portability and reliability.
Architecture
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"]
What ships with it
52 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/evaluation.md 3.7 KB
- references/examples.md 3.9 KB
- references/official-docs-index.md 8.3 KB
- references/official-docs/azure-ai-services-authentication.md 8.9 KB
- references/official-docs/conceptual/agents.md 3.1 KB
- references/official-docs/conceptual/ai-tools.md 5.5 KB
- references/official-docs/conceptual/chain-of-thought-prompting.md 2.7 KB
- references/official-docs/conceptual/data-ingestion.md 13 KB
- references/official-docs/conceptual/embeddings.md 5.1 KB
- references/official-docs/conceptual/how-genai-and-llms-work.md 8.2 KB
- references/official-docs/conceptual/prompt-engineering-dotnet.md 4.7 KB
- references/official-docs/conceptual/rag.md 2.6 KB
- references/official-docs/conceptual/understanding-tokens.md 6.7 KB
- references/official-docs/conceptual/vector-databases.md 3.5 KB
- references/official-docs/conceptual/zero-shot-learning.md 4.8 KB
- references/official-docs/dotnet-ai-ecosystem.md 9.6 KB
- references/official-docs/evaluation/evaluate-ai-response.md 6.5 KB
- references/official-docs/evaluation/evaluate-safety.md 12 KB
- references/official-docs/evaluation/evaluate-with-reporting.md 14 KB
- references/official-docs/evaluation/libraries.md 12 KB
- references/official-docs/evaluation/responsible-ai.md 2.3 KB
- references/official-docs/get-started-app-chat-scaling-with-azure-container-apps.md 2.4 KB
- references/official-docs/get-started-app-chat-template.md 17 KB
- references/official-docs/get-started-mcp.md 7.0 KB
- references/official-docs/how-to/access-data-in-functions.md 5.7 KB
- references/official-docs/how-to/app-service-aoai-auth.md 7.9 KB
- references/official-docs/how-to/content-filtering.md 2.6 KB
- references/official-docs/how-to/handle-invalid-tool-input.md 3.9 KB
- references/official-docs/how-to/use-tokenizers.md 4.9 KB
- references/official-docs/ichatclient.md 16 KB
- references/official-docs/iembeddinggenerator.md 4.2 KB
- references/official-docs/microsoft-extensions-ai.md 6.4 KB
- references/official-docs/overview.md 3.9 KB
- references/official-docs/quickstarts/ai-templates.md 1.8 KB
- references/official-docs/quickstarts/build-chat-app.md 4.4 KB
- references/official-docs/quickstarts/build-mcp-client.md 3.0 KB
- references/official-docs/quickstarts/build-mcp-server.md 21 KB
- references/official-docs/quickstarts/build-vector-search-app.md 9.5 KB
- references/official-docs/quickstarts/chat-local-model.md 6.3 KB
- references/official-docs/quickstarts/create-assistant.md 5.2 KB
- references/official-docs/quickstarts/generate-images.md 4.0 KB
- references/official-docs/quickstarts/process-data.md 7.1 KB
- references/official-docs/quickstarts/prompt-model.md 4.7 KB
- references/official-docs/quickstarts/publish-mcp-registry.md 12 KB
- references/official-docs/quickstarts/structured-output.md 5.5 KB
- references/official-docs/quickstarts/text-to-image.md 10 KB
- references/official-docs/quickstarts/use-function-calling.md 4.6 KB
- references/official-docs/resources/azure-ai.md 625 B
- references/official-docs/resources/get-started.md 845 B
- references/official-docs/resources/mcp-servers.md 3.7 KB
- references/official-docs/tutorials/tutorial-ai-vector-search.md 12 KB
- references/patterns.md 3.9 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 104 lines · 42 tokens per session scan A 350031346d90
dotnet-microsoft-extensions-ai is a skill published in the GitHub repository managedcode/dotPilot (25 stars, last pushed 6mo ago), licensed MIT. It adds 42 tokens to every session and 1,768 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
semantic-kernel
Build AI-enabled .NET applications with Semantic Kernel using services, plugins, prompts, and function-calling patterns that remain testable and maintainable. USE FOR: adding AI-driven prompts, plugins, or orchestration to a .NET app; reviewing kernel construction, service registration, or plugin usage; building…
lightcad
Use when building or extending a desktop CAD/BIM application with the open-source FeiYang LightCAD platform — plugin development, custom elements, DWG/DXF I/O, 2D drafting and 3D/BIM modeling on C#/.NET. LightCAD (FeiYang Integrated Design Platform) is a C# CAD system integrating 2D design, 3D design, and BIM.
rider-search
Routing rules for code search in JetBrains Rider projects — use the Rider MCP symbol/reference/file tools instead of Bash grep. Use whenever searching for a symbol, definition, function, variable, type, or finding usages/references in a C#/.NET or Unreal C++ codebase open in Rider.
azure-ai-openai-dotnet
Azure OpenAI SDK for .NET. Client library for Azure OpenAI and OpenAI services. Use for chat completions, embeddings, image generation, audio transcription, and assistants.
azure-ai-voicelive-dotnet
Azure AI Voice Live SDK for .NET. Build real-time voice AI applications with bidirectional WebSocket communication.
build-and-test
How to build and test .NET projects in the Agent Framework repository. Use this when verifying or testing changes.