Dev & Engineering ✓ Microsoft · Official dotnetmicrosoft-365teamsaspnet-coremsalcopilot-studioagent-routing

Microsoft 365 Agents SDK for .NET

Build ASP.NET Core agents that connect across Teams, Microsoft 365, and Copilot Studio.

FollowSkills review · FSRS-2.0
Use with care
53/ 100 5-point scale 2.7 / 5
1 2 3 4 5 6
1Trust16 / 25 · 3.2/5

The document explicitly recommends production TokenValidation, authorization, secure secret providers, and persistent storage instead of MemoryStorage. However, the examples still show ClientSecret configuration, a wildcard ServiceUrl mapping, and an error handler that deletes conversation state and sends exception.Message to the user. Least-privilege scope, confirmation, sensitive-data flow, and recovery boundaries are incomplete, so points are deducted.

2Reliability8 / 20 · 2.0/5

The installation, ASP.NET Core host, routing, authentication, and Copilot Studio client paths are internally coherent, and CancellationToken is propagated. However, the document delegates API/version verification to MCP and NuGet, provides no pinned compatibility matrix, compile evidence, abnormal-input coverage, or skill-specific key-path tests. Static evidence therefore supports only a cautious score below the static ceiling.

3Adaptability10 / 15 · 3.3/5

The audience and trigger phrases are explicit, covering .NET, Teams/M365, Copilot Studio, and ASP.NET Core scenarios. Non-fit cases, input/output boundaries, deployment prerequisites, and precise trigger conditions are under-specified; reachability of core Microsoft documentation and services for mainland-China users is also not addressed, so points are deducted.

4Convention9 / 15 · 3.0/5

The skill has a useful structure with overview, prerequisites, installation, configuration, workflows, best practices, references, MIT licensing, author metadata, and version 1.0.0. It lacks an FAQ, troubleshooting guidance, known limitations, changelog, stable SDK version matrix, and explicit maintenance/update responsibility; the repository is also marked work in progress, so points are deducted.

5Effectiveness6 / 15 · 2.0/5

The snippets are directly useful starting points for an ASP.NET Core agent host, AgentApplication routing, and a Copilot Studio client, with development and production guidance. Nevertheless, package/API correctness is not verified in-file, authentication and production persistence require project-specific rework, and no executed result or alternative comparison is supplied. Static calibration therefore limits the score.

6Verifiability4 / 10 · 2.0/5

The skill cites primary Microsoft Learn pages and GitHub samples, and the repository includes general CI/evaluation and test materials. Those materials do not demonstrate compilation or end-to-end execution of this skill's key examples, and no skill-specific acceptance suite or independent corroboration is provided, so the score remains below the static maximum.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a
Before you use it
  • Do not commit the example ClientSecret; use managed identity, Key Vault, or controlled environment variables and narrow the configuration mapping scope.
  • Verify current Microsoft.Agents package versions and APIs before production use; this review did not execute or compile the examples.
  • Avoid returning exception.Message verbatim to external users, and confirm that deleting conversation state meets recovery and audit requirements.
  • The skill does not document Chinese-language support, regional network reachability, or fallback procedures when Microsoft documentation/MCP is unavailable.
See the full review method →

What does this skill do, and when should you use it?

This skill supports .NET developers using the Microsoft 365 Agents SDK to build agents for Microsoft 365, Teams, and Copilot Studio. It covers ASP.NET Core hosting, AgentApplication routing, MSAL-based authentication, storage registration, and protected message endpoints. It also shows an interactive token-acquisition flow and CopilotClient usage for direct Copilot Studio conversations. Before implementation, it directs the coding agent to verify current APIs through microsoft-docs MCP and confirm NuGet package versions.

Provides dotnet add package commands; defines token validation, service connection, and Copilot Studio settings; registers agent options, an agent, storage, controllers, and ASP.NET authentication; maps /api/messages to IAgentHttpAdapter.ProcessAsync; demonstrates AgentApplication handlers for conversation updates, messages, and turn errors; implements an MSAL-backed DelegatingHandler; and shows how to start a Copilot Studio conversation and ask a question with CopilotClient.

  1. A .NET developer building a Teams or Microsoft 365 agent needs an ASP.NET Core host and message endpoint.
  2. An enterprise team needs AgentApplication routing with welcome, message, and centralized error handlers.
  3. A service must protect `/api/messages` with token validation and authorization using MSAL-based configuration.
  4. A .NET console application needs to connect directly to Copilot Studio with interactive authentication.

What are this skill's strengths and limitations?

Pros
  • Covers ASP.NET Core hosting, AgentApplication routing, MSAL authentication, storage registration, and Copilot Studio access.
  • Includes copyable C#, configuration, and NuGet installation examples.
  • Includes production-oriented guidance for token validation, persistent storage, secret handling, HttpClient reuse, and cancellation tokens.
Limitations
  • The examples use MemoryStorage, so production deployments require a persisted storage implementation.
  • Package versions are not pinned; the skill requires checking current NuGet versions and APIs.
  • The source provides no independent test coverage or platform validation specific to this skill.

How do you install this skill?

Install the collection with npx skills add microsoft/skills, then select m365-agents-dotnet in the wizard. For manual installation, clone https://github.com/microsoft/skills and copy .github/plugins/azure-sdk-dotnet/skills/m365-agents-dotnet/ into the target agent's skills directory. The source does not provide a separate installer for this skill.

How do you use this skill?

Give the coding agent a request such as “Build a .NET Teams agent with the Microsoft 365 Agents SDK” or “Configure AddAgentAspNetAuthentication and a Copilot Studio client.” Apply the supplied package commands, appsettings.json configuration, and ASP.NET Core or CopilotClient examples. Before coding, use microsoft-docs MCP to verify the current AddAgent, AgentApplication, and authentication APIs.

FAQ

Is this skill free?
The repository and skill are licensed under MIT. The source does not specify costs for Microsoft cloud services or runtime infrastructure.
Can it support production use?
It gives production guidance such as enabling TokenValidation, requiring authorization on `/api/messages`, using persisted storage, and keeping secrets in configuration providers. It does not document a complete deployment procedure.
Is Copilot Studio required?
No. The skill covers general Microsoft 365 and Teams agent hosting separately from its optional direct Copilot Studio client workflow.
What should be verified before implementation?
Verify the latest AddAgent, AgentApplication, and authentication APIs with microsoft-docs MCP, and confirm the versions of the Microsoft.Agents packages planned for use.

More skills from this repository

All from microsoft/agent-skills

Dev & Engineering ✓ Microsoft · Official

Microsoft 365 Agents SDK for Python

Build async, multichannel agents for Teams, Microsoft 365, and Copilot Studio.

Dev & Engineering ✓ Microsoft · Official

Microsoft 365 Agents SDK for TypeScript

Build TypeScript enterprise agents with routing, Express hosting, streaming responses, and Copilot Studio integration.

Dev & Engineering ✓ Microsoft · Official

Microsoft Docs Researcher

Ground coding agents in official Microsoft documentation for concepts, tutorials, configuration, limits, and best practices.

Dev & Engineering ✓ Microsoft · Official

Microsoft 365 Agent Evaluator

Design and run evaluation suites for Microsoft 365 Copilot declarative agents

Dev & Engineering ✓ Microsoft · Official

Azure Bot Service ARM SDK for .NET

Helps .NET developers provision Azure Bots and configure their channels through ARM.

Dev & Engineering ✓ Microsoft · Official

M365 Declarative Agent Developer

Create, edit, localize, and deploy declarative agents for Microsoft 365 Copilot and Teams.

Dev & Engineering ✓ Microsoft · Official

Azure Maps for .NET

Build .NET location features for search, routing, maps, geolocation, and weather.

Dev & Engineering ✓ Microsoft · Official

Fabric Capacity Manager for .NET

Manage Microsoft Fabric capacities programmatically through Azure Resource Manager.

Dev & Engineering ✓ Microsoft · Official

Azure Application Insights Instrumentation Guide

Practical guidance for adding Application Insights telemetry to Azure-hosted ASP.NET Core and Node.js web apps.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB ARM for .NET

Provision and manage Azure Cosmos DB resources from .NET through ARM.

Dev & Engineering ✓ Microsoft · Official

Azure Playwright Workspace Manager

Provision and manage Microsoft Playwright Testing workspaces with .NET and Azure Resource Manager.

Dev & Engineering ✓ Microsoft · Official

Azure Event Grid for .NET

Practical .NET guidance for publishing, receiving, and processing Azure Event Grid events.

Dev & Engineering ✓ Microsoft · Official

Microsoft Entra App Registration

A practical guide to Entra app registration and OAuth integration.

Dev & Engineering ✓ Microsoft · Official

MongoDB Atlas Azure ARM Manager

Helps .NET developers manage MongoDB Atlas organizations through Azure Marketplace and Azure ARM.

Dev & Engineering ✓ Microsoft · Official

Azure AI Search for .NET

Build .NET search applications with practical Azure AI Search patterns for full-text, vector, semantic, and hybrid retrieval.

Dev & Engineering ✓ Microsoft · Official

Arize AI Azure Management for .NET

Guides .NET developers through Azure-based management of Arize AI observability resources.

Dev & Engineering ✓ Microsoft · Official

Azure Durable Task ARM for .NET

Guides .NET developers through code-based provisioning and management of Durable Task Scheduler resources.

Dev & Engineering ✓ Microsoft · Official

MCP Server Development Guide

A practical guide to building clear, testable MCP servers that let LLMs work with external APIs.

Dev & Engineering ✓ Microsoft · Official

Azure Persistent Agents for .NET

A practical .NET playbook for building and operating Azure AI persistent agents.

Dev & Engineering ✓ Microsoft · Official

Azure API Center for .NET

Manage Azure API inventories, governance, versions, and deployments with .NET.

Related skills