Agent skill · Security

m365-agents-dotnet

Microsoft 365 Agents SDK for .NET. Build multichannel agents for Teams/M365/Copilot Studio with ASP.NET Core hosting, AgentApplication routing, and MSAL-based auth.

majiayu000github.com/majiayu000GitHub ↗
claude-codecopilotMIT
Install
npx skills add majiayu000/claude-skill-registry --skill m365-agents-dotnet-clinscott-cstar --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 9 KB
Bundled scripts: none
Path: skills/agent/m365-agents-dotnet-clinscott-cstar/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Microsoft 365 Agents SDK (.NET) ## Overview Build enterprise agents for Microsoft 365, Teams, and Copilot Studio using the Microsoft.Agents SDK with ASP.NET Core hosting, agent routing, and MSAL-based authentication. ## Before implementation - Use the microsoft-docs MCP to verify the latest APIs for AddAgent, AgentApplication, and authentication options. - Confirm package versions in NuGet for the Microsoft.Agents.* packages you plan to use. ## Installation ```bash dotnet add package Microsoft.Agents.Hosting.AspNetCore dotnet add package Microsoft.Agents.Authentication.Msal dotnet add package Microsoft.Agents.Storage dotnet add package Microsoft.Agents.CopilotStudio.Client dotnet add package Microsoft.Identity.Client.Extensions.Msal ``` ## Configuration (appsettings.json) ```json { "TokenValidation": { "Enabled": true, "Audiences": [ "{{ClientId}}" ], "TenantId": "{{TenantId}}" }, "AgentApplication": { "StartTypingTimer": false, "RemoveRecipientMention": false, "NormalizeMentions": false }, "Connections": { "ServiceConnection": { "Settings": { "AuthType": "ClientSecret", "ClientId": "{{ClientId}}", "ClientSecret": "{{ClientSecret}}", "AuthorityEndpoint": "https://login.microsofto

What's inside
Steps it walks through
  1. Overview
  2. Before implementation
  3. Installation
  4. Configuration (appsettings.json)
  5. Core Workflow: ASP.NET Core agent host
  6. AgentApplication routing
  7. Copilot Studio direct-to-engine client
  8. DelegatingHandler for token acquisition (interactive flow)
  9. Console host with CopilotClient
  10. Best Practices
  11. Reference Files
  12. Reference Links
  13. When to Use
Ships with 1 file
  • metadata.json
Commands it runs
dotnet add package Microsoft.Agents.Hosting.AspNetCore
dotnet add package Microsoft.Agents.Authentication.Msal
dotnet add package Microsoft.Agents.Storage
dotnet add package Microsoft.Agents.CopilotStudio.Client
dotnet add package Microsoft.Identity.Client.Extensions.Msal
More from claude-skill-registry
All skills →
About this skill
What does the m365-agents-dotnet skill do?

Microsoft 365 Agents SDK for .NET. Build multichannel agents for Teams/M365/Copilot Studio with ASP.NET Core hosting, AgentApplication routing, and MSAL-based auth.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill m365-agents-dotnet-clinscott-cstar --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going