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 FrancoStino

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

  • Score 71
  • 93 stars
  • MIT
  • 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/FrancoStino/opencode-skills-collection /tmp/opencode-skills-collection && mkdir -p ~/.claude/skills && cp -r /tmp/opencode-skills-collection/bundled-skills/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 developers building agents for Microsoft 365, Teams and Copilot Studio with the Microsoft.Agents SDK for .NET. It lists the Microsoft.Agents NuGet packages to install, shows an appsettings.json layout, and hosts an agent in ASP.NET Core with an /api/messages endpoint. It also shows an AgentApplication subclass that routes members-added, message and turn error events.

The skill covers MSAL-based auth, including a DelegatingHandler that acquires tokens silently and falls back to interactive sign-in. It also includes a console example that uses CopilotClient to start a conversation with a Copilot Studio agent. It is aimed at .NET developers who build enterprise agents. The source asks the assistant to check current APIs and NuGet package versions before implementing.

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

What it can do

  • ASP.NET Core agent hostSets up a web host with AddAgent, AgentApplication options and an /api/messages endpoint.
  • AgentApplication routingRoutes members-added, message and turn error events to handler methods in an AgentApplication subclass.
  • MSAL-based authenticationConfigures client secret connections and token validation for agent requests.
  • Copilot Studio clientUses CopilotClient to start conversations and ask questions against a Copilot Studio agent.
  • Token acquisition handlerProvides a DelegatingHandler that gets bearer tokens silently and falls back to interactive sign-in.
  • Configuration templateGives an appsettings.json layout for token validation, connections and Copilot Studio settings.

What you need

  • Microsoft.Agents NuGet packages
  • dotnet CLI
  • Azure app registration with ClientId and TenantId
  • Client secret for the service connection
  • Copilot Studio environment for the Copilot Studio client

Try asking

  • Set up an ASP.NET Core host for a Teams agent with /api/messages
  • Add an AgentApplication that routes message activities to a handler
  • Connect a .NET console app to a Copilot Studio agent with CopilotClient

Good to know

  • MemoryStorage is for development only, so production needs persisted storage.
  • The source says to verify current APIs and NuGet package versions before use.
  • The source lists a references/acceptance-criteria.md file that is not included in the text.

Security check

A

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

Checked automatically: bundled-skills/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 support storing conversation state?

It registers MemoryStorage in the sample, and the source says to use persisted storage in production. The source does not name a specific persisted storage option.

Can it connect to Copilot Studio?

Yes. The source includes a Copilot Studio direct-to-engine client with settings for environment, schema name and app client ID, and a console host example.

How does authentication work?

The source uses MSAL-based auth with a ClientSecret connection in appsettings.json. The interactive example acquires tokens silently first and falls back to interactive sign-in when UI is required.

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 published under the MIT licence. The service it connects to may have its own pricing.

Is m365-agents-dotnet safe to use?

It scores 71 of 100. Grades: maintenance A, licence A, 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.