exploring-mcp-intent-clusters
できること
このスキルは、AIエージェントがMCPサーバーを通じて達成しようとしている目的を、似た目的ごとにまとめ、各グループのエラー率とともに示します。MCPサーバーを運用し、人々がそれを何に使っているかを知りたい人向けです。
使う場面
- ✓AIエージェントがMCPサーバーで何をしようとしているかを知りたいとき。
- ✓どのエージェントの目的が最も失敗しやすいかを見つけたいとき。
- ✓どのMCPツールがある目的に対応しているか、エージェントがそれを見つけやすいかを知りたいとき。
スキルのリンク
https://github.com/PostHog/posthog/blob/master/products/mcp_analytics/skills/exploring-mcp-intent-clusters/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“エージェントは私のMCPサーバーで何をしようとしていますか?どの目的が最も失敗していますか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
保存された、グループ化されたエージェントの目的のスナップショットを使います。各目的には、ツール、呼び出し数、エラー率が含まれます。新しい再計算を依頼することもでき、それはバックグラウンドで実行されます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Exploring MCP intent clusters
Intent clustering takes the free-text $mcp_intent values agents attach to
their tool calls, embeds them, and groups semantically similar goals into
clusters. Attribution is per call: each call is credited to its own intent
(calls without one inherit the most recent prior intent in the same session),
so a tool's counts reflect the intent it actually served. Each cluster carries
its tool distribution, call counts, and error rates — answering "what are
people trying to do, and does it work?" rather than "which tool was called".
The snapshot also carries a tool-centric pivot answering the reverse question:
for a given tool, which intents drive its usage, how often do agents find it,
and who does it compete with.
Unlike tool quality and sessions (which ultimately aggregate $mcp_tool_call),
clustering needs embeddings and is not expressible in SQL. It is served by
two typed tools backed by a stored snapshot.
Tools
| Tool | Purpose |
|---|---|
posthog:mcp-analytics-intent-clusters-retrieve |
Fetch the latest cluster snapshot for the project |
posthog:mcp-analytics-intent-clusters-recompute |
Trigger an async recompute of the snapshot |
Workflow: read the current clusters
posthog:mcp-analytics-intent-clusters-retrieve
{}
Returns a snapshot with status, last_computed_at, computed_with (the
embedding model, clustering parameters, and sample-coverage percentages), a
clusters array, a tools array (the tool pivot), and tool_overlaps. Each
cluster has a label, intent_count, call_count, error_count,
error_rate_pct, routing_entropy, a tool_distribution (which tools that
goal routes to, with per-tool error rates), sample_intents, plus switches
(errored call immediately followed by a different tool for the same intent —
the strongest "agents mix these tools up" evidence) and self_retries
(errored call immediately retried with the same tool — a sign the tool's
error messages aren't helping agents self-correct).
Read clusters by call_count for "what are agents mostly doing", or by
error_rate_pct for "which goals are failing" — a high error rate on a cluster
points at a class of agent goals the tools serve badly.
routing_entropy is how spread-out a cluster's tool usage is: low entropy means
one goal reliably maps to one tool; high entropy means agents are casting around
for the right tool for that goal (often a missing-capability signal).
Workflow: answer "is my tool discoverable?" from the tool pivot
Each entry in tools carries:
clusters— the intent clusters the tool serves, each withcapture_pct(its share of the cluster's calls),rank,top_competitor(the strongest other tool and its share), anddescription_fit(cosine similarity between the tool's description and the cluster centroid; null until descriptions are captured). Entries carry onlycluster_id, not the cluster's own label or totals — join them against the top-levelclustersarray on that idn_clusters_served— how many clusters the tool serves in total. The entry list above is capped, so compare the two before saying "this tool serves N intents"discovery_rate_pct— of the sampled sessions whose$mcp_tools_listcatalog advertised the tool, the share that actually called it; null when the tool was advertised in fewer than 5 sampled sessionscontested_score— call-weighted mean entropy of its clusters: how often its intents are split with other tools
High description_fit with low capture_pct is the discoverability failure:
agents should find the tool for that intent but pick something else. Low fit
with high capture means the description undersells what the tool actually does.
tool_overlaps lists pairs competing for the same intents; use
sessions_with_both vs sessions_with_either to separate workflows (used
together) from confusion (one or the other).
Read coverage before quoting numbers: computed_with.sampled_sessions /
session_coverage_pct say how much of the window the corpus represents, and
advertisement_coverage_pct bounds what discovery rates can see. Only sessions
with an observed tools-list catalog enter discovery denominators, and sessions
in exec-wrapper mode advertise only the wrapper, so p
よくある質問
目的はどこから来ますか?
エージェントが各ツール呼び出しに付ける意図から来ます。そのため、各呼び出しは独自の目的のもとで数えられます。
グループを必要なときに更新できますか?
はい。スナップショットの再計算を開始でき、非同期で実行されます。
ツールの品質と同じものですか?
いいえ。ツールの品質は各ツールのエラーと速度を見ますが、このスキルは呼び出しの背後にある目的をグループ化します。
詳細
作者による元の説明
Explore PostHog MCP intent clusters — agent goals grouped by semantic similarity, with each cluster's tool distribution and error rates, plus the tool-centric pivot (capture rate per intent, discovery rate against the advertised catalog, description fit, tool overlaps). Use when the user asks "what are agents trying to do with the MCP?", "group the intents", "which goals fail most?", "what does each cluster route to?", "when agents have this intent do they find my tool?", "which tools get mixed up?", wants to recompute the clustering, or pastes an MCP analytics intent-clustering URL.
repo: PostHog/posthog
人気
- GitHubのスター
- 41k
- ランキング
- #6890
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
depot-ci
41kエージェントが、GitHub Actionsの代替であるDepot CIのワークフローを設定し実行できるよう支援します。既存のワークフローの移行や、実行ログの確認も含みます。
depot-container-builds
41kエージェントが、Depotのリモート・ビルダーでDockerイメージを作れるよう支援します。マルチプラットフォームのイメージ、レジストリへのプッシュ、ビルド失敗の修正を含みます。
depot-github-runners
41kエージェントが、GitHub Actionsのジョブを Depot が管理するランナーに移し、ランナーのサイズとラベルを選び、ランナー設定の問題を解決できるよう支援します。
editing-agents-md
41kエージェントが、AGENTS.mdとCLAUDE.mdのどちらにルールを書くべきかを判断し、ファイルを膨らませずに守られやすい形で書けるよう支援します。
似ているスキル
mcporter
394kHTTPまたはstdioでMCPサーバーとそのツールを一覧表示、呼び出し、確認し、サインイン設定を管理するようエージェントを支援します。
fastmcp
260kPythonで、AIアシスタントがAPI、データベース、ファイルをツールとして利用できるMCPサーバーを作成、テスト、デプロイするのを支援します。
mcp-oauth-remote-gateway
260kHermesがサーバー上で動いている場合に、リモートのMCPサーバーのOAuthサインインを手動で完了させ、トークンを保存します。