Teams Desktop Automation logo

Teams Desktop Automation

Community
aktsmm
teams-desktop-automation

Prepare and verify Microsoft Teams desktop chat drafts with Windows UI Automation, stopping before send. Use for Teamsチャット下書き, デスクトップTeams操作, 宛先確認, メッセージ入力, or when Teams Web/CDP is unavailable.

Overview

Publisheraktsmm
RepositoryAgent-Skills
Skill nameteams-desktop-automation
Stars
27
Forks
5
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by aktsmm on GitHub. Read the source before you install it.

Installation

Install the Teams Desktop Automation AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/aktsmm/Agent-Skills/tree/master/teams-desktop-automation
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/aktsmm/Agent-Skills.git /tmp/Agent-Skills
mkdir -p .claude/skills
cp -r /tmp/Agent-Skills/teams-desktop-automation .claude/skills/teams-desktop-automation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Teams Desktop Automation in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Teams Desktop Automation on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Teams Desktop Automation is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Teams Desktop Automation

When to Use

  • Teams デスクトップでチャット本文を下書きするとき
  • Teams Web / Playwright / CDP が使えず、認証済みデスクトップアプリを使うとき
  • 宛先と本文を検証し、ユーザーの最終送信待ちで止めるとき

使わない: 会議参加、通話、チャネル投稿、ファイル共有、メッセージ送信後の編集・削除。

Safety Contract

  • 送信しない。 宛先と本文を入力した画面で停止し、最終の送信ボタンはユーザー本人に押してもらう。
  • 宛先は表示名だけで決めず、組織ディレクトリ等で確認したメールアドレスと照合する。
  • Teams のウィンドウタイトルで宛先・期待アカウントを確認する。候補が0件または複数なら停止する。
  • 既存下書きが別内容なら上書きしない。同一本文なら再入力せず成功扱いにする。
  • SendKeys、送信ボタンの click / InvokePattern、座標クリックを実行しない。
  • 認証、MFA、アカウント切替が必要なら、対象と完了の目印を示してユーザーへ引き継ぐ。

Workflow

  1. 宛先の表示名、社内メールアドレス、期待する Teams アカウント、本文を確定する。
  2. Teams が起動中か確認する。必要なら helper の Open で対象チャットを開く。この操作は Teams を前面化し得るため、実行前にユーザーへ知らせる。
  3. Inspect でウィンドウタイトル、composer、既存下書き、送信ボタンを確認する。
  4. Draft で本文を入力する。異なる既存下書きがあれば停止する。
  5. ready-for-user-send、DraftMatches=true、SendEnabled=true、SendActionPerformed=false を確認する。
  6. 必要なら -ScreenshotPath で現在画面を保存し、ユーザーへ送信操作を依頼して止める。

Commands

PowerShell 7 (pwsh) で実行する。

powershell
$script = '<skill-dir>/scripts/Set-TeamsDesktopDraft.ps1'

& $script -Mode Open `
  -RecipientDisplayName '<display-name>' `
  -RecipientEmail '<user@example.com>' `
  -ExpectedAccount '<signed-in-account@example.com>'

& $script -Mode Inspect `
  -RecipientDisplayName '<display-name>' `
  -RecipientEmail '<user@example.com>' `
  -ExpectedAccount '<signed-in-account@example.com>'

& $script -Mode Draft `
  -RecipientDisplayName '<display-name>' `
  -RecipientEmail '<user@example.com>' `
  -ExpectedAccount '<signed-in-account@example.com>' `
  -Message '<message>' `
  -ScreenshotPath 'output/teams-draft.png'

Failure Handling

  • Open 後に対象タイトルがまだ出ない場合は、同じ Draft を連打せず Inspect を1回行う。
  • UIA が composer を公開しない場合は未確認として止める。Web 版への自動迂回やアプリ再起動は行わない。
  • Draft の結果が曖昧なら再入力しない。現在値を Inspect で読み、同一本文か確認する。
  • アプリの foreground、入力欄 focus、送信ボタンの操作は完了条件に含めない。

Validation

powershell
& <skill-dir>/scripts/Test-TeamsDesktopDraft.ps1

実機テストは既存チャットを壊さないよう、Inspect を先に実行する。Draft は実際にユーザーへ見せる本文が確定している場合だけ使う。

Done Criteria

  • 対象表示名と期待アカウントがウィンドウタイトルで一致する
  • composer の下書きが要求本文と完全一致する
  • 送信ボタンが存在し有効である
  • SendActionPerformed=false で終了する
  • ユーザーへ「送信ボタンを押してください」と明示して停止する

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Teams Desktop Automation AI skill do?

Prepare and verify Microsoft Teams desktop chat drafts with Windows UI Automation, stopping before send. Use for Teamsチャット下書き, デスクトップTeams操作, 宛先確認, メッセージ入力, or when Teams Web/CDP is unavailable.

Why use Teams Desktop Automation on TypingMind?

Because you install it once and use it with any model. Teams Desktop Automation is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Teams Desktop Automation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/aktsmm/Agent-Skills/tree/master/teams-desktop-automation. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Teams Desktop Automation?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Teams Desktop Automation?

As many as you like. As long as a model supports skills, you can use Teams Desktop Automation with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Teams Desktop Automation AI skill free?

It is published on GitHub by aktsmm. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇