Microsoft/m365-agents-dotnet — Agent Skills | officialskills.sh
Back to skills

m365-agents-dotnet

officialai-tools

Microsoft 365 Agents SDK for .

Setup & Installation

npx skills add https://github.com/microsoft/skills --skill m365-agents-dotnet
or paste the link and ask your coding assistant to install it
https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-dotnet/skills/m365-agents-dotnet
View on GitHub

What This Skill Does

Microsoft 365 Agents SDK for .NET provides ASP.NET Core hosting, AgentApplication routing, and MSAL-based authentication for building agents that run across Teams, Microsoft 365, and Copilot Studio. It handles the plumbing for activity routing, token validation, and multi-channel message dispatch.

Instead of manually wiring Bot Framework adapters, token validation middleware, and activity routing, the SDK bundles all of that into a few extension methods and a base class.

When to use it

  • Building a Teams bot that responds to @mentions with routed message handlers
  • Connecting a .NET agent to Copilot Studio via direct-to-engine CopilotClient
  • Hosting a multichannel agent on ASP.NET Core with MSAL client credential auth
  • Routing conversation updates and error handling through a single AgentApplication subclass
  • Running a local development agent on port 3978 with auth disabled for testing