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
Not recommended
53/ 100 5-point scale 2.7 / 5
Trust16 / 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.

Reliability8 / 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.

Adaptability10 / 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.

Convention9 / 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.

Effectiveness6 / 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.

Verifiability4 / 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 it does & when to 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.

Pros & cons

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

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

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

Azure Identity for Python

A practical skill for securing Python Azure applications with Microsoft Entra ID credentials.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs Java Skill

Build production-oriented Java event streaming applications on Azure Event Hubs.

Dev & Engineering ✓ Microsoft · Official

Azure Tables for Python

A practical guide to building authenticated Azure Tables applications with Python entity CRUD, queries, and partition-scoped batch operations.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

Configure secure, flexible Microsoft Entra ID authentication for TypeScript Azure applications.

Automation & Ops ✓ Microsoft · Official

Azure Reliability Advisor

Assess and improve reliability for Azure Functions and App Service.

Dev & Engineering ✓ Microsoft · Official

Azure Cloud Architect

Guides coding agents through production-grade Azure architecture design and review using Azure Architecture Center practices.

Dev & Engineering ✓ Microsoft · Official

Azure AI Text Analytics for Python

Guides Python developers through Azure-powered text analysis and NLP workflows.

Automation & Ops ✓ Microsoft · Official

Azure Resource Architecture Visualizer

Analyze Azure resource groups and turn their dependencies into detailed Mermaid architecture diagrams.

Dev & Engineering ✓ Microsoft · Official

Azure Maps for .NET

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

Dev & Engineering ✓ Microsoft · Official

Azure AI Vision Image Analysis

Guides Python coding agents in implementing Azure AI Vision image understanding.

Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for Python

Guides secure, production-minded Blob Storage operations in Python.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage for Python

Gives coding agents reliable Python patterns for secure Azure Queue Storage messaging and asynchronous task processing.

Automation & Ops ✓ Microsoft · Official

Azure AI Gateway Governance

Use Azure API Management to govern traffic across AI models, MCP tools, and agents.

Automation & Ops ✓ Microsoft · Official

AKS Automatic Readiness

Assess Kubernetes workloads for AKS Automatic compatibility and identify migration blockers before you switch.

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 Cosmos DB for Python

A practical guide for building reliable Python applications on Azure Cosmos DB’s NoSQL API.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault SDK for Python

Gives Python coding agents practical guidance for securely managing Azure Key Vault secrets, keys, and certificates.

Dev & Engineering ✓ Microsoft · Official

Azure API Management for Python

Gives coding agents practical Python SDK patterns for managing Azure API Management services, APIs, products, subscriptions, and policies.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Query for Python

Generate Python code for querying Azure Monitor logs and metrics.

Related skills