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.06353 |
| Opus 5.5 | $0.00029 | $0.02541 |
| Sonnet 5.5 | $0.00014 | $0.01271 |
| Haiku 4.5 | $0.00007 | $0.00635 |
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.
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-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 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.
- 21d 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,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.
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…
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-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-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…