Microsoft 365 Agents SDK is a software toolkit for building AI agents that can communicate through channels such as Microsoft 365 Copilot, Teams, web apps, and custom applications. Developers use it to add state, storage, event handling, and channel-specific behavior while choosing their own AI services and models. The catalogue entries are skills and plugins for working with this SDK.
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/microsoft/agents/bf-to-agents-sdk-dotnet-migrationnpx skills add microsoft/Agents --skill bf-to-agents-sdk-dotnet-migrationgit clone --depth 1 https://github.com/microsoft/AgentsWrote 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/microsoft/agents/bf-to-agents-sdk-dotnet-migration)<a href="https://agentmods.dev/skills/microsoft/agents/bf-to-agents-sdk-dotnet-migration"><img src="https://agentmods.dev/badge/skills/microsoft/agents/bf-to-agents-sdk-dotnet-migration.svg" alt="Measured on agentmods" 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.00056 | $0.04125 |
| Opus 5 | $0.00028 | $0.02063 |
| Sonnet 5 | $0.00011 | $0.00825 |
| Haiku 4.5 | $0.00006 | $0.00413 |
Grade A, and why
bf-to-agents-sdk-dotnet-migration 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 6d 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 — 443 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Bot Framework to Agents SDK Migration (.NET)
Overview
Migrates a Bot Framework SDK bot to Microsoft 365 Agents SDK using the ActivityHandler/TeamsActivityHandler compat layer — minimal code changes, original class names preserved.
This skill stops at the compat layer. After completing this migration, ask the user whether to also convert to AgentApplication (see final step).
Agents DotNet SDK repository: https://github.com/microsoft/agents-for-net Bot Framework DotNet SDK repository: https://github.com/microsoft/botbuilder-dotnet
Core Rules
- Retain the original bot class name. Do not rename or create a new class — renaming breaks git history.
- Only change what is required for a clean migration. Do not refactor, restructure, or improve beyond what is needed to compile and run on Agents SDK.
Package Replacements
Version: Always use the latest stable (non-beta) version of Agents SDK packages by default.
| Remove (Bot Framework) | Add (Agents SDK) |
|---|---|
Microsoft.Bot.Builder.Integration.AspNet.Core |
Microsoft.Agents.Hosting.AspNetCore |
Microsoft.Bot.Builder |
Microsoft.Agents.Builder |
Microsoft.Bot.Builder.Teams |
Microsoft.Agents.Extensions.Teams |
Microsoft.Bot.Builder.Dialogs |
Microsoft.Agents.Builder.Dialogs |
Microsoft.Bot.Connector |
Microsoft.Agents.Connector |
Microsoft.Bot.Connector.Authentication / MSAL auth packages |
Microsoft.Agents.Authentication.Msal |
Deprecated Packages — No Agents SDK Equivalent
The following Bot Framework packages have no equivalent in the Agents SDK and are not supported. There is no recommended replacement. Remove them from the .csproj, but do not attempt to migrate the code that uses them — it will cause build errors that cannot be resolved within the Agents SDK migration. Flag this to the customer.
| Deprecated Package |
|---|
Microsoft.Bot.Builder.AI.Luis |
Microsoft.Bot.Builder.AI.Orchestrator |
Microsoft.Bot.Builder.AI.QnA |
Microsoft.Bot.Builder.Azure.Queues |
Microsoft.Bot.Builder.Dialogs.Adaptive |
Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime |
Microsoft.Bot.Builder.Dialogs.Adaptive.Testing |
Microsoft.Bot.Builder.Dialogs.Debugging |
Microsoft.Bot.Builder.LanguageGeneration |
Microsoft.Bot.Builder.TemplateManager |
Microsoft.Bot.Configuration |
Microsoft.Bot.Connector.Streaming |
Microsoft.Bot.Streaming |
Microsoft.Bot.Builder.Parsers.LU |
AdaptiveExpressions |
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.
- 6d ago First seen · 443 lines · 56 tokens per session scan A 6ce2ddc16da6
bf-to-agents-sdk-dotnet-migration is a skill published in the GitHub repository microsoft/Agents (1,056 stars, last pushed yesterday), licensed MIT. It adds 56 tokens to every session and 4,125 once invoked, about $0.0003 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
azure-eventgrid-dotnet
Azure Event Grid SDK for .NET. Client library for publishing and consuming events with Azure Event Grid. Use for event-driven architectures, pub/sub messaging, CloudEvents, and EventGridEvents. Triggers: "Event Grid", "EventGridPublisherClient", "CloudEvent", "EventGridEvent", "publish events .NET", "event-driven"…
azure-maps-search-dotnet
Azure Maps SDK for .NET. Location-based services including geocoding, routing, rendering, geolocation, and weather. Use for address search, directions, map tiles, IP geolocation, and weather data. Triggers: "Azure Maps", "MapsSearchClient", "MapsRoutingClient", "MapsRenderingClient", "geocoding .NET", "route…
azure-resource-manager-postgresql-dotnet
Azure PostgreSQL Flexible Server SDK for .NET. Database management for PostgreSQL Flexible Server deployments. Use for creating servers, databases, firewall rules, configurations, backups, and high availability. Triggers: "PostgreSQL", "PostgreSqlFlexibleServer", "PostgreSQL Flexible Server", "Azure Database for…
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. Triggers: "Azure OpenAI", "AzureOpenAIClient", "ChatClient", "chat completions .NET", "GPT-4", "embeddings", "DALL-E", "Whisper", "OpenAI .NET".
azure-mgmt-apicenter-dotnet
Azure API Center SDK for .NET. Centralized API inventory management with governance, versioning, and discovery. Use for creating API services, workspaces, APIs, versions, definitions, environments, deployments, and metadata schemas. Triggers: "API Center", "ApiCenterService", "ApiCenterWorkspace", "ApiCenterApi", "API…
azure-security-keyvault-keys-dotnet
Azure Key Vault Keys SDK for .NET. Client library for managing cryptographic keys in Azure Key Vault and Managed HSM. Use for key creation, rotation, encryption, decryption, signing, and verification. Triggers: "Key Vault keys", "KeyClient", "CryptographyClient", "RSA key", "EC key", "encrypt decrypt .NET", "key…