teams-sdk-to-agents-sdk-dotnet-migration

teams-sdk-to-agents-sdk-dotnet-migration is a skill for Claude Code from microsoft/Agents. It costs 72 tokens per session (6,353 once invoked), scanned A, original, MIT.

A migration guide moves a bot built with Microsoft's Teams SDK for .NET to the Microsoft 365 Agents SDK. It explains how the older event handlers map to the newer agent application and request-handling model.

In plain words
What is it for?
Use it when a .NET project depends on the Teams SDK packages and needs its bot code moved to the Microsoft 365 Agents SDK.
Why use it?
It provides a defined path for updating the bot without applying the wrong migration guide, such as the one for Bot Framework projects.

Skill for Claude Code ✓ vendor

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

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

Good fit Use it when a .NET project depends on the Teams SDK packages and needs its bot code moved to the Microsoft 365 Agents SDK.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/microsoft/agents/teams-sdk-to-agents-sdk-dotnet-migration
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,086 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.

Any agent
npx skills add microsoft/Agents --skill teams-sdk-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 6 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 teams-sdk-to-agents-sdk-dotnet-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/agents/teams-sdk-to-agents-sdk-dotnet-migration/github.svg)](https://agentmods.dev/skills/microsoft/agents/teams-sdk-to-agents-sdk-dotnet-migration)
Your own site
<a href="https://agentmods.dev/skills/microsoft/agents/teams-sdk-to-agents-sdk-dotnet-migration"><img src="https://agentmods.dev/badge/skills/microsoft/agents/teams-sdk-to-agents-sdk-dotnet-migration/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.

agentmods 80×15 button for teams-sdk-to-agents-sdk-dotnet-migration

Your own site · 80×15
<a href="https://agentmods.dev/skills/microsoft/agents/teams-sdk-to-agents-sdk-dotnet-migration"><img src="https://agentmods.dev/badge/skills/microsoft/agents/teams-sdk-to-agents-sdk-dotnet-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,353 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00072 $0.06353
Opus 5.5 $0.00029 $0.02541
Sonnet 5.5 $0.00014 $0.01271
Haiku 4.5 $0.00007 $0.00635

Measured 21d ago against content hash 6acc8ff93479, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

teams-sdk-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 21d 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/teams-sdk-to-agents-sdk-dotnet-migration/SKILL.md · 502 lines

How it starts

The opening of the file, as written. The whole thing — 502 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Teams SDK (teams.net) to Agents SDK Migration (.NET)

Overview

When an automation caller supplies validation tools instead of shell access, use those tools to perform the build, tests, and startup checks required below. A current passing tool result is equivalent evidence; do not request unavailable shell access or claim validation from source inspection alone. Follow the caller's read-only role when reviewing.

Migrates a Teams SDK (teams.net, https://github.com/microsoft/teams.net) bot to a Microsoft 365 Agents SDK AgentApplication. The Teams SDK registers fluent event delegates (teamsApp.OnMessage(async context => ...)) on an IContext<T>; the Agents SDK routes activities to handler methods on an AgentApplication subclass using ITurnContext.

This is NOT the Bot Framework migration. If the project depends on Microsoft.Bot.Builder*, use bf-to-agents-sdk-dotnet-migration instead. Trigger this skill only for teams.net projects (Microsoft.Teams.Plugins.AspNetCore, Microsoft.Teams.Apps, Microsoft.Teams.Api).

Agents SDK repository: https://github.com/microsoft/agents-for-net Teams SDK repository: https://github.com/microsoft/teams.net


Core Rules

  • Preserve behavior. Keep the same commands, text matching, and responses except for user-facing references to the migrated runtime, which should say "agent" instead of "bot". Make other response changes only when required to run on the Agents SDK.
  • Describe the migrated runtime as an agent in README text, catalog descriptions, and user-facing messages. Keep platform terms such as Azure Bot, bot ID, and manifest bots[], and preserve source-derived paths and identifiers unless the caller requests a rename.
  • After source migration is stable, use the standalone teams-app-manifest skill to generate, complete, or audit the Teams app manifest from source evidence and explicit product intent. Do not embed manifest feature rules in this migration skill.
  • Use stable Agents SDK packages. A caller's minimum Agents SDK version is a floor, not the version to copy into the project. In automated sample sync, use the selectedAgentsSdkVersion in the frozen sync context. Respect a customer's explicitly selected release line. Otherwise, read the Agents SDK release history JSON (follow later pages when needed) and select the newest stable release within the permitted major, then confirm a common major.minor release line for Microsoft.Agents.Hosting.AspNetCore, Microsoft.Agents.Authentication.Msal, and Microsoft.Agents.Extensions.MSTeams from the Hosting, Authentication, and MSTeams JSON version feeds. Use the newest compatible stable line available for all three, without assuming their patch numbers match. Do not select a prerelease or a new major version without explicit policy.
  • If the project defines the AgentApplication during DI (typically in Program.cs), ask the customer whether to keep it inline or move it to an AgentApplication subclass with Teams route attributes. In the automated Teams sample sync, do not ask a user. Apply an applicable migration policy or return needs-policy with evidence and a recommended policy.
  • If creating a subclass, always use [TeamsExtension], mark it partial, use Teams route attributes, and take ITeamsTurnContext in route handlers.
  • After restoring packages, verify route attributes, handler delegate signatures, payload models, and response types against the installed configured-version XML documentation or current Agents SDK source. Do not infer an API shape from a similarly named Teams SDK API.
  • Preserve the original registration and if/else precedence. Use explicit route rank values whenever multiple text or invoke routes can match the same activity.
  • Prefer SendActivityAsync("text", cancellationToken: ct) for plain text. When a reply needs entities, attachments, or other activity fields, build an activity with Activity.CreateMessageActivity() and fluent methods such as .WithText(...), then set the extra fields. Keep a factory when it adds value for a structured response.
  • Use the agent's logger for diagnostics instead of Console.WriteLine; pass exceptions to structured logging rather than logging only their messages.

Read the full file on GitHub · 502 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. 21d ago First seen · 502 lines · 72 tokens per session scan A 6acc8ff93479

Subscribe to this mod's changes

teams-sdk-to-agents-sdk-dotnet-migration is a skill published in the GitHub repository microsoft/Agents (1,086 stars, last pushed today), licensed MIT. It adds 72 tokens to every session and 6,353 once invoked, about $0.0003 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-26.

Related

Other skills, from other repositories

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