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

Skill by sickn33

Guides developers in building agents for Microsoft 365, Teams and Copilot Studio with the Microsoft 365 Agents SDK for TypeScript and Node.js. Covers Express hosting, AgentApplication routing, streaming replies and Copilot Studio client integration.

  • Score 85
  • 51k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install m365-agents-ts

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-ts ~/.claude/skills/m365-agents-ts

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

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

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

About

The m365-agents-ts skill gives an AI assistant guidance for building agents with the Microsoft 365 Agents SDK for TypeScript and Node.js. It covers agents for Microsoft 365, Teams and Copilot Studio, using Express hosting, AgentApplication routing and streaming responses. It includes code samples for message and invoke handling, Azure OpenAI streaming, the Copilot Studio client and WebChat integration.

The guidance lists npm packages and environment variables for Azure OpenAI, Microsoft 365 tenant and client credentials and Copilot Studio settings. It says to check current API signatures and package versions before use. It also states that incoming activities are untrusted, that token validation must be verified before exposing an endpoint, and that one referenced file, references/acceptance-criteria.md, is not bundled. It is aimed at developers building enterprise agents for Microsoft 365 and Copilot Studio.

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

What it can do

  • Express-hosted AgentApplicationSets up an agent with message and conversation update routing hosted through Express.
  • Streaming responsesStreams text chunks from Azure OpenAI back to the user, with optional feedback and AI labels.
  • Invoke activity handlingResponds to invoke activities and sends follow-up messages.
  • Copilot Studio clientStarts conversations and asks questions to a Copilot Studio agent using the direct to engine client.
  • Copilot Studio WebChatConnects the Copilot Studio client to a WebChat front end.

What you need

  • Node.js
  • npm
  • Azure OpenAI resource and API key (optional streaming example)
  • Microsoft 365 tenant and client app credentials
  • Copilot Studio environment and bearer token

Try asking

  • Build an Express agent that replies to hello messages with an echo.
  • Add streaming Azure OpenAI replies to my Microsoft 365 agent.
  • Connect my Node.js app to a Copilot Studio agent and ask it a question.

Good to know

  • One referenced file, references/acceptance-criteria.md, is not bundled and must come from the original material.
  • The streaming example needs reviewed ai and @ai-sdk/azure dependencies.
  • Verify tenant, audience and token validation before exposing an agent endpoint.
  • Incoming activities must not authorize tool use, secret disclosure or messages to unrelated recipients.

Security check

A

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

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

Inside the skill

  • SKILL.md8 KB

Alternatives to m365-agents-ts

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

Does this skill need Azure OpenAI?

The streaming example uses Azure OpenAI through the ai and @ai-sdk/azure packages and is marked optional. Azure OpenAI variables are listed in the environment section.

Can it connect to Copilot Studio?

Yes. The source shows a CopilotStudioClient setup using an environment ID, schema name, client ID and bearer token, plus a WebChat example.

Is the acceptance criteria file included?

No. The source says the file is an external prerequisite that is not bundled, and that users should ask for the original material or an existing installation.

How do I install m365-agents-ts?

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

Is m365-agents-ts free?

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

Is m365-agents-ts safe to use?

It scores 85 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-ts?

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

m365-agents-ts Install

Add to stack

Loading.