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-py

Skill by sickn33

Guides developers building Microsoft 365 agents for Teams, M365 and Copilot Studio in Python. It covers aiohttp hosting, AgentApplication routing, streaming responses and MSAL-based auth.

  • Score 89
  • 50k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install m365-agents-py

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/m365-agents-py ~/.claude/skills/m365-agents-py

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install m365-agents-py in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The m365-agents-py skill gives an AI assistant guidance for building agents with the Microsoft 365 Agents SDK for Python. The agents can run in Teams, Microsoft 365 and Copilot Studio. The source describes aiohttp hosting, AgentApplication routing, streaming responses and MSAL-based authentication.

The skill includes code for an aiohttp app that exposes an /api/messages endpoint through a CloudAdapter. It shows how to add handlers for members added, message and error events, and for regex and string message matches. It also shows streaming replies from Azure OpenAI, OAuth sign-in for Microsoft Graph, and a Copilot Studio client. It is aimed at developers who build enterprise agents. The source notes that the supporting reference file is not bundled.

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

What it can do

  • aiohttp hostingHosts the agent in an aiohttp app with a POST endpoint at /api/messages.
  • AgentApplication routingRoutes conversation updates, messages, invokes and errors to handler functions.
  • Streaming responsesStreams Azure OpenAI output back to the chat as text chunks, with optional feedback and AI labels.
  • OAuth auto sign-inRequests a Microsoft Graph token and calls the Graph /me endpoint from a message handler.
  • Sign-out handlingSigns a user out of the GRAPH auth handler with a message command.
  • Copilot Studio clientConnects directly to a Copilot Studio agent and starts a conversation with an acquired token.

What you need

  • Python
  • Microsoft Agents SDK packages from PyPI (microsoft-agents-* and aiohttp)
  • Azure app registration client ID, client secret and tenant ID
  • Azure OpenAI endpoint, API version and key for streaming (optional)
  • Copilot Studio environment ID, schema name and app ID for the Copilot client (optional)

Try asking

  • Set up an aiohttp agent that answers hello and /status messages in Teams
  • Add a /me command that shows my Microsoft Graph display name
  • Stream a poem reply from Azure OpenAI into my Teams agent

Good to know

  • Supporting file references/acceptance-criteria.md is an external prerequisite and is not included.
  • The source states a critical risk rating and asks users to keep secrets out of logs.
  • The source notes import paths changed from microsoft.agents to microsoft_agents.
  • The Copilot Studio example in the source is cut off and incomplete.

Security check

A

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

Checked automatically: skills/m365-agents-py/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md14 KB

Alternatives to m365-agents-py

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-py: common questions

What does the m365-agents-py skill do?

It gives guidance and code for building Microsoft 365 agents with the Microsoft Agents SDK for Python. The agents target Teams, Microsoft 365 and Copilot Studio.

Which Python import path should I use?

The source says recent updates changed the import structure from microsoft.agents to microsoft_agents, using underscores instead of dots.

Is the skill complete as shipped?

The source says this catalog copy does not include a supporting reference file. It also ends in the middle of the Copilot Studio example.

How do I install m365-agents-py?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is m365-agents-py free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is m365-agents-py safe to use?

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

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

m365-agents-py Install

Add to stack

Loading.