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/dotnet-skills/microsoft-agent-frameworknpx skills add managedcode/dotnet-skills --skill microsoft-agent-frameworkgit clone --depth 1 https://github.com/managedcode/dotnet-skillsWhat 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.00138 | $0.03377 |
| Opus 5 | $0.00069 | $0.01688 |
| Sonnet 5 | $0.00028 | $0.00675 |
| Haiku 4.5 | $0.00014 | $0.00338 |
Grade A, and why
microsoft-agent-framework 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 yesterday.
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 — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Microsoft Agent Framework
Trigger On
- building or reviewing
.NETcode that usesMicrosoft.Agents.*,Microsoft.Extensions.AI,AIAgent,HarnessAgent,AgentSession, or Agent Framework hosting packages - choosing between
ChatClientAgent, Responses agents, hosted agents, custom agents, Anthropic agents, workflows, or durable agents - adding the batteries-included
Microsoft.Agents.AI.Harnesssurface for planning, todos, compaction, file memory/access, tool approvals, skills, shell execution, or background agents - authoring preview-era
Microsoft.Agents.AI.Workflows.Declarative*packages or wrapping a workflow withworkflow.AsAIAgent() - adding tools, MCP, A2A, OpenAI-compatible hosting, AG-UI, DevUI, background responses, or OpenTelemetry
- migrating from Semantic Kernel agent APIs or aligning AutoGen-style multi-agent patterns to Agent Framework
- using Anthropic Claude models (haiku, sonnet, opus) via
AnthropicClientor through Azure Foundry withAnthropicFoundryClient
Workflow
- Decide whether the problem should stay deterministic. If plain code or a typed workflow without LLM autonomy is enough, do that instead of adding an agent.
- Choose the execution shape first: single
AIAgent, batteries-includedHarnessAgent, explicit programmaticWorkflow, workflow-as-agent wrapper, declarative workflow when YAML portability is explicitly required, Azure Functions durable agent, ASP.NET Core hosted agent, AG-UI remote UI, or DevUI local debugging. - Choose the agent type and provider intentionally. Prefer the simplest agent that satisfies the threading, tooling, and hosting requirements.
- Keep agents stateless and keep conversation or long-lived state in
AgentSession. Treat the session as opaque provider-owned state, serialize it through the owning agent, and never accept a raw service conversation ID as an end-user authorization boundary. - Add only the tools and middleware that the scenario needs. Narrow the tool surface, require approval for side effects, and treat MCP, A2A, and third-party services as trust boundaries.
- For workflows, model executors, edges, typed
RequestPortboundaries, checkpoints, shared state, and human-in-the-loop explicitly rather than hiding control flow in prompts. - Prefer Responses-based protocols for new remote/OpenAI-compatible integrations unless you specifically need Chat Completions compatibility.
- Use durable agents only when you truly need Azure Functions serverless hosting, durable thread storage, or deterministic long-running orchestrations.
- Verify preview status, package maturity, docs recency, and provider-specific limitations before locking a production architecture.
What ships with it
60 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.
- manifest.json 86 B
- references/devui.md 2.0 KB
- references/examples.md 5.7 KB
- references/harness.md 3.8 KB
- references/hosting.md 7.4 KB
- references/mcp.md 4.0 KB
- references/middleware.md 6.3 KB
- references/migration.md 4.1 KB
- references/official-docs-index.md 28 KB
- references/official-docs/agents/background-agents.md 9.1 KB
- references/official-docs/agents/background-responses.md 12 KB
- references/official-docs/agents/code_act.md 7.5 KB
- references/official-docs/agents/declarative.md 7.3 KB
- references/official-docs/agents/evaluation.md 22 KB
- references/official-docs/agents/index.md 2.9 KB
- references/official-docs/agents/looping.md 10 KB
- references/official-docs/agents/multimodal.md 7.1 KB
- references/official-docs/agents/observability.md 31 KB
- references/official-docs/agents/planning-and-todos.md 10 KB
- references/official-docs/agents/rag.md 15 KB
- references/official-docs/agents/security.md 27 KB
- references/official-docs/agents/skills.md 89 KB
- references/official-docs/agents/structured-outputs.md 18 KB
- references/official-docs/agents/tools/code-interpreter.md 5.4 KB
- references/official-docs/agents/tools/controlling-tool-availability.md 11 KB
- references/official-docs/agents/tools/file-search.md 5.3 KB
- references/official-docs/agents/tools/function-tools.md 16 KB
- references/official-docs/agents/tools/hosted-mcp-tools.md 15 KB
- references/official-docs/agents/tools/index.md 20 KB
- references/official-docs/agents/tools/local-mcp-tools.md 19 KB
- references/official-docs/agents/tools/tool-approval.md 21 KB
- references/official-docs/agents/tools/web-search.md 7.0 KB
- references/official-docs/concepts/agents/agent-pipeline.md 16 KB
- references/official-docs/concepts/agents/conversations/chat-history-memory-provider.md 10 KB
- references/official-docs/concepts/agents/conversations/compaction.md 30 KB
- references/official-docs/concepts/agents/conversations/context-providers.md 22 KB
- references/official-docs/concepts/agents/conversations/index.md 4.1 KB
- references/official-docs/concepts/agents/conversations/session.md 8.7 KB
- references/official-docs/concepts/agents/conversations/storage.md 23 KB
- references/official-docs/concepts/agents/custom-agents.md 18 KB
- references/official-docs/concepts/agents/index.md 4.4 KB
- references/official-docs/concepts/agents/middleware/agent-vs-run-scope.md 28 KB
- references/official-docs/concepts/agents/middleware/chat-middleware.md 22 KB
- references/official-docs/concepts/agents/middleware/defining-middleware.md 27 KB
- references/official-docs/concepts/agents/middleware/exception-handling.md 9.9 KB
- references/official-docs/concepts/agents/middleware/index.md 36 KB
- references/official-docs/concepts/agents/middleware/result-overrides.md 20 KB
- references/official-docs/concepts/agents/middleware/runtime-context.md 17 KB
- references/official-docs/concepts/agents/middleware/shared-state.md 8.9 KB
- references/official-docs/concepts/agents/middleware/termination.md 19 KB
- references/official-docs/concepts/agents/running-agents.md 17 KB
- references/official-docs/concepts/agents/safety.md 7.9 KB
- references/official-docs/concepts/harness.md 11 KB
- references/official-docs/concepts/index.md 1.1 KB
- references/official-docs/concepts/workflows/advanced/agent-executor.md 29 KB
- references/official-docs/concepts/workflows/advanced/execution-modes.md 10 KB
- references/official-docs/concepts/workflows/advanced/resettable-executors.md 6.0 KB
- references/official-docs/concepts/workflows/advanced/sub-workflows.md 38 KB
- references/official-docs/concepts/workflows/builder-and-execution.md 9.3 KB
- references/official-docs/concepts/workflows/edges.md 86 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.
- yesterday First seen · 146 lines · 138 tokens per session scan A 4159b1270021
microsoft-agent-framework is a skill published in the GitHub repository managedcode/dotnet-skills (477 stars, last pushed 2d ago), licensed MIT. It adds 138 tokens to every session and 3,377 once invoked, about $0.0007 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
winui-ui-testing
Automated UI testing for Windows desktop apps — generate a batch test script with the winapp ui UI Automation harness, run all tests in one pass, read results. Covers element assertions, interactions, value checking (TextBox, ComboBox, ToggleSwitch), keyboard shortcuts and typing (send-keys), hover, drag-and-drop…
pr-review
Multi-dimensional review of a PR or feature branch in microsoft/win-dev-skills. Activate on "review my PR / changes / branch", "vet before pushing", "PR review", "is this ready to merge". Fans out parallel sub-agents over skill content, the skill-vs-tool boundary (solution hierarchy), tool correctness…
winui-design
Use when designing, reviewing, or fixing WinUI 3: sample and control discovery with winapp find-ui, layout planning, control choice, Fluent Design alignment, Light/Dark/High Contrast theming, typography, spacing, brushes, accessibility, and XAML data-binding design. Load before authoring new XAML, reviewing UI PRs…
winui-dev-workflow
Build and run workflow for WinUI 3 apps with WinApp CLI 0.6+ — project creation with winapp new, project-mode winapp run, BuildAndRun.ps1 analyzer integration, crash diagnosis, and prerequisites. Use when creating, building, running, or fixing build errors in a WinUI 3 project.
winui-packaging
MSIX packaging, code signing, and distribution for WinUI 3 apps — build for release, certificate generation (winapp cert generate), certificate trust, code signing (winapp sign), self-contained deployment, CI/CD with GitHub Actions, and Microsoft Store submission. Use when preparing for release, creating MSIX…
winui-session-report
Analyze the current or a recent agent session (GitHub Copilot CLI or Claude Code) and generate a diagnostic report. Use only when the user explicitly asks for session feedback, agent debugging, or a review of what happened during a build session. Do not inspect session data automatically.