Teams Monitorのロゴ

Teams Monitor

コミュニティ
tamirdresher
teams-monitor

WorkIQを使ってMicrosoft Teamsのチャネルを監視し、Squad宛ての対応が必要なメッセージを検出してGitHubのIssueに連携します。

Add to TypingMind

概要

公開者tamirdresher
リポジトリsquad-skills
スキル名teams-monitor
スター
44
フォーク
9
同梱ファイル
2
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    tamirdresherがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Teams Monitor」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/tamirdresher/squad-skills/tree/main/plugins/teams-monitor
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/tamirdresher/squad-skills.git /tmp/squad-skills
mkdir -p .claude/skills
cp -r /tmp/squad-skills/plugins/teams-monitor .claude/skills/teams-monitor
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでTeams Monitorを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にTeams Monitorを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Teams Monitorは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Context

The squad has two-way Teams communication:

  • READ: WorkIQ (workiq-ask_work_iq) reads Teams messages
  • SEND: Teams Incoming Webhook sends messages to Teams

The webhook URL is stored as an environment variable TEAMS_WEBHOOK_URL or can be invoked directly via Invoke-RestMethod.

Sending Messages to Teams

The webhook URL is stored at C:\Users\tamirdresher\.squad\teams-webhook.url (NOT in the repo — it's a secret).

To send a message to Teams, read the URL from that file and POST:

powershell
$webhookUrl = Get-Content "$env:USERPROFILE\.squad\teams-webhook.url" -Raw
$body = @{ text = "Your message here" } | ConvertTo-Json
Invoke-RestMethod -Uri $webhookUrl.Trim() -Method Post -ContentType "application/json" -Body $body

IMPORTANT: Never hardcode the webhook URL. Always read from ~\.squad\teams-webhook.url.

Trigger

  • Scheduled (Primary): Runs every 20 minutes via Ralph's loop using .squad/schedule.json and Squad Scheduler (task ID: teams-message-monitor)
  • Session start: Any agent session can run the Teams check as part of initialization
  • On-demand: Any agent can invoke this skill when asked to "check Teams"

The scheduled check uses the script at .squad/scripts/teams-monitor-check.ps1 which is dispatched by the Squad Scheduler engine.

Workflow

Step 1: Query WorkIQ for Recent Messages

Run targeted WorkIQ queries to find messages relevant to the squad. Use the workiq-ask_work_iq tool with questions like:

"What messages were sent in the last 24 hours in Teams channels related to DK8S, idk8s, or Defender Kubernetes?"
"Are there any recent Teams messages from Tamir Dresher or the DK8S team mentioning squad, AI agents, research, or action items?"
"What are the most recent Teams messages in channels I'm part of that mention infrastructure analysis, Aurora, ConfigGen, or fleet management?"

Adapt queries to the squad's active work. Check decisions.md and open GitHub issues for current topics, then query for those topics specifically.

Step 2: Filter for Actionable Content

Not every Teams message is actionable. Look for:

  • Direct requests: "Can you look into...", "We need...", "Please investigate..."
  • Questions awaiting answers: "Has anyone figured out...", "What's the status of..."
  • Decisions or announcements that affect squad work: policy changes, priority shifts, new requirements
  • Mentions of squad-related keywords: squad, agent, Picard, research, analysis
  • Escalations or incidents: Sev2, outage, breaking change, urgent

Ignore:

  • Social/casual messages
  • Messages the squad has already processed (check existing GitHub issues for duplicates)
  • Automated notifications (build results, PR notifications — these are already in GitHub/ADO)

Step 3: Create GitHub Issues

For each actionable item, create a GitHub issue with:

  • Title: [Teams Bridge] <concise summary of the request>
  • Labels: teams-bridge, plus any relevant domain labels
  • Body must include:
    • Source: who said it, approximate when, which channel/thread (as reported by WorkIQ)
    • The actual request or question, quoted
    • Any context or urgency indicators
    • ---
    • 🔗 Bridged from Teams via WorkIQ by teams-monitor skill
    • 📅 Detected: <timestamp>

Step 4: Deduplicate

Before creating an issue, search existing GitHub issues for:

  • Similar title text
  • The teams-bridge label
  • Recent issues (last 7 days) covering the same topic

If a match is found, add a comment to the existing issue instead of creating a duplicate.

Step 5: Log Activity

After each check, log what was found (or that nothing was found) so the team knows monitoring is active. This can be a brief note in the orchestration log or session output.

Queries Reference

These are starting-point queries. Agents should adapt based on current squad context:

PurposeWorkIQ Query
General channel check"What recent Teams messages mention DK8S, squad, or AI agents?"
Tamir's directives"What did Tamir Dresher say recently in Teams about priorities or action items?"
Incident awareness"Are there any recent Teams messages about outages, Sev2 incidents, or urgent issues related to Kubernetes or DK8S?"
Meeting follow-ups"What action items came out of recent DK8S team meetings?"
Topic-specific"Any recent Teams discussion about [current topic from decisions.md]?"

Limitations

  • Read-only: WorkIQ cannot post to Teams. Responses must go through GitHub issues/comments
  • Query freshness: WorkIQ results may have indexing delay (typically minutes, occasionally hours)
  • No real-time streaming: This is poll-based, not event-driven. Messages may be picked up with delay
  • Channel visibility: WorkIQ can only see channels the authenticated user has access to
  • No thread-level precision: WorkIQ may not distinguish individual thread replies — treat results as approximate
  • First implementation: Confidence is LOW. Expect iteration on query patterns, filtering heuristics, and deduplication logic

Anti-Patterns

  • Spamming WorkIQ: Don't run queries more than once per session or per Ralph cycle. Rate-limit yourself
  • Creating issues for everything: Be selective. Not every Teams message is an action item
  • Ignoring duplicates: Always check for existing issues before creating new ones
  • Hardcoding channel names: Channels change. Use topic-based queries, not channel-name queries
  • Treating WorkIQ as real-time: It's indexed search, not a live feed. Design for eventual consistency

Future Evolution

  1. Confidence → medium: After 2-4 weeks of operation, tune queries and filters based on false positive/negative rates
  2. Bidirectional bridge: When Teams bot or webhook becomes available, extend to push GitHub activity summaries to Teams
  3. Smart prioritization: Use message sentiment, sender role, and keyword urgency to auto-prioritize bridged issues
  4. Channel-specific profiles: Build per-channel query templates as the team learns which channels matter most

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Teams Monitor」では何ができますか?

WorkIQを使ってMicrosoft Teamsのチャネルを監視し、Squad宛ての対応が必要なメッセージを検出してGitHubのIssueに連携します。

TypingMindでTeams Monitorを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Teams Monitorはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにTeams Monitorをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/tamirdresher/squad-skills/tree/main/plugins/teams-monitorを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Teams Monitorを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Teams Monitorで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもTeams Monitorを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Teams Monitor」は無料ですか?

はい。tamirdresherがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇