m365-agents-dotnet
Skill by aiskillstore
m365-agents-dotnet guides developers in building Microsoft 365 agents in .NET with the Microsoft.Agents SDK. It covers ASP.NET Core hosting, AgentApplication routing, MSAL auth and a Copilot Studio client for Teams, Microsoft 365 and Copilot Studio.
Install m365-agents-dotnet
Built from the published package, never by AI.
git clone --depth 1 https://github.com/aiskillstore/marketplace /tmp/marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/marketplace/skills/sickn33/m365-agents-dotnet ~/.claude/skills/m365-agents-dotnetRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/aiskillstore/marketplace /tmp/marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/marketplace/skills/sickn33/m365-agents-dotnet ~/.gemini/antigravity-cli/skills/m365-agents-dotnetAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The m365-agents-dotnet skill gives an AI assistant guidance for building Microsoft 365 agents in .NET with the Microsoft.Agents SDK. It covers an ASP.NET Core agent host that exposes a POST route at /api/messages, AgentApplication subclasses that route activities such as conversation updates, messages and turn errors, and MSAL-based authentication configured through appsettings.json.
It also includes a Copilot Studio direct-to-engine client sample that acquires tokens with MSAL in a DelegatingHandler and runs conversations from a console host. The skill is aimed at developers who build agents for Teams, Microsoft 365 and Copilot Studio. It lists NuGet packages and reference links to Microsoft Learn, and tells the assistant to verify current APIs with the microsoft-docs MCP before coding.
Written from the project's SKILL.md and checked against it.
What it can do
- ASP.NET Core agent hostSets up an agent host using AddAgentApplicationOptions, AddAgent and AddAgentAspNetAuthentication.
- AgentApplication routingShows AgentApplication subclasses that handle members added, messages and turn errors.
- MSAL auth configurationShows appsettings.json settings for TokenValidation and the ServiceConnection with ClientSecret.
- Token acquisition handlerShows a DelegatingHandler that gets Copilot Studio tokens silently or interactively with MSAL.
- Copilot Studio clientShows a console host that uses CopilotClient to start conversations and ask questions.
- Package and API checksLists Microsoft.Agents NuGet packages and points to Microsoft Learn reference pages.
What you need
- ASP.NET Core hosting in .NET
- Microsoft.Agents NuGet packages
- Microsoft Entra app values: ClientId, TenantId and ClientSecret
- Copilot Studio settings such as EnvironmentId, SchemaName and AppClientId for the client sample
- microsoft-docs MCP to verify current APIs
Try asking
- Set up an ASP.NET Core host for a Microsoft 365 agent with /api/messages
- Write an AgentApplication that welcomes members and echoes messages
- Show me how to call Copilot Studio from a .NET console app with CopilotClient
Good to know
- MemoryStorage is for development only, according to the source.
- Outside the Development environment, the /api/messages route should require authorization.
- The source says to confirm current APIs and NuGet package versions before implementation.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/sickn33/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 →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.
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.
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.
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.
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.
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.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
m365-agents-dotnet: common questions
Should MemoryStorage be used in production?
No. The source says MemoryStorage is for development only and persisted storage should be used in production.
Does this skill cover Copilot Studio?
Yes. It includes a Copilot Studio direct-to-engine client sample that uses CopilotClient and an MSAL token handler.
What is needed to configure authentication?
The source's appsettings.json example uses a ClientId, TenantId and ClientSecret, with an Entra authority endpoint and Bot Framework scope.
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 69 of 100. Grades: maintenance A, licence F, quality A. 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.
