m365-agents-dotnet
Build Microsoft 365 Agents in .NET
Building Microsoft 365 agents in .NET requires coordinated hosting, routing, authentication, and Copilot Studio setup. This skill gives focused patterns and prompts for building those pieces faster.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "m365-agents-dotnet" from https://skillstore.io/skills/sickn33-m365-agents-dotnet.md and its manifest at https://skillstore.io/api/skills/sickn33-m365-agents-dotnet/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "m365-agents-dotnet". Plan a new Microsoft 365 agent host in ASP.NET Core.
Expected outcome:
A concise implementation plan with package choices, host startup steps, endpoint routing, storage notes, and authentication checkpoints.
Using "m365-agents-dotnet". Review my Teams agent authentication design.
Expected outcome:
A security review covering token validation, tenant configuration, endpoint authorization, secret storage, and production readiness gaps.
Using "m365-agents-dotnet". Help connect a .NET app to Copilot Studio.
Expected outcome:
A client design summary covering MSAL token flow, connection settings, HttpClientFactory usage, and validation questions.
Security Audit
Medium RiskMost static findings are false positives from Markdown code fences, package installation examples, OAuth configuration, localhost development URLs, and documentation links. No prompt injection or malicious exfiltration intent was found in SKILL.md. One semantic issue remains: the sample error handler sends raw exception messages back to the conversation.
Confirmed security concerns (1)
Risk Factors
โ๏ธ External commands (11)
๐ Network access (10)
๐ Filesystem access (1)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/sickn33-m365-agents-dotnet/audits/4?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/sickn33-m365-agents-dotnet?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/sickn33-m365-agents-dotnet?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/sickn33-m365-agents-dotnet/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/sickn33-m365-agents-dotnet.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
sickn33. (2026). m365-agents-dotnet security audit report (audit version 4) [Author version unspecified]. Skillstore. https://skillstore.io/skills/sickn33-m365-agents-dotnet/audits/4BibTeX citation
@techreport{sickn33-sickn33-m365-agents-dotnet-2026,
author = {sickn33},
title = {m365-agents-dotnet security audit report (audit version 4)},
institution = {Skillstore},
year = {2026},
number = {4},
url = {https://skillstore.io/skills/sickn33-m365-agents-dotnet/audits/4},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "m365-agents-dotnet security audit report (audit version 4)"
version: "unspecified"
type: report
authors:
- name: "sickn33"
date-released: "2026-07-07"
url: "https://skillstore.io/skills/sickn33-m365-agents-dotnet/audits/4"
identifiers:
- type: other
value: "skillstore:sickn33-m365-agents-dotnet:audit:4"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: HighWhat You Can Build
Start a Microsoft 365 agent
Create a first ASP.NET Core host with package guidance, message routing, and authentication checkpoints.
Harden agent authentication
Review token validation, authorization, tenant settings, and secret handling before moving an agent toward production.
Plan Copilot Studio integration
Design a direct-to-engine client flow with MSAL, HttpClientFactory, and Copilot Studio connection settings.
Try These Prompts
Use the m365-agents-dotnet skill to outline an ASP.NET Core host for a Microsoft 365 agent. Include packages, routes, auth, and storage choices.
Use the skill to plan AgentApplication handlers for welcome events, message replies, and errors. Explain where each handler belongs.
Use the skill to review my Microsoft 365 agent authentication plan. Check token validation, tenant settings, authorization, and secret handling.
Use the skill to design a Copilot Studio direct-to-engine client. Include MSAL flow, HttpClientFactory usage, and production hardening questions.
Best Practices
- Verify current Microsoft.Agents APIs and NuGet versions before implementation.
- Use durable storage and secure secret providers for production agents.
- Require authorization on message endpoints and validate tokens in production.
Avoid
- Do not use MemoryStorage for production conversation state.
- Do not return raw exception details to users.
- Do not hardcode tenant secrets or client secrets in source files.
Frequently Asked Questions
What does this skill help build?
Does it create a complete production app?
Can I use it with Claude, Codex, and Claude Code?
Does it cover Copilot Studio?
Does it manage Microsoft credentials?
Should I verify Microsoft documentation?
Developer Details
Author
sickn33License
MIT
Skillstore revision
r1
Version notice
The author did not declare a version.
Repository
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/m365-agents-dotnetRef
816c62b2546ddb1c6a0453e7c781b5e095117819
Maintenance freshness
7/18/2026
Usage
7 downloads ยท 115 views
File structure
๐ SKILL.md