# exploring-mcp-intent-clusters

exploring-mcp-intent-clusters analyzes PostHog MCP agent intent clusters to reveal what agents attempt to do, tool failure patterns, and semantic routing competition.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 202 installs · ★ 101 repo stars
- Author: PostHog
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/PostHog/ai-plugin/tree/HEAD/skills/exploring-mcp-intent-clusters/SKILL.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/exploring-mcp-intent-clusters

## What it does

This skill inspects agent actions by grouping free-text `$mcp_intent` values into semantic goal clusters. Unlike standard call counts, it groups tasks via vector embeddings to highlight the actual objectives behind calls. Because embedding-based grouping cannot run in basic SQL, the skill retrieves precomputed snapshots via `posthog:mcp-analytics-intent-clusters-retrieve`.

Each cluster entry reveals error percentages, call volumes, and routing entropy. High entropy marks scenarios where agents search aimlessly across multiple tools for a single goal. The tool pivot additionally tracks description fit and tool overlap, pinpointing where vague documentation causes agents to pick competing tools.

When cluster metrics are missing or outdated, `posthog:mcp-analytics-intent-clusters-recompute` triggers an asynchronous background update. Session summaries are intentionally bypassed during grouping to keep call attribution precise.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill exploring-mcp-intent-clusters -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/exploring-mcp-intent-clusters/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/exploring-mcp-intent-clusters/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill exploring-mcp-intent-clusters -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/exploring-mcp-intent-clusters/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill exploring-mcp-intent-clusters -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/exploring-mcp-intent-clusters/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install PostHog/ai-plugin skills/exploring-mcp-intent-clusters
```

2. **Manually: put the files in place**
- File: `.github/skills/exploring-mcp-intent-clusters/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill exploring-mcp-intent-clusters -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/PostHog/ai-plugin --path skills/exploring-mcp-intent-clusters
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/exploring-mcp-intent-clusters/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill exploring-mcp-intent-clusters -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/PostHog/ai-plugin/tree/HEAD/skills/exploring-mcp-intent-clusters/SKILL.md

## When to use it
- group agent goals into semantic clusters using vector embeddings
- locate goal clusters suffering from elevated failure rates
- detect overlapping tools that agents confuse during execution
- evaluate whether tool descriptions match agent queries

## Example prompts
- Group recent agent intents and show which goals fail most often
- Inspect tool overlap and discoverability using `posthog:mcp-analytics-intent-clusters-retrieve`
- Trigger an async clustering snapshot refresh with `posthog:mcp-analytics-intent-clusters-recompute`

## Similar
- [exploring-llm-clusters](https://affpapa.org/en/nevibecode/skills/exploring-llm-clusters.md) — skill · 436 installs
- [exploring-autocapture-events](https://affpapa.org/en/nevibecode/skills/exploring-autocapture-events.md) — skill · 470 installs
- [build-clusters](https://affpapa.org/en/nevibecode/skills/build-clusters.md) — skill · 2100 installs
- [posthog-analytics](https://affpapa.org/en/nevibecode/skills/posthog-analytics.md) — skill · 827 installs
- [adding-analytics](https://affpapa.org/en/nevibecode/skills/adding-analytics.md) — skill · 410 installs
- [product-analytics-setup](https://affpapa.org/en/nevibecode/skills/product-analytics-setup.md) — skill · 285 installs

From the same set: [posthog/ai-plugin](https://affpapa.org/en/nevibecode/by/posthog/ai-plugin.md) — 82 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
