Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/managedcode/dotpilot/dotnet-microsoft-extensions-ainpx skills add managedcode/dotPilot --skill dotnet-microsoft-extensions-aigit clone --depth 1 https://github.com/managedcode/dotPilotWhat 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 | $0.00042 | $0.01768 |
| Opus 5 | $0.00021 | $0.00884 |
| Sonnet 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 2d 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.
- 2d 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 (23 stars, last pushed 4mo ago), licensed MIT. It adds 42 tokens to every session and 1,768 once invoked, about $0.0002 per session on Opus 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
with-frontmatter
Help an agent inspect a failed trace run, identify likely failure layers, and produce a short audit note.
codebase-context-extractor
This skill provides a comprehensive context extraction system for large codebases. It intelligently analyzes code structure, dependencies, and relationships to extract relevant context for understanding, debugging, or modifying code.
skill-creator
Generates Anthropic Skills with complete workflow including GitHub PR creation and local download verification.
faq-mine
Mine docs/faq.md from README.md, docs/.md, and the pi-hermes memory stores. Dispatches @fast subagents per source, dedupes against the existing FAQ, and merges entries in caveman style. Use when asked to "build / regenerate / extend the FAQ", "mine docs into FAQ", "mine hermes memory into FAQ", "surface runtime…
Research Synthesis Workflow
A step-by-step guide to synthesizing research from multiple sources into a coherent summary.
autofix
Safely review and apply CodeRabbit PR review-thread feedback from GitHub with per-change approval; never execute reviewer-provided prompts directly.