microsoft-teams
БесплатноБез исполняемых скриптовНе проверенBuild bots, automate workflows, and manage Microsoft Teams programmatically via Microsoft Graph API. Use when someone asks to "build a Teams bot", "automate…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Microsoft Teams
Overview
This skill helps AI agents build integrations with Microsoft Teams: notifications through a Workflows webhook, team, channel and meeting management through the Microsoft Graph API, and conversational bots with the Teams SDK. Three things changed since older tutorials were written: Office 365 connector webhooks were switched off in May 2026 in favour of Power Automate Workflows, Graph cannot post channel messages with app-only permissions, and the Bot Framework SDK is no longer maintained.
Instructions
Choose Integration Type
| Need | Solution | Complexity |
|---|---|---|
| Send notifications to a channel or chat | Workflows webhook (Power Automate) | Low |
| Create channels, meetings, read teams | Graph API | Medium |
| Post messages as a signed-in user | Graph API, delegated permission | Medium |
| Interactive bot (commands, cards, proactive messages) | Teams SDK (@microsoft/teams.apps) |
High |
Webhook Notifications (Workflows)
Microsoft 365 connectors, including the old webhook.office.com incoming webhook, were switched off in a rollout that Microsoft ran from 18 to 22 May 2026, so old connector URLs no longer deliver and none can be created. Create the webhook with the Workflows app instead: in the channel, open More options (...), Workflows, pick the template Send webhook alerts to a channel, save, and copy the generated URL. Treat the URL as a secret; anyone holding it can post to the channel. The workflow belongs to the person who created it, so add a co-owner or it stops when that person leaves.
const WEBHOOK_URL = process.env.TEAMS_WEBHOOK_URL!;
const res = await fetch(WEBHOOK_URL, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
type: 'message',
attachments: [{
contentType: 'application/vnd.microsoft.card.adaptive',
content: {
$schema: 'http://adaptivecards.io/schemas/adaptive-card.json',
type: 'AdaptiveCard', version: '1.4',
body: [
{ type: 'TextBlock', text: 'Deployment Complete', weight: 'Bolder', size: 'Large' },
{ type: 'FactSet', facts: [
{ title: 'Service', value: 'api-gateway' },
{ title: 'Version', value: 'v2.4.1' },
{ title: 'Environment', value: 'Production' },
]},
],
actions: [{ type: 'Action.OpenUrl', title: 'View Dashboard', url: 'https://grafana.acme-corp.io/d/api-gateway' }],
},
}],
}),
});
if (!res.ok) console.error('Teams webhook failed', res.status, await res.text());
Limits from the Teams docs: 28 KB per message, and more than four requests per second are throttled (retry with exponential backoff). Do not use HTML in card text; Markdown only.
Graph API
import { ClientSecretCredential } from '@azure/identity';
import { Client } from '@microsoft/microsoft-graph-client';
import { TokenCredentialAuthenticationProvider } from '@microsoft/microsoft-graph-client/authProviders/azureTokenCredentials';
const credential = new ClientSecretCredential(
process.env.AZURE_TENANT_ID!, process.env.AZURE_CLIENT_ID!, process.env.AZURE_CLIENT_SECRET!
);
const authProvider = new TokenCredentialAuthenticationProvider(credential, {
scopes: ['https://graph.microsoft.com/.default'],
});
const graphClient = Client.initWithMiddleware({ authProvider });
// Create a channel (application permission Channel.Create)
await graphClient.api(`/teams/${teamId}/channels`).post({
displayName: 'Project Alpha', membershipType: 'standard',
});
// Create an online meeting (application permission OnlineMeetings.ReadWrite.All)
const meeting = await graphClient.api(`/users/${organizerId}/onlineMeetings`).post({
subject: 'Sprint Planning',
startDateTime: '2026-11-02T14:00:00Z', endDateTime: '2026-11-02T15:00:00Z',
participants: { attendees: [{ upn: '[email protected]' }] },
});
console.log('Join URL:', meeting.joinUrl);
Posting a channel message (POST /teams/{id}/channels/{id}/messages) works only with a delegated token (ChannelMessage.Send); application permissions are supported there for data migration only. A daemon that must announce something in a channel should use the Workflows webhook or a bot. Meetings created with an app-only token also need a tenant admin to grant an application access policy to the app (New-CsApplicationAccessPolicy in Teams PowerShell); without it Graph returns 403.
Bot (Teams SDK)
The Bot Framework SDK (botbuilder, last release 4.23.3) is archived and out of support since 31 December 2025. Microsoft's replacements are the Teams SDK (@microsoft/teams.apps, used below) and the Microsoft 365 Agents SDK. Install with npm install @microsoft/teams.apps @microsoft/teams.api @microsoft/teams.cards.
import { App } from '@microsoft/teams.apps';
import { MessageActivity } from '@microsoft/teams.api';
import { AdaptiveCard, TextBlock, FactSet, F
Установить microsoft-teams в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл microsoft-teams?
Build bots, automate workflows, and manage Microsoft Teams programmatically via Microsoft Graph API. Use when someone asks to "build a Teams bot", "automate Teams messages", "create Teams channels", "integrate with Teams", "Teams webhook", "send Teams notifications", "manage Teams meetings", or "Teams app development". Covers Workflows webhooks (the replacement for discontinued Office 365 connectors), Graph API for channels and meetings, and bots with the Teams SDK.
Как установить скилл microsoft-teams?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл microsoft-teams запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic