本文へ移動
cccskills
無料GitHub で公開

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.

インストール方法を見る

含まれるファイル(5)

  • SKILL.md4.2 KB
  • LICENSE.txt264 B
  • scripts/Set-TeamsDesktopDraft.ps16.4 KB
  • scripts/Test-TeamsDesktopDraft.ps11.8 KB
  • skill-license.json712 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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) で実行する。

$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

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

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

Done Criteria

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

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

agentic-workflow-guide

無料日本語概要

Design, review, and debug agent workflows, and decide when a request should use a prompt, instruction, skill, agent, or hook before escalating to multi-agent design. Use for .agent.md / .instructions.md / .prompt.md / AGENTS.md work, workflow architecture, orchestration planning, scheduled automation model allocation, or when agent workflows may be overkill. Triggers on 'agent workflow', 'create agent', 'automation models', 'ワークフロー設計', 'orchestrator'.

aktsmm/Agent-Skills262026年10月12日 更新

Design, run, and review fair performance, token, and cost comparisons across GitHub Copilot CLI, Codex CLI, and direct model APIs. Use for AI CLI benchmark, Copilot vs Codex, prompt-cache diagnosis, cache read/write analysis, fresh-process latency measurement, token-cost comparison, or when a benchmark must separate provider caching from local CLI caches.

日本語の概要は準備中です。原文の説明を表示しています。

aktsmm/Agent-Skills262026年10月12日 更新

Analyze historical VS Code GitHub Copilot Chat sessions by model, reasoning effort, AIU, time, reliability, workflow behavior, and external quality evidence, or safely prune workspace-scoped local chat history by age. Use for session analysis, repeated-task retrospectives, model evaluation, cost/performance analysis, and old session cleanup.

日本語の概要は準備中です。原文の説明を表示しています。

aktsmm/Agent-Skills262026年10月12日 更新

animated-infographic

無料日本語概要

Create reproducible animated infographic GIFs from structured data or measured results, with audience-language labels, explicit timing semantics, representative-frame QA, and a static fallback. Use when asked for GIF生成, animated infographic, 動的インフォグラフィック, 結果が流れる図, animated benchmark, or a blog/SNS animation whose displayed metrics must remain traceable to source data.

aktsmm/Agent-Skills262026年10月12日 更新

archify

無料日本語概要

Create polished, validated architecture, workflow, sequence, data-flow, and lifecycle/state diagrams as explorable standalone HTML with inline SVG, dark/light themes, optional trace motion, and PNG/JPEG/WebP/SVG/WebM export. Accept plain-language requirements or pasted Mermaid flowchart, sequenceDiagram, and stateDiagram input; inspect repository evidence when the diagram must reflect real code. Use when the user asks to visualize system architecture, infrastructure, cloud/security/network topology, technical workflows, API call sequences, request lifecycles, data pipelines, ETL/ELT, data lineage, state machines, or to convert/beautify Mermaid. Also use for Archify, interactive or animated HTML diagrams, インタラクティブ図, 動く構成図. When an editable .drawio file is required, use the draw.io workflow instead and treat Archify HTML only as a supplement.

aktsmm/Agent-Skills262026年10月12日 更新

ascii-banner

無料日本語概要

Generate ASCII-art text banners for terminals, READMEs, and CLI startup messages. Use when a user asks for an ASCII banner, text art, バナー, アスキーアート, or a decorative header for a script/README.

aktsmm/Agent-Skills262026年10月12日 更新

aktsmm のスキルをすべて見る

このスキルの問題を報告する