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 skills add managedcode/dotnet-skills --skill microsoft-extensionsgit clone --depth 1 https://github.com/managedcode/dotnet-skillsWrote 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/dotnet-skills/microsoft-extensions)<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/microsoft-extensions"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/microsoft-extensions/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/dotnet-skills/microsoft-extensions"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/microsoft-extensions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00115 | $0.00729 |
| Opus 5.5 | $0.00046 | $0.00292 |
| Sonnet 5.5 | $0.00023 | $0.00146 |
| Haiku 4.5 | $0.00012 | $0.00073 |
Grade A, and why
microsoft-extensions 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 2mo 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 — 49 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Microsoft.Extensions for .NET
Trigger On
- wiring dependency injection, configuration, logging, or options
- introducing Generic Host patterns into non-web .NET apps
- cleaning up service registration, typed HTTP clients, or shared infrastructure code
Workflow
- Prefer the Generic Host for apps that need configuration, DI, logging, hosted services, or coordinated startup.
- Keep service registration predictable: composition at the edge, concrete implementations hidden behind interfaces only where that abstraction buys flexibility.
- Use options binding for structured configuration and validate configuration at startup when bad settings would fail later at runtime.
- Prefer
IHttpClientFactoryand typed or named clients for outbound HTTP instead of ad-hoc singleton or per-callHttpClientusage. - Use logging categories and config-driven log levels rather than scattered ad-hoc logging behavior.
- For Kubernetes-hosted services, prefer the stable
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetespackage from the 10.7+ line when CPU/memory request and limit metrics should come from pod resource quotas. - Avoid building mini-frameworks over Microsoft.Extensions unless the repo genuinely needs reusable composition primitives.
Current Upstream Notes
dotnet/extensionsv10.9.0adds experimental AI routing and failover clients and includes HTTP diagnostics/source-logging fixes. Generic Host, dependency injection, configuration, logging, options, andIHttpClientFactorypatterns remain unchanged; route AI-specific architecture tomicrosoft-extensions-ai.- The MCP server project template moved out of
dotnet/extensionsand into the ASP.NET Core/.NET SDK distribution. Update scaffolding automation to use the SDK-provided template instead of pinning the removed extensions template package. - If repository automation creates AI templates from the prior
v10.8.4change, pass--provider azureopenai,--provider ollama, or--provider openaiexplicitly and validate the selected provider's secrets and local-development path. - Keep Microsoft.Extensions package versions aligned within the repo's selected servicing line, then rerun host startup and options-validation tests after upgrading.
What ships with it
3 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.
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.
- 2mo ago First seen · 49 lines · 115 tokens per session scan A fcd0ebfc6e2e
microsoft-extensions is a skill published in the GitHub repository managedcode/dotnet-skills (527 stars, last pushed 16d ago), licensed MIT. It adds 115 tokens to every session and 729 once invoked, about $0.0005 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-09-03.
microsoft-extensions compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| microsoft-extensionsmanagedcode/dotnet-skills | Skill | 527 | 16d ago | MIT | A | 115 | Claude Code, Codex |
| clean-architecture-dotnetSebastienDegodez/copilot-instructions | Skill | 199 | 23d ago | Apache-2.0 | A | 50 | Claude Code, Codex |
| generate-microcks-openapi-samplesSebastienDegodez/copilot-instructions | Skill | 199 | 23d ago | Apache-2.0 | A | 37 | Claude Code, Codex |
| nav-authnavikt/copilot | Skill | 65 | yesterday | MIT | A | 28 | Claude Code, Codex |
| kafkanavikt/copilot | Skill | 65 | yesterday | MIT | A | 26 | Claude Code, Codex |
| spring-boot-scaffoldnavikt/copilot | Skill | 65 | yesterday | MIT | A | 32 | Claude Code, Codex |
| ktor-scaffoldnavikt/copilot | Skill | 65 | yesterday | MIT | A | 30 | Claude Code, Codex |