m365-agents-py
Build Microsoft 365 Python Agents
Teams and Copilot Studio agent projects require accurate SDK patterns, routing, streaming, and authentication setup. This skill gives Claude, Codex, and Claude Code focused Python guidance for Microsoft 365 Agents SDK implementations.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "m365-agents-py" from https://skillstore.io/skills/sickn33-m365-agents-py.md and its manifest at https://skillstore.io/api/skills/sickn33-m365-agents-py/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-py". Build a Teams agent that replies to status and welcome messages.
Expected outcome:
- A concise implementation plan for aiohttp hosting and AgentApplication routing.
- A list of required Microsoft Agents SDK packages and configuration values.
- Security notes for JWT middleware, local development secrets, and production storage.
Using "m365-agents-py". Add a signed-in Microsoft Graph profile command.
Expected outcome:
- A step-by-step authentication design using MSAL and auth handlers.
- Recommended consent, scope, and token-handling checks.
- User-facing response guidance that avoids exposing unnecessary profile data.
Using "m365-agents-py". Connect my agent to Copilot Studio.
Expected outcome:
- A Copilot Studio connection checklist for tenant, environment, schema, and app registration values.
- A conversation flow outline for starting a session and sending user questions.
- Warnings about broad scopes, token cache storage, and production observability.
Security Audit
Medium RiskMost static findings are false positives from Markdown fences, inline backticks, static Python imports, placeholders, and reference links. Confirmed risks are limited to low-severity dotenv and authenticated Microsoft Graph examples, with a medium semantic concern around broad OAuth .default scope usage. No prompt-injection attempt or malicious data-exfiltration intent was found.
Confirmed security concerns (2)
Capability review items (4)
These are real local capabilities that may be expected for this skill, so they require review but are not counted as confirmed malicious behavior.
Risk Factors
⚡ Contains scripts (4)
⚙️ External commands (21)
🌐 Network access (9)
📁 Filesystem access (2)
🔑 Env variables (7)
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-py/audits/4?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/sickn33-m365-agents-py?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/sickn33-m365-agents-py?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/sickn33-m365-agents-py/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/sickn33-m365-agents-py.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-py security audit report (audit version 4) [Author version unspecified]. Skillstore. https://skillstore.io/skills/sickn33-m365-agents-py/audits/4BibTeX citation
@techreport{sickn33-sickn33-m365-agents-py-2026,
author = {sickn33},
title = {m365-agents-py security audit report (audit version 4)},
institution = {Skillstore},
year = {2026},
number = {4},
url = {https://skillstore.io/skills/sickn33-m365-agents-py/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-py 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-py/audits/4"
identifiers:
- type: other
value: "skillstore:sickn33-m365-agents-py:audit:4"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: HighWhat You Can Build
Create a Teams Agent Prototype
Generate a Python agent skeleton with aiohttp hosting, message routing, and JWT middleware.
Add Enterprise Authentication
Plan MSAL configuration, auth handlers, token retrieval, and Microsoft Graph profile access.
Connect Copilot Studio Workflows
Design direct Copilot Studio client flows that start conversations and pass user questions.
Try These Prompts
Create a minimal Microsoft 365 Agents SDK Python agent using aiohttp hosting, message routing, and safe local configuration.
Design AgentApplication routes for welcome events, status commands, regex matches, invoke activities, fallback handling, and errors.
Add MSAL-backed OAuth handling for a Graph profile request, including consent checks, token handling, and safe response behavior.
Review this Microsoft 365 agent architecture for production readiness, including storage, tenant isolation, streaming, logging, secrets, and Copilot Studio access.
Best Practices
- Verify current Microsoft Agents SDK APIs before generating final implementation code.
- Use environment variables or managed secret stores, and never commit tenant secrets.
- Limit OAuth scopes, validate tenant configuration, and review consent before deployment.
Avoid
- Do not copy sample `.default` scopes into production without permission review.
- Do not use MemoryStorage for production conversations or user state.
- Do not log OAuth tokens, profile data, or Copilot Studio conversation content.