Agent skill · software engineering · aiskillstore

m365-agents-ts

Microsoft 365 Agents SDK for TypeScript/Node.js. Build multichannel agents for Teams/M365/Copilot Studio with AgentApplication routing, Express hosting, streaming responses, and Copilot Studio client integration. Triggers: "Microsoft 365 Agents SDK", "@microsoft/agents-hosting", "AgentApplication", "startServer", "streamingResponse", "Copilot Studio client", "@microsoft/agents-copilotstudio-client".

Why this skill is useful

Provides specific implementation patterns and API usage for building Microsoft 365 agents that the AI wouldn't reliably generate on its own.

What it needs

Requires @microsoft/agents-activity, @microsoft/agents-copilotstudio-client, @microsoft/agents-hosting, @microsoft/agents-hosting-express installed locally. Requires azure account access. About 2k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Microsoft 365 Agents SDK (TypeScript) Build enterprise agents for Microsoft 365, Teams, and Copilot Studio using the Microsoft 365 Agents SDK with Express hosting, AgentApplication routing, streaming responses, and Copilot Studio client integrations. Before implementation Use the microsoft-docs MCP to verify the latest API signatures for AgentApplication, startServer, and CopilotStudioClient. Confirm package versions on npm before wiring up samples or templates. Installation Environment Variables Core Workflow: Express-hosted AgentApplication Streaming responses with Azure OpenAI Invoke activity handling Copilot Studio client (Direct to Engine) Copilot Studio WebChat integration Best Practices 1. Use AgentApplication for routing and keep handlers focused on one responsibility. 2. Prefer streamingResponse for long-running completions and call endStream in finally blocks. 3. Keep secrets out of source code; load tokens from environment variables or secure stores. 4. Reuse CopilotStudioClient instances and cache tokens in your token provider. 5. Validate invoke payloads before logging or persisting feedback. Reference Files File Contents --- --- references/acceptance-criteria.md Import paths, hosting pipeline, streaming, and Copilot Studio patterns Reference Links Resource URL --- --- Microsoft 365 Agents SDK https://learn.microsoft.com/en-us/microsoft-365/agents-sdk/ JavaScript SDK overview https://learn.microsoft.com/en-us/javascript/api/overview/agents-overview?view=agents-sdk-js-latest @microsoft/agents-hosting-express https://learn.microsoft.com/en-us/javascript/api/%40microsoft/agents-hosting-express?view=agents-sdk-js-latest @microsoft/agents-copilotstudio-client https://learn.microsoft.com/en-us/javascript/api/%40microsoft/agents-copilotstudio-client?view=agents-sdk-js-latest Integrate with Copilot Studio https://learn.microsoft.com/en-us/microsoft-365/agents-sdk/integrate-with-mcs GitHub samples https://github.com/microsoft/Agents/tree/main/samples/nodejs

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/m365-agents-ts

View the source on GitHub

Browse the @skills marketplace