Agent skill · software engineering · sickn33
m365-agents-py
Microsoft 365 Agents SDK for Python. Build multichannel agents for Teams/M365/Copilot Studio with aiohttp hosting, AgentApplication routing, streaming responses, and MSAL-based auth.
Why this skill is useful
Adds executable scripts and specific patterns for building Microsoft 365 agents that the AI wouldn't generate on its own.
What it needs
Requires aiohttp, microsoft-agents-activity, microsoft-agents-authentication-msal, microsoft-agents-copilotstudio-client, microsoft-agents-hosting-aiohttp, microsoft-agents-hosting-core, python-dotenv installed locally. Requires azure account access. About 5k tokens when loaded. Last updated 2026-08-07. 44,571 stars on the source repository.
What this skill does
Supporting material availability This catalog copy contains the inline guidance below, but does not include the following supporting paths. They are external prerequisites, not bundled files: <support-root>/references/acceptance-criteria.md Ask for the original supporting material or an existing installation before using a step that depends on these paths; this catalog does not identify a verified download source for them. Resolve each path relative to that installation, inspect its contents, and verify any applicable license and execution prerequisites. Do not run a command or claim a referenced procedure was followed until its required file exists. Do not fabricate the missing scripts or treat an unrelated file with the same name as equivalent. Independent steps fully documented here can proceed within the user’s authorized scope; report any dependent step as unavailable. Microsoft 365 Agents SDK (Python) Build enterprise agents for Microsoft 365, Teams, and Copilot Studio using the Microsoft Agents SDK with aiohttp hosting, AgentApplication routing, streaming responses, and MSAL-based authentication. Before implementation Use the microsoft-docs MCP to verify the latest API signatures for AgentApplication, startagentprocess, and authentication options. Confirm package versions on PyPI for the microsoft-agents- packages you plan to use. Important Notice - Import Changes ⚠️ Breaking Change: Recent updates have changed the Python import structure from microsoft.agents to microsoftagents (using underscores instead of dots). Installation Environment Variables (.env) Core Workflow: aiohttp-hosted AgentApplication AgentApplication Routing Streaming Responses with Azure OpenAI OAuth / Auto Sign-In Copilot Studio Client (Direct to Engine) Best Practices 1. Use microsoftagents import prefix (underscores, not dots). 2. Use MemoryStorage only for development; use BlobStorage or CosmosDB in production. 3. Always use loadconfigurationfromenv(environ) to load SDK configuration. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills sickn33/m365-agents-py--e6eb88