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
Use with care
48/ 100 5-point scale 2.4 / 5
1 2 3 4 5 6
1Trust15 / 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.

2Reliability7 / 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.

3Adaptability8 / 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.

4Convention8 / 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.

5Effectiveness6 / 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.

6Verifiability4 / 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 does this skill do, and when should you 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.

What are this skill's strengths and limitations?

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 do you install this skill?

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 do you use this skill?

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

Microsoft 365 Agents SDK for Python

Build async, multichannel agents for Teams, Microsoft 365, and Copilot Studio.

Dev & Engineering ✓ Microsoft · Official

Microsoft 365 Agents SDK for .NET

Build ASP.NET Core agents that connect across Teams, Microsoft 365, and Copilot Studio.

Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for TypeScript

A practical guide for uploading, downloading, and managing Azure Blob Storage from TypeScript and JavaScript applications.

Dev & Engineering ✓ Microsoft · Official

Microsoft 365 Agent Evaluator

Design and run evaluation suites for Microsoft 365 Copilot declarative agents

Dev & Engineering ✓ Microsoft · Official

Azure File Share TypeScript Skill

Guides coding agents through Azure SMB file-share operations in TypeScript.

Dev & Engineering ✓ Microsoft · Official

Azure Web PubSub Real-Time Messaging

Build TypeScript WebSocket messaging, group communication, and live notification features with Azure Web PubSub.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault Secrets for TypeScript

Securely store and retrieve application secrets in Azure Key Vault while managing key lifecycles from Node.js.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault Keys for TypeScript

A practical TypeScript guide to creating, protecting, rotating, and using cryptographic keys in Azure Key Vault.

Dev & Engineering ✓ Microsoft · Official

Microsoft Docs Researcher

Ground coding agents in official Microsoft documentation for concepts, tutorials, configuration, limits, and best practices.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs TypeScript Skill

Build TypeScript event-streaming applications with batching, partition-aware consumers, checkpointing, and Azure identity authentication.

Dev & Engineering ✓ Microsoft · Official

Azure AI Projects for TypeScript

Practical TypeScript guidance for building Azure AI Foundry applications with project clients, agents, tools, and evaluations.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage TypeScript Skill

Build Azure Queue Storage workers that send, receive, inspect, and manage messages in TypeScript or JavaScript.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

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

Automation & Ops ✓ Microsoft · Official

Azure AI Gateway Governance

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

Dev & Engineering ✓ Microsoft · Official

ADO Wiki Converter

Converts VitePress and GFM documentation into Azure DevOps Wiki-compatible files.

Dev & Engineering ✓ Microsoft · Official

Azure Playwright Cloud Testing

Scale TypeScript Playwright tests on Azure-hosted browsers and publish results.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB TypeScript Skill

Gives TypeScript and JavaScript coding agents practical Cosmos DB data-access patterns.

Dev & Engineering ✓ Microsoft · Official

Azure OpenAI Deployment Assistant

Discover capacity and deploy Azure OpenAI models through intent-based routing.

Dev & Engineering ✓ Microsoft · Official

Azure AI Content Safety for TypeScript

Add text and image harm detection with customizable blocklists to TypeScript applications.

Dev & Engineering ✓ Microsoft · Official

Azure Document Intelligence for TypeScript

Extract document text, tables, and structured fields in TypeScript applications.

Related skills