Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

m365-agents-dotnet

Skill by kursku

Guides .NET developers in building multichannel agents for Teams, Microsoft 365 and Copilot Studio with the Microsoft.Agents SDK. It covers ASP.NET Core hosting, AgentApplication routing and MSAL-based authentication.

  • Score 52
  • 140 stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install m365-agents-dotnet

Built from the published package, never by AI.

git clone --depth 1 https://github.com/kursku/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/packs/global-skillshare-import/wave-008/m365-agents-dotnet ~/.claude/skills/m365-agents-dotnet

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install m365-agents-dotnet in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides .NET developers who build agents for Microsoft 365, Teams and Copilot Studio with the Microsoft.Agents SDK. It covers the NuGet packages to install, an appsettings.json configuration template, and an ASP.NET Core host that exposes a /api/messages endpoint. It also shows AgentApplication subclasses that route messages, conversation updates and turn errors.

The skill includes a Copilot Studio direct-to-engine client example. It uses MSAL in a DelegatingHandler to acquire tokens silently or interactively, then calls CopilotClient from a console host. Best practices cover using MemoryStorage only for development, enabling token validation in production, and keeping secrets in Key Vault or environment variables. It suits developers who want a starting point for Microsoft 365 agent code.

Written from the project's SKILL.md and checked against it.

What it can do

  • ASP.NET Core agent hostingRegisters an agent with AddAgent and maps a POST /api/messages endpoint.
  • AgentApplication routingRoutes members-added, message and turn error events in an AgentApplication subclass.
  • MSAL-based authenticationSets up AddAgentAspNetAuthentication and token validation settings in configuration.
  • Copilot Studio clientStarts conversations and asks questions to Copilot Studio with the CopilotClient class.
  • Token acquisition handlerShows a DelegatingHandler that acquires bearer tokens silently or interactively with MSAL.
  • Configuration templateProvides an appsettings.json layout for connections, token validation and Copilot Studio settings.

What you need

  • .NET with the dotnet CLI
  • NuGet access to the Microsoft.Agents packages
  • Entra app registration with ClientId, TenantId and ClientSecret
  • Copilot Studio environment settings for the client example

Try asking

  • Show me how to add AddAgent and a /api/messages endpoint to my ASP.NET Core app.
  • Write an AgentApplication subclass that welcomes new members and echoes messages.
  • Help me set up MSAL token acquisition for a Copilot Studio CopilotClient.

Good to know

  • The source says to verify current APIs and NuGet package versions before implementation.
  • MemoryStorage is described as suitable for development only.
  • Authorization is required on /api/messages only outside the Development environment.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: packs/global-skillshare-import/wave-008/m365-agents-dotnet/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to m365-agents-dotnet

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

m365-agents-dotnet: common questions

Does this skill work with Copilot Studio?

It includes a Copilot Studio direct-to-engine client example that uses CopilotStudioClientSettings such as EnvironmentId and SchemaName. The skill is written for building agents for Copilot Studio as well as Teams and Microsoft 365.

What storage should I use in production?

The source says MemoryStorage is for development only and that persisted storage should be used in production. The sample registers MemoryStorage as IStorage.

How is the agent endpoint secured?

The source recommends enabling TokenValidation in production and requiring authorization on /api/messages. The sample calls RequireAuthorization when the environment is not Development.

How do I install m365-agents-dotnet?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is m365-agents-dotnet free?

The code is public, but no licence file was found, so check the repository before commercial use.

Is m365-agents-dotnet safe to use?

It scores 52 of 100. Grades: maintenance D, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to m365-agents-dotnet?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

m365-agents-dotnet Install

Add to stack

Loading.