analyze-ai-topics
Analyzes what users ask AI agents about and how well each topic is served. Only use when the user has Amplitude Agent Analytics instrumented in their project…
от amplitude★ 50 звёзд на GitHub
Установить analyze-ai-topics в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
AI Topic Analyzer
You analyze what users ask AI agents about and how well each topic is served — surfacing underserved areas, coverage gaps, and product opportunities from conversation patterns. This is the product intelligence skill that turns AI session data into "what to build next" decisions.
Instructions
Step 1: Get Context and Schema
- Get context. Call
Amplitude:get_amplitude_contextto identify projects and user role. - Get AI schema. Call
Amplitude:get_amplitude_agent_analytics_infowithview: "schema"to discover available topic models, agent names, and classification values. The schema tells you what topic dimensions exist (e.g., product_area, intent, error_domain) — these vary by project. - Determine scope. If the user specifies an agent, time window, or focus area, narrow accordingly. Default: all agents, last 14 days (longer window gives more stable topic distributions).
Step 2: Map the Topic Landscape
Run these in parallel:
Topic breakdown with quality. Call
Amplitude:get_amplitude_agent_analytics_infowithview: "sessions"to retrieve sessions, then aggregate their evaluator results by topic into session count, average quality score, average sentiment, and failure rate. Limit the output to 50 topics. This is the core dataset.Agent-by-topic matrix. From the same session results, group locally by agent and topic, limiting the output to 100 rows. This shows which agents handle which topics — and where quality differs by agent for the same topic.
Volume trend by topic. Group the session results locally by day and topic. Combine this with the topic breakdown to understand whether total volume growth is driven by specific topics.
Failure sessions by topic. Call
Amplitude:get_amplitude_agent_analytics_infowithview: "sessions"andhasTaskFailure: true, then group the returned sessions locally by topic. This shows which topics have the most failures — a different signal from low quality (failures are hard stops, low quality is soft degradation).
Step 3: Identify Underserved Topics
Score each topic on a 2x2 of volume x quality:
| High Quality (>0.7) | Low Quality (<0.7) | |
|---|---|---|
| High Volume | Well-served (maintain) | Underserved (fix now) |
| Low Volume | Niche but working (monitor) | Gap or emerging (investigate) |
For each quadrant, identify the top 3-5 topics. The high volume + low quality quadrant is the priority — these are things users frequently ask about that the agents handle poorly.
Also flag:
- Growing topics: Topics with increasing volume over the time window. These may need better coverage soon even if quality is currently acceptable.
- Sentiment outliers: Topics where sentiment is notably lower than quality score. This means the agent technically completes the task but users aren't happy with the experience.
- Agent routing issues: Topics where one agent handles them well but another handles them poorly — suggesting a routing improvement.
Step 4: Deep-Dive into Top Underserved Topics (Budget: 3-6 calls)
For the 2-3 most impactful underserved topics:
Sample conversations. Select representative sessions for the topic from the evaluator results, then call
Amplitude:get_amplitude_agent_analytics_infowithview: "conversation"for 3-5 examples to understand:- What specifically are users asking?
- Where does the agent struggle — wrong answer, no answer, wrong tool, slow response?
- Are there sub-patterns within the topic?
Detailed failing sessions. Call
Amplitude:get_amplitude_agent_analytics_infowithview: "sessions"andhasTaskFailure: true, then select up to 5 sessions for the topic or with evaluator quality scores at or below 0.5. Read the enrichment data for failure reasons and rubric scores.Tool usage for the topic. Call
Amplitude:get_amplitude_agent_analytics_infowithview: "spans"for a few representative failing sessions to see which tools are involved.
Step 5: Synthesize into Product Insights
Transform the analysis into actionable product decisions.
Required sections:
Topic landscape summary (3-4 sentences): How many distinct topics, total session volume, overall quality distribution. Frame as "your AI agents handle X topics across Y sessions — here's what's working and what isn't."
Topic heatmap table — The core deliverable:
| Topic | Sessions | Quality | Sentiment | Failure Rate | Trend | Priority |
|-------|----------|---------|-----------|--------------|-------|----------|
| [topic] | [N] | [score] | [score] | [%] | [↑/↓/→] | [Fix/Monitor/Good] |
Sort by priority: Fix items first, then Monitor, then Good. Limit to top 15-20 topics.
- Underserved topics (2-4 findings): Each as a narrative paragraph:
- [Topic headline — what users are asking] — Volume (N sessions), quality score, what goes wrong (from conversation samples), which agent ha
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл analyze-ai-topics?
Analyzes what users ask AI agents about and how well each topic is served. Only use when the user has Amplitude Agent Analytics instrumented in their project. Use when the user asks "what are people asking the AI", "top AI topics", "where is the AI struggling", "AI coverage gaps", "what should we improve in our AI", or wants product insights from AI conversation patterns.
Как установить скилл analyze-ai-topics?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл analyze-ai-topics запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…