bf-to-agents-sdk-dotnet-migration

bf-to-agents-sdk-dotnet-migration is a skill for Claude Code from microsoft/Agents. It costs 56 tokens per session (4,125 once invoked), scanned A, original, MIT.

A migration guide for moving a C# or .NET bot from Microsoft's older Bot Framework SDK to the Microsoft 365 Agents SDK. It keeps the existing bot class names and initially uses a compatibility layer to limit code changes.

In plain words
What is it for?
Use it to replace Bot Framework packages, update the project to Agents SDK packages, and get the bot compiling and running through the ActivityHandler or TeamsActivityHandler compatibility layer.
Why use it?
It removes the need to work out package replacements and migration details manually while keeping the bot's existing structure intact.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agents-for-dotnet plugin — 5 skills shipped together

About the project

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.

microsoft/Agents · 1,056 stars · on GitHub · aka.ms

Install

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.

agentmods
npx agentmods add skills/microsoft/agents/bf-to-agents-sdk-dotnet-migration
Any agent
npx skills add microsoft/Agents --skill bf-to-agents-sdk-dotnet-migration
Clone the repo
git clone --depth 1 https://github.com/microsoft/Agents

Made for: Claude Code.

Or install agents-for-dotnet, the plugin that ships this one along with the rest of its 5 skills.

Wrote 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.

agentmods badge for bf-to-agents-sdk-dotnet-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/agents/bf-to-agents-sdk-dotnet-migration.svg)](https://agentmods.dev/skills/microsoft/agents/bf-to-agents-sdk-dotnet-migration)
Your own site
<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>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,125 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 6d ago against content hash 6ce2ddc16da6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

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.

agent-plugins/agents-for-net/skills/bf-to-agents-sdk-dotnet-migration/SKILL.md · 443 lines

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

Read the full file on GitHub · 443 lines

Changes

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.

  1. 6d ago First seen · 443 lines · 56 tokens per session scan A 6ce2ddc16da6

Subscribe to this mod's changes

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.

Related

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"…

microsoft/skills · 80 tokens

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…

microsoft/skills · 91 tokens

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…

microsoft/skills · 97 tokens

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".

microsoft/skills · 92 tokens

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…

microsoft/skills · 97 tokens

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…

microsoft/skills · 90 tokens