Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

analyze-ai-topics

FreeNo executable scriptsNot checked

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…

amplitudeby amplitude★ 50 GitHub stars

About this skill

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

  1. Get context. Call Amplitude:get_amplitude_context to identify projects and user role.
  2. Get AI schema. Call Amplitude:get_amplitude_agent_analytics_info with view: "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.
  3. 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:

  1. Topic breakdown with quality. Call Amplitude:get_amplitude_agent_analytics_info with view: "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.

  2. 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.

  3. 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.

  4. Failure sessions by topic. Call Amplitude:get_amplitude_agent_analytics_info with view: "sessions" and hasTaskFailure: 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:

  1. Sample conversations. Select representative sessions for the topic from the evaluator results, then call Amplitude:get_amplitude_agent_analytics_info with view: "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?
  2. Detailed failing sessions. Call Amplitude:get_amplitude_agent_analytics_info with view: "sessions" and hasTaskFailure: 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.

  3. Tool usage for the topic. Call Amplitude:get_amplitude_agent_analytics_info with view: "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:

  1. 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."

  2. 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.

  1. 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
Full SKILL.md on GitHub

Install analyze-ai-topics in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the analyze-ai-topics skill do?

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.

How do I install the analyze-ai-topics skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the analyze-ai-topics skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare analyze-ai-topics with