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 skills add microsoft/Agents --skill teams-sdk-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/teams-sdk-to-agents-sdk-dotnet-migration)<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.
<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>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.00072 | $0.06592 |
| Opus 5.5 | $0.00029 | $0.02637 |
| Sonnet 5.5 | $0.00014 | $0.01318 |
| Haiku 4.5 | $0.00007 | $0.00659 |
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 25d 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 — 505 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-manifestskill 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
selectedAgentsSdkVersionin 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 forMicrosoft.Agents.Hosting.AspNetCore,Microsoft.Agents.Authentication.Msal, andMicrosoft.Agents.Extensions.MSTeamsfrom 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
AgentApplicationduring DI (typically inProgram.cs), ask the customer whether to keep it inline or move it to anAgentApplicationsubclass with Teams route attributes. In the automated Teams sample sync, do not ask a user. Apply an applicable migration policy or returnneeds-policywith evidence and a recommended policy. - If creating a subclass, always use
[TeamsExtension], mark itpartial, use Teams route attributes, and takeITeamsTurnContextin 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/elseprecedence. Use explicit routerankvalues 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 withActivity.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.
What ships with it
2 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.
- 25d ago Changed · +3 lines 9adf59c49cbd
- 2mo ago First seen · 502 lines · 72 tokens per session scan A 6acc8ff93479
teams-sdk-to-agents-sdk-dotnet-migration is a skill published in the GitHub repository microsoft/Agents (1,123 stars, last pushed 5d ago), licensed MIT. It adds 72 tokens to every session and 6,592 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.
teams-sdk-to-agents-sdk-dotnet-migration compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| teams-sdk-to-agents-sdk-dotnet-migrationmicrosoft/Agents | Skill | 1.1k | 5d ago | MIT | A | 72 | Claude Code |
| azure-eventgrid-dotnetmicrosoft/skills | Skill | 3.3k | today | MIT | A | 80 | Claude Code |
| azure-maps-search-dotnetmicrosoft/skills | Skill | 3.3k | today | MIT | A | 91 | Claude Code |
| azure-resource-manager-postgresql-dotnetmicrosoft/skills | Skill | 3.3k | today | MIT | A | 97 | Claude Code |
| azure-ai-openai-dotnetmicrosoft/skills | Skill | 3.3k | today | MIT | A | 92 | Claude Code |
| azure-mgmt-apicenter-dotnetmicrosoft/skills | Skill | 3.3k | today | MIT | A | 97 | Claude Code |
| azure-security-keyvault-keys-dotnetmicrosoft/skills | Skill | 3.3k | today | MIT | A | 90 | Claude Code |