Dev & Engineering ✓ Microsoft · Official typescriptnodejsmicrosoft-365teamscopilot-studioexpressazure-openaistreaming

Microsoft 365 Agents SDK for TypeScript

Build TypeScript enterprise agents with routing, Express hosting, streaming responses, and Copilot Studio integration.

FollowSkills review · FSRS-2.0
Not recommended
48/ 100 5-point scale 2.4 / 5
Trust15 / 25 · 3.0/5

The skill loads secrets from environment variables and advises keeping secrets out of source code, showing basic secret-handling awareness. It does not specify least-privilege permissions, token scopes, data flows, external effects, user confirmation, or rollback, so points are deducted.

Reliability7 / 20 · 1.8/5

The core examples are broadly self-consistent and the streaming sample uses finally to end the stream. However, there are no skill-specific tests, pinned versions, complete authentication setup, or robust abnormal-input handling; the streaming example also omits installation of its ai and @ai-sdk/azure dependencies, so points are deducted.

Adaptability8 / 15 · 2.7/5

The name, audience, TypeScript/Node.js scope, and trigger terms are clear, covering AgentApplication, Express, streaming, and Copilot Studio. Non-fit boundaries, input/output contracts, runtime prerequisites, Chinese-language support, and mainland-China network reachability are not established, so points are deducted.

Convention8 / 15 · 2.7/5

The document includes front matter, MIT licensing, a version, installation steps, environment variables, examples, best practices, and reference links. It lacks FAQs, troubleshooting, known limitations, dependency-version policy, changelog, and a clear maintenance/update path, so points are deducted.

Effectiveness6 / 15 · 2.0/5

The examples provide directly useful starting points for routing, streaming, invoke handling, and Copilot Studio integration. They omit complete project configuration, authentication flow, deployment guidance, recovery behavior, and some required dependencies, leaving substantial manual verification and rework, so points are deducted.

Verifiability4 / 10 · 2.0/5

Microsoft documentation, API references, and GitHub samples provide some traceability. This review is static only; no skill-specific tests or executable results are supplied, and repository-level CI evidence does not demonstrate coverage of this skill path, so the score remains conservative.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a
Before you use it
  • The installation commands omit the ai and @ai-sdk/azure dependencies used by the streaming example and do not pin versions; current APIs and package versions must be verified before implementation.
  • The environment-variable examples include a client secret, API key, and bearer token without documenting scopes, rotation, storage controls, or log-redaction requirements.
  • Copilot Studio and Azure services depend on external network access and cloud credentials; the files do not establish mainland-China reachability, regional availability, or offline alternatives.
  • No skill-specific acceptance criteria, test suite, deployment configuration, or failure-troubleshooting procedure is provided.
See the full review method →

What it does & when to use it

This skill is for the Microsoft 365 Agents SDK in TypeScript/Node.js. It provides patterns for AgentApplication routing, Express hosting, streaming responses, invoke activity handling, and Copilot Studio direct and WebChat integrations. Its scope covers Teams, Microsoft 365, and Copilot Studio agent scenarios. Before implementation, it instructs users to verify current API signatures with the microsoft-docs MCP and confirm npm package versions.

Guides installation of the Microsoft 365 Agents SDK npm packages; creates an AgentApplication and starts an Express server with startServer; registers handlers for member-joined events, messages, and invoke activities; streams Azure OpenAI output by queuing informative updates and text chunks before ending the stream; creates a CopilotStudioClient, starts a conversation, and asks a question; creates a CopilotStudioWebChat connection and renders WebChat; and documents environment variables for Azure, tenant, and Copilot Studio credentials.

  1. A TypeScript developer building a Teams or Microsoft 365 agent needs AgentApplication routes for welcome and message handling.
  2. A developer generating long responses with Azure OpenAI needs to deliver text incrementally to users.
  3. A team building an external Copilot Studio client needs to start conversations and submit questions directly.
  4. A frontend developer embedding Copilot Studio in a webpage needs a WebChat connection pattern.
  5. A developer handling Teams or Microsoft 365 invoke activities needs to return a status and send feedback text.

Pros & cons

Pros
  • Provides adaptable TypeScript/Node.js patterns for routing, Express hosting, and streaming responses.
  • Covers both Teams/Microsoft 365 agent handling and Copilot Studio client integration.
  • Documents environment variables and practical guidance for secrets, stream cleanup, and invoke validation.
  • Uses a simple SKILL.md format with no visible Claude Code- or Codex-only extensions.
Limitations
  • The examples depend on several Microsoft npm packages and Azure/Copilot Studio configuration, including credentials and environment variables.
  • Package versions are not pinned, and the skill requires checking current API signatures and npm versions.
  • The source does not provide skill-specific test scenarios or acceptance criteria.
  • It focuses on SDK integration patterns and does not document complete deployment, permission configuration, or production operations.

How to install

Install the folder .github/plugins/azure-sdk-typescript/skills/m365-agents-ts/ as a skill in the Agent Skills-compatible client you use. To install the collection, run: npx skills add microsoft/skills, then select the required skill in the wizard. Install the packages used by the examples with: npm install @microsoft/agents-hosting @microsoft/agents-hosting-express @microsoft/agents-activity; npm install @microsoft/agents-copilotstudio-client.

How to use

Invoke it with a request containing a supported trigger, for example: “Use the Microsoft 365 Agents SDK to create an AgentApplication and Express server for a TypeScript project, including streamingResponse.” Triggers include Microsoft 365 Agents SDK, @microsoft/agents-hosting, AgentApplication, startServer, streamingResponse, Copilot Studio client, and @microsoft/agents-copilotstudio-client. Before implementation, use the microsoft-docs MCP to verify current signatures for AgentApplication, startServer, and CopilotStudioClient, and confirm npm versions. The source does not document a complete client-specific installation path or automatic-trigger configuration.

FAQ

What configuration is required for the Copilot Studio client?
The examples require COPILOT_ENVIRONMENT_ID, COPILOT_SCHEMA_NAME, COPILOT_CLIENT_ID, and COPILOT_BEARER_TOKEN, with the token supplied through a token provider.
How should streaming failures be handled?
The example handles an error part from fullStream and calls endStream in a finally block. The skill also recommends streamingResponse for long-running completions.

More skills from this repository

All from microsoft/agent-skills

Dev & Engineering ✓ Microsoft · Official

Azure Identity for Python

A practical skill for securing Python Azure applications with Microsoft Entra ID credentials.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs Java Skill

Build production-oriented Java event streaming applications on Azure Event Hubs.

Dev & Engineering ✓ Microsoft · Official

Azure Tables for Python

A practical guide to building authenticated Azure Tables applications with Python entity CRUD, queries, and partition-scoped batch operations.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

Configure secure, flexible Microsoft Entra ID authentication for TypeScript Azure applications.

Automation & Ops ✓ Microsoft · Official

Azure Reliability Advisor

Assess and improve reliability for Azure Functions and App Service.

Dev & Engineering ✓ Microsoft · Official

Azure Cloud Architect

Guides coding agents through production-grade Azure architecture design and review using Azure Architecture Center practices.

Dev & Engineering ✓ Microsoft · Official

Azure AI Text Analytics for Python

Guides Python developers through Azure-powered text analysis and NLP workflows.

Automation & Ops ✓ Microsoft · Official

Azure Resource Architecture Visualizer

Analyze Azure resource groups and turn their dependencies into detailed Mermaid architecture diagrams.

Dev & Engineering ✓ Microsoft · Official

Azure Maps for .NET

Build .NET location features for search, routing, maps, geolocation, and weather.

Dev & Engineering ✓ Microsoft · Official

Azure AI Vision Image Analysis

Guides Python coding agents in implementing Azure AI Vision image understanding.

Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for Python

Guides secure, production-minded Blob Storage operations in Python.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage for Python

Gives coding agents reliable Python patterns for secure Azure Queue Storage messaging and asynchronous task processing.

Automation & Ops ✓ Microsoft · Official

Azure AI Gateway Governance

Use Azure API Management to govern traffic across AI models, MCP tools, and agents.

Automation & Ops ✓ Microsoft · Official

AKS Automatic Readiness

Assess Kubernetes workloads for AKS Automatic compatibility and identify migration blockers before you switch.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB ARM for .NET

Provision and manage Azure Cosmos DB resources from .NET through ARM.

Dev & Engineering ✓ Microsoft · Official

Azure Playwright Workspace Manager

Provision and manage Microsoft Playwright Testing workspaces with .NET and Azure Resource Manager.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB for Python

A practical guide for building reliable Python applications on Azure Cosmos DB’s NoSQL API.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault SDK for Python

Gives Python coding agents practical guidance for securely managing Azure Key Vault secrets, keys, and certificates.

Dev & Engineering ✓ Microsoft · Official

Azure API Management for Python

Gives coding agents practical Python SDK patterns for managing Azure API Management services, APIs, products, subscriptions, and policies.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Query for Python

Generate Python code for querying Azure Monitor logs and metrics.

Related skills