PluginWorks in Claude CodeCurrent
Amplitude
Use Amplitude as an expert analyst — instrument Amplitude, discover product opportunities, analyze charts, create dashboards, manage experiments, and understand users and accounts.
0
Try it
See what this would do for you. No sign-up needed.
Install in Claude Code
Run these in Claude Code, in order. The first adds the marketplace, the second installs the plugin.
Step 1
/plugin marketplace add anthropics/claude-plugins-official
Step 2
/plugin install amplitude@claude-plugins-official
Review commands before running them. Promptu never runs code on your machine or pushes changes to your repo.
What's inside
37 skills
- add-analytics-instrumentation
- analyze-account-health
- analyze-ai-topics
- analyze-chart
- analyze-dashboard
- analyze-experiment-consolidated
- analyze-experiment
- analyze-feedback
- build-charts-with-typed-params
- chart-link-analysis
- compare-user-journeys
- create-chart
- create-dashboard
- daily-brief
- debug-replay
- diagnose-errors
- diff-intake
- discover-analytics-patterns
- discover-event-surfaces
- discover-opportunities
- instrument-events
- investigate-ai-session
- live-data-forensics
Security scan
Passed
Promptu's text scan of the files it could read didn't match any known risky patterns. It doesn't run the plugin, and a clean scan doesn't mean the plugin is safe.
Automated pattern check of 40 file(s) found nothing risky. Not a full audit.
Details
# Amplitude Analysis and Instrumentation Plugin
> Use Amplitude MCP as an expert analyst, product manager, and instrumentation partner via chart creation, dashboard creation, chart analysis, dashboard reviews, experiment analysis, experiment monitoring, opportunity discovery, feedback synthesis, account health analysis, daily and weekly briefs, analytics instrumentation workflows, and more.
Works with **Claude Code**, **Cursor**, and **Claude CLI**.
---
## Installation
Claude Code: (CLI Application)
```bash
# Add the Amplitude marketplace (one-time)
/plugin marketplace add amplitude/mcp-marketplace
# Install this plugin
/plugin install amplitude@amplitude
```
Cursor:
- Go to cursor settings
- Click on Plugins
- Look for the Amplitude Analytics plugin
- Install the plugin
- You can test if the skills exist by typing /
- For the skills to work you need to have the amplitude MCP server
- You can add the MCP server to cursor by going to agent settings
- Agent settings -> Tools & MCP -> Add a new MCP server
- Add the following server to the config:
"amplitude-us": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp-server.prod.us-west-2.amplitude.com/v1/mcp"
]
}
- This should take you to the browser to complete the 0Auth flow
---
## What's Included
| Skill | What it does |
| ----- | ------------ |
| **analyze-account-health** | Summarize B2B account health – usage patterns, engagement trends, risk signals, expansion opportunities |
| **analyze-chart** | Deep dive into a specific chart to explain trends, anomalies, and likely drivers |
| **analyze-dashboard** | Synthesize dashboards into talking points, surface concerns, connect quant to qual |
| **analyze-experiment** | Design A/B tests, analyze running or completed experiments, interpret results with statistical rigor |
| **analyze-feedback** | Synthesize customer feedback into themes (requests, bugs, pain points, praise) |
| **create-chart** | Create Amplitude charts from natural language – event discovery, filters, groupings, visualization |
| **create-dashboard** | Build dashboards from requirements or goals – organize charts into logical sections with layouts |
| **daily-brief** | Deliver a concise daily briefing – metric anomalies, experiment updates, feedback, and deployment context from the last 1-2 days |
| **diff-intake** | Read a PR, branch, or file diff and produce a compact change brief for downstream analytics instrumentation planning |
| **discover-analytics-patterns** | Inspect the codebase for existing tracking wrappers, naming conventions, and analytics patterns before adding new events |
| **discover-event-surfaces** | Turn a change brief into concrete event candidates, priorities, and likely instrumentation points |
| **weekly-brief** | Deliver a weekly summary – week-over-week trends, wins, risks, inflection points, and strategic recommendations |
| **discover-opportunities** | Discover product opportunities by mining analytics, experiments, replays, and feedback — synthesized into RICE-scored, actionable recommendations |
| **instrument-events** | Convert priority events into a detailed, line-by-line instrumentation plan grounded in the target code |
| **add-analytics-instrumentation** | Run the full end-to-end instrumentation workflow for a PR, branch, file, or feature request |
| **taxonomy** | Provide broad tracking-plan governance, naming, metadata, and data-quality guidance |
| **tracking-plan-audit** | Identify evidence-backed event and event-property deletion candidates across telemetry, source code, ownership, dependencies, and tracking-plan branches |
| **monitor-experiments** | Monitor active and recently completed experiments, triage by importance, and deep-dive on the most impactful ones |
---
## Requirements
- **MCP-compatible client** – Claude Code, Cursor, or Claude
- **Amplitude MCP** – Required for data access
- **Node.js** – For MCP server
- **Amplitude account** – With API access
---
## Usage
**Just ask naturally** – skills auto-trigger based on your request:
```
"Analyze this chart: [URL]" → analyze-chart activates
"Review my KPI dashboard before the meeting" → analyze-dashboard activates
"What are customers saying about the new feature?" → analyze-feedback activates
"How healthy is Acme Corp's account?" → analyze-account-health activates
"Analyze the results of our onboarding experiment" → analyze-experiment activates
"Create a chart showing weekly active users" → create-chart activates
"Build a dashboard for our growth team" → create-dashboard activates
"Give me my daily download" → daily-brief activates
"Find product opportunities" → discover-opportunities activates
"Check on experiments" → monitor-experiments activates
"Instrument the checkout flow" → add-analytics-instrumentation activates
"Audit stale events; emitters are in ./web and ./api" → tracking-plan-audit activates
"What happened this week?" → weekly-brief activates
```
### Example Workflows
#### Chart Analysis
1. Share a chart URL: "Why did this metric spike last week?"
2. Skill retrieves chart data and identifies the pattern
3. Skill investigates likely drivers (experiments, deployments, segments)
4. You get a structured analysis with hypothesis and next steps
#### Dashboard Review
1. Ask: "Summarize this dashboard for my exec meeting"
2. Skill queries all charts and identifies patterns
3. Skill surfaces areas of concern and key takeaways
4. You get talking points with prioritized recommendations
#### Feedback Synthesis
1. Ask: "What are the top customer complaints this month?"
2. Skill retrieves feedback from all connected sources
3. Skill groups into themes with representative quotes
4. You get prioritized issues with actionable recommendations
#### Account Health Analysis
1. Ask: "Prepare an account review for Acme Corp before our QBR"
2. Skill analyzes usage trends, engagement, and user-level activity
3. Skill correlates behavioral data with customer feedback
4. You get a health score, risk factors, champions to leverage, and specific CS recommendations
#### Experiment Analysis
1. Ask: "Should we ship the new checkout flow experiment?"
2. Skill retrieves experiment configuration and results
3. Skill evaluates statistical significance, segment performance, and guardrail metrics
4. You get a ship/no-ship recommendation with confidence levels and business impact
#### Chart Creation
1. Ask: "Create a chart showing weekly AI feature users over the last 90 days"
2. Skill discovers relevant events and validates data availability
3. Skill builds the chart definition with proper filters and groupings
4. You get a working chart URL with explanation of methodology and initial insights
#### Dashboard Creation
1. Ask: "Build an executive dashboard for our product launch"
2. Skill clarifies audience, decisions, and review cadence
3. Skill finds existing charts and identifies gaps needing new charts
4. You get a structured dashboard with logical sections, appropriate layouts, and context
#### Daily Brief
1. Ask: "Give me my morning briefing" or "Anything I should know today?"
2. Skill discovers your dashboards, queries charts, checks experiments, feedback, and deployments
3. Skill identifies the biggest day-over-day changes and validates against false positives
4. You get a concise, narrative briefing with key findings and concrete priorities for today
#### Discover Opportunities
1. Ask: "Find me the biggest product opportunities" or "Where are we losing users in onboarding?"
2. Skill mines dashboards, funnels, experiments, feedback, and session replays for signals
3. Skill synthesizes findings into structured opportunities with RICE scoring and multi-source evidence
4. You get a prioritized list of actionable opportunities with specific recommendations and supporting data links
#### Experiment Monitor
1. Ask: "Check on experiments" or "What experiments are running?"
2. Skill scans all active and recently completed experiments across projects
3. Skill triages by importance — flagging stale decisions, long-running tests, and missing metrics
4. You get a portfolio summary with deep-dives on the most impactful experiments, including statistical analysis and ship/iterate/abandon recommendations
#### Weekly Brief
1. Ask: "Give me my weekly summary" or "What happened this week?"
2. Skill gathers week-over-week trends across dashboards, experiments, feedback, and deployments
3. Skill detects accelerating trends, inflection points, and new highs/lows over the trailing 4 weeks
4. You get a shareable memo with key findings, what's working, and next week's priorities
#### Analytics Instrumentation
1. Ask: "Instrument the onboarding flow" or "Run the full analytics instrumentation workflow on this PR"
2. Skill inspects the diff and existing tracking patterns in the codebase
3. Skill identifies the highest-value events and the exact handlers or callbacks where they belong
4. You get a prioritized event list plus a concrete instrumentation plan an engineer can implement
#### Tracking Plan Deletion Audit
1. Ask: "Audit stale events and properties in this project; all emitting code is in `./web`, `./api`, and `./mobile`"
2. The skill fully reads the tracking plan, telemetry, ownership, and dependencies, then searches every identified source root, including dynamic and generated instrumentation
3. You get confidence-ranked deletion candidates without property values, credentials, PII, or customer-sensitive payloads
4. The skill makes no tracking-plan change until you explicitly confirm the exact deletion; global orphan properties are swept and confirmed separately after event deletion
---
## MCP Configuration
The Amplitude MCP connection is required for the skills to access your Amplitude data. Configure it in your MCP client settings.
Get your API keys from: Amplitude → Settings → Projects → [Your Project] → API Keys
## skills/add-analytics-instrumentation/SKILL.md
---
name: add-analytics-instrumentation
description: >
End-to-end analytics instrumentation workflow for a PR, branch, file,
directory, or feature. Reads the code, discovers what events should be
tracked, and produces a concrete instrumentation plan — all in one shot. Use
this skill whenever a user wants to add analytics to a PR, asks "instrument
this PR", "add tracking to this branch", "what analytics does this file need",
"instrument the checkout flow", "run the full instrumentation workflow", or any
request that implies going from code changes to a tracking plan. Also trigger
when the user gives you a PR link, branch name, file path, or feature
description and mentions analytics, events, or instrumentation. This is the
main entry point for the analytics workflow — prefer it over calling the
individual steps (diff-intake, discover-event-surfaces, instrument-events)
separately.
---
# add-analytics-instrumentation
You are the orchestrator for the analytics instrumentation pipeline. Your job is
to figure out what the user wants to instrument, gather the relevant code, and
run the pipeline to produce a tracking plan.
## Pipeline
### Step 0: Capture intent
Before running anything, determine **what** the user wants to instrument. There
are four input types — infer the type from what the user has already provided in
the conversation. Only ask if it's genuinely ambiguous.
| Input type | How to recognize it | Example |
| -------------------- | ------------------------------------------------------------------------------ | --------------------------------------------------------------------------- |
| **PR** | A PR URL, PR number, or phrases like "this PR", "my PR" | `instrument PR #42`, `https://github.com/org/repo/pull/42` |
| **Branch** | A branch name or "this branch", "my branch", "current branch" | `instrument feature/checkout`, `add tracking to this branch` |
| **File / Directory** | A file path, directory path, or glob pattern | `instrument src/components/Checkout.tsx`, `add analytics to src/payments/` |
| **Feature** | A natural-language description of functionality, not a specific code reference | `instrument the onboarding flow`, `add tracking to the checkout experience` |
**Inference rules:**
- If the user provided a URL or `#number` → **PR**
- If the user provided something that looks like a branch name (contains `/`, no file extension, matches a git branch) → **Branch**
- If the user provided a path that exists on disk (file or directory) → **File / Directory**
- If none of the above match and the input is descriptive → **Feature**
- If the conversation already contains a PR link, branch name, or file path from earlier messages, use that instead of asking again
**If ambiguous**, ask the user:
> What would you like to instrument?
> 1. A specific file or directory
> 2. A PR
> 3. A branch
> 4. A feature (describe it and I'll find the relevant code)
Once you know the input type, proceed to the appropriate step:
- **PR or Branch** → go to Step 1 (diff-intake)
- **File / Directory** → go to Step 1a (direct file read)
- **Feature** → go to Step 1b (feature search)
### Step 1: diff-intake skill (PR or Branch)
Invoke the `diff-intake` skill with the user's PR or branch reference.
It produces a `change_brief` YAML block.
Capture the full YAML output — step 2 consumes it verbatim. Skip to Step 2.
### Step 1a: Direct file read (File / Directory)
Skip diff-intake entirely — there's no diff to analyze. Instead, build the
`change_brief` YAML yourself by reading the files directly.
1. **Resolve the input.** If a directory, find all source files in it (skip
tests, config, lock files, generated code). If a single file, just use that.
2. **Read each file** and summarize what it does — focus on user-facing behavior,
not implementation details.
3. **Scan for existing instrumentation** using the same patterns as diff-intake:
`track(`, `trackEvent(`, `logEvent(`, `amplitude.track(`, `ampli.`, and
analytics-related imports.
4. **Build the `change_brief` YAML** with `analytics_scope: high` (the user
explicitly asked to instrument these files, so assume they want tracking).
Set `primary: feat` and `classification.types: [feat]`. Populate
`file_summary_map` with each file's summary, layer, and existing
instrumentation.
Proceed to Step 2 with the YAML you built.
### Step 1b: Feature search (Feature)
The user described a feature in natural language. Your job is to find the
relevant code, then build a `change_brief`.
1. **Search git commit history** to find related commits. Use `git log --all --grep="<patterns>"`. This will find relevant commits. Then read the git commit body to understand the feature and relevant files. If the results are good, then proceed to generating the `change_brief` YAML
2. **Search the codebase** for files related to the described feature. Use a
combination of:
- Grep for keywords from the feature description (component names, route
paths, function names, domain terms)
- Glob for likely file paths (e.g., `**/checkout/**`, `**/onboarding/**`)
- Read route definitions, navigation configs, or index files to find entry
points
3. Build the `change_brief` YAML.
Proceed to Step 2 with the YAML you built.
### Step 2: discover-event-surfaces
Invoke the `discover-event-surfaces` skill, passing the `change_brief` YAML
from step 1.
It produces an `event_candidates` YAML block. If there are zero candidates,
stop and tell the user the change has user-facing impact but no events worth
instrumenting were identified.
If event_candidates is empty, stop here and tell the user there's nothing to
instrument.
Capture the full YAML output — step 3 consumes it.
### Step 3: instrument-events
Invoke the `instrument-events` skill, passing the `event_candidates` YAML from
step 2.
It produces a `trackingPlan` JSON with exact file locations, tracking code, and
property definitions for every critical (priority 3) event.
## Presenting the result
After step 3 completes, present the tracking plan to the user. Walk through each
event briefly:
- What it tracks and why it matters
- Which Amplitude project(s) it routes to (`appId`/`appIds`) — call this out when
the repo has an `.amplitude/instrumentation-agent.yaml` and events span more
than one project
- Where the tracking call goes (file + function)
- What properties it sends
Then ask if they want to adjust anything or proceed to implementation.
## Error handling
If any step fails (e.g., the PR doesn't exist, git commands error, no files to
analyze), surface the error clearly and stop. Don't try to continue with
incomplete data.
## skills/analyze-account-health/SKILL.md
---
name: analyze-account-health
description: Summarizes B2B account health by analyzing usage patterns, engagement trends, risk signals, and expansion opportunities. Use for customer success reviews, renewal preparation, QBRs, or account prioritization.
---
# Analyze Account Health
Deep-dive into a B2B account's product usage to prepare for QBRs, assess renewal risk, identify expansion opportunities, or prioritize CS outreach.
## Instructions
### Step 0: Identify Account & Discover Context
**Get the account identifier:**
- Company name, org ID, account ID, or group property value
- Ask user if not provided
**Search for existing work:**
Use `Amplitude:search_amp_entities` to find existing dashboards, charts, or notebooks for this account. If found, ask user if they want fresh analysis or to review existing.
**Resolve how accounts are modelled — do this before any query.**
Every step below breaks down "by account", and there are three different ways a
project represents one. Check in this order and reuse the answer throughout:
1. Use the connected catalog's group-type discovery capability. If the project
has a group type (commonly `org id` or `company`), that is the account. Read
its attributes from the active taxonomy reader's group-property surface,
then reference them with `scope: 'group'` plus `group_type`. To count
accounts rather than users, set `count_unique_by` to the group type.
2. If there is no group type, the account is usually a **user property**
(`company`, `org_name`) — `scope: 'user'`.
3. Failing both, an **event property** carrying the org (`org id`, `org url`).
If a group property comes back as `Invalid group property … for group type …`,
the query engine's registry is missing it — that is a platform gap, not a
naming mistake. Do not retry spelling variants. Fall back to the user- or
event-level equivalent from (2)/(3), and tell the user which representation you
used, since the numbers are not interchangeable.
---
### Step 1: Quick Health Triage
Use `Amplitude:query_amplitude_data` to run these queries in parallel:
**Usage Trend:**
- Event: `_active`, Metric: `uniques`, Group by: the account property resolved in Step 0 (with its scope)
- Time: Last 60 days, daily interval
- **Shows:** Activity increasing or decreasing?
**Engagement Quality:**
- Calculate DAU and MAU for account
- Get DAU/MAU ratio (stickiness)
- **Shows:** How engaged are active users?
**User Momentum:**
- Active user count week-over-week
- **Shows:** Team growing or shrinking?
**Classify Health:**
- **Healthy**: Growing MAU, DAU/MAU >40%, positive WoW
- **At-Risk**: Flat/declining MAU, DAU/MAU 20-40%, negative WoW
- **Critical**: Steep decline, DAU/MAU <20%, sustained negative WoW
---
### Step 2: User-Level Analysis
Use `Amplitude:query_amplitude_data` with user-level groupBy:
**Power Users:**
- Top 3-5 users by event volume (champions to leverage)
**Churned Users:**
- Users active in previous period but not current (retention risks)
**License Utilization:**
- Active users in last 30 days vs total seats
---
### Step 3: Feature Usage Analysis
Use `Amplitude:query_amplitude_data` grouped by events/features:
**Feature Breadth:**
- Which core features are being used (ask user for 5-10 key features)
- Adoption rate per feature
**Feature Trends:**
- Usage over last 90 days per feature
- Identify growing vs declining features
**Focus based on health:**
- **If At-Risk/Critical:** Find abandoned features (used 60-90 days ago, not in last 30)
- **If Healthy:** Find expansion opportunities (premium features not yet tried)
---
### Step 4: Account Feedback Analysis
**Get feedback sources:**
Use `Amplitude:use_amplitude_ai_feedback` with `facet: "sources"` to see what's available.
**Get feedback insights:**
Use `Amplitude:use_amplitude_ai_feedback` with `facet: "insights"` filtered by:
- ampId for each user in the account
- dateStart/dateEnd: Last 90 days
- types: `bug`, `painPoint`, `complaint`, `request`, `lovedFeature`
**Get specific mentions:**
For top 3-5 insights, use `Amplitude:use_amplitude_ai_feedback` with `facet: "mentions"` to get quotes.
**Correlate with behavior:**
- Complaint about Feature X? Query their usage of Feature X
- Request for Feature Y? Check if they hit limits Y would solve
- Praise for Feature Z? Validate they're heavy users of Z
---
### Step 5: Present Account Health Report
Structure output as follows:
# Account Health Report: [Account Name]
## Executive Summary
[2-3 sentences: Health score, key trend, primary recommendation]
## Health Score: [🟢 Healthy | 🟡 At-Risk | 🔴 Critical]
[One sentence rationale with key metric]
---
## Key Metrics
| Metric | Current | Trend | Status |
|--------|---------|-------|--------|
| MAU | X | ↑↓→ Y% | 🟢🟡🔴 |
| DAU/MAU | X% | ↑↓→ Y% | 🟢🟡🔴 |
| License Utilization | X% | ↑↓→ | 🟢🟡🔴 |
| Features Adopted | X/Y | ↑↓→ | 🟢🟡🔴 |
---
## 🚨 Risk Factors (if any)
1. **[Issue]** - [Impact]
- Usage data: [metric/trend]
- Customer feedback: [theme with X mentions] - [representative quote]
## ✅ Positive Signals
1. **[What's working]** - [Evidence from usage + feedback]
---
## 👥 User Intelligence
### Champions (Leverage)
- **[User ID/Name]**: [Activity summary] - *Action: [Specific CS recommendation]*
### At Risk (Engage)
- **[User ID/Name]**: [Last active date / declining pattern] - *Action: [Check-in recommendation]*
### Inactive (>30 days)
- [Count] users ([X]% of licenses)
---
## 💡 Top Pain Points & Requests
### Pain Points
1. **[Theme]** (X mentions)
- [Concise description]
- Evidence: [Behavioral data] + "[Quote]" - [Source, Date]
- *Action: [What to do]*
### Feature Requests
1. **[Theme]** (X mentions)
- [What they want]
- Evidence: "[Quote]" - [Source, Date]
- *Roadmap status: [On roadmap/Not planned/Considering]*
### What They Love ❤️
1. **[Feature]**: "[Quote]"
---
## 📊 Feature Adoption
**High Usage:** [Feature] - [X users] (↑Y%)
**Declining:** [Feature] - [X users] (↓Y%) - *Investigate*
**Untapped (Upsell):** [Premium feature] - Could solve [pain point]
---
## 🎯 Recommendations
### 🔥 This Week
1. [Specific action with user/contact name]
### 📅 This Month
1. [Strategic action with context]
### 💰 Expansion Opportunities
1. [Upsell signal with evidence]
---
## 📎 Details
- **Analysis Date:** [Date]
- **Timeframe:** [Last X days]
- **Confidence:** [High/Medium/Low based on data volume]
---
## Best Practices
- **Always name users** - CS needs who to contact, not aggregates
- **Connect feedback to behavior** - Validate complaints with usage data
- **Be specific in recommendations** - "Call Sarah about Feature X" not "improve engagement"
- **Show trends, not snapshots** - Direction matters more than point-in-time
- **Flag data gaps** - Note low volume, missing properties, or incomplete data
- **Prioritize by impact** - Focus on issues affecting multiple users or champions
## Common Patterns
**Churn Risks:**
- Champion churned + declining overall usage
- Multiple complaints about same issue + behavioral evidence of friction
- License utilization declining + negative feedback
**Expansion Signals:**
- Hitting plan limits (users, API, storage)
- Requests for premium features + high engagement
- New users being added + positive feedback
## skills/analyze-ai-topics/SKILL.md
---
name: analyze-ai-topics
description: >
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.
---
# 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.
3. **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 handles it, and what would fix it. Include example conversation excerpts to make it concrete.
4. **Coverage gaps** (1-2 findings): Topics where users are asking questions the agents can't answer at all. Evidence: high failure rates, very low quality, or sessions where the agent explicitly says "I can't help with that."
5. **Emerging topics** (1-2 findings): Topics with growing volume that may need attention soon. Include the growth rate and current quality.
6. **Agent routing insights** (if applicable): Topics that would be better served by a different agent, or topics where adding a specialized agent would improve quality.
7. **Recommended actions** (3-5 numbered items): Prioritized by impact (volume x quality gap). Examples:
- "Improve the Chart Agent's handling of retention queries — 340 sessions/week at 0.42 quality. Users ask for cohort retention but get event trends. Add retention chart type detection to the agent's routing."
- "Create a dedicated onboarding agent — 'getting started' topics span 3 agents with inconsistent quality (0.38-0.72). A single agent with onboarding context would unify the experience."
- "Add better error messages for unsupported query types — 89 sessions/week hit 'I can't do that' dead ends. At minimum, suggest what the user should try instead."
8. **Follow-on prompt**: "Want me to deep-dive into a specific topic, investigate the failing sessions for [top underserved topic], or build a monitoring dashboard for AI topic quality?"
**Writing standards:**
- Lead with the user impact, not the data
- Use conversation excerpts to make abstract topics concrete
- Quantify everything — "340 sessions/week" not "many sessions"
- Every finding needs an action
- Keep the full report under 800 words (topic analysis tends to be richer than operational reports)
## Examples
### Example 1: Full Topic Analysis
User says: "What are people asking our AI about?"
Actions:
1. Get context and AI schema
2. Query topic breakdown, agent-by-topic matrix, volume trends, and failures by topic (4 parallel calls)
3. Score topics on the volume x quality matrix
4. Deep-dive into top 2-3 underserved topics with conversation search and detailed sessions
5. Present the topic heatmap with underserved findings and recommendations
### Example 2: Focused Gap Analysis
User says: "Where is our AI falling short?"
Actions:
1. Get context and schema
2. Query topics and failures — focus on low quality and high failure rate topics
3. For each underserved topic, search conversations to understand the failure mode
4. Present findings organized by severity with concrete fix recommendations
### Example 3: Agent-Specific Topic Review
User says: "What topics does the Chart Agent handle, and how well?"
Actions:
1. Get context, then query sessions grouped by topic for that agent specifically
2. Compare the agent's topic quality scores against the fleet average
3. Deep-dive into the agent's worst topics
4. Present a focused report on that agent's topic coverage
## Troubleshooting
### No topic enrichment data
Topics require session enrichment to be enabled. If topics are empty, use `get_amplitude_agent_analytics_info` with `view: "sessions"` to sample sessions, then `view: "conversation"` to manually categorize common themes. Note the limitation and suggest enabling enrichment.
### Too many topics (>50)
Group similar topics and present the top 20 by volume. Offer to drill into specific clusters on request.
### Topics are too generic
If topic labels are broad (e.g., "data question", "help request"), the enrichment model may need tuning. Note this and use conversation search to identify more specific sub-topics manually.
## skills/analyze-chart/SKILL.md
---
name: analyze-chart
description: Performs deep analysis of a specific Amplitude chart to explain trends, anomalies, and likely drivers. Use when a metric looks unusual, investigating a spike or drop, or understanding the "why" behind numbers.
x-amp-exclude-when-flags: [mcp-consolidate-charts]
---
# Chart Deep Dive
## When to Use
- A metric spiked or dropped unexpectedly
- You need to understand what’s driving a trend
- Preparing a detailed, evidence-backed analysis for stakeholders
- Investigating differences between user or event segments
## Instructions
### Step 0: Identify the Chart
- Accept a chart **URL or chart ID**
- If the user provides a URL, use `Amplitude:get_from_url` to extract the chart ID
- If no chart identifier is provided, ask explicitly for the chart URL or ID and stop
---
### Step 1: Retrieve and Validate Chart Data (Mandatory)
- Use **Reading chart data** to retrieve the chart definition and data
- If chart data cannot be retrieved or is empty, **do not proceed**
- Explain what’s missing (time range, event, filters, permissions)
- Ask the user to correct the chart or provide a valid chart
Capture and restate:
- Metric being measured
- Time range and granularity
- Chart type (e.g. time series, funnel, retention)
- Existing filters, segments, or breakdowns
---
### Step 2: Identify the Pattern and Change Window
Use **Analyzing chart** to characterize what’s happening:
- **Spike / Drop**: Sudden change on specific date(s)
- **Trend**: Gradual increase or decrease over time
- **Seasonality**: Recurring weekly or monthly patterns
- **Anomaly**: Deviation from recent baseline or historical behavior
Explicitly identify:
- The **window of change** (start/end)
- Direction and magnitude of the change
- Baseline period used for comparison (default: previous equal-length period)
---
### Step 3: Investigate Likely Drivers (Bounded)
Instead of broad slicing, use **guided segmentation**:
1. Use **Finding the right event properties** to identify the most relevant properties for explaining the change
2. Select **up to 9 high-signal properties** (e.g. platform, country, plan, version)
3. Re-run **Analyzing chart** with these properties in mind to determine:
- Which segments contribute most to the change
- Whether the pattern is localized or broad-based
- Only fetch up to 3 charts at a time when using `Amplitude:query_charts`
Avoid testing more than 9 properties in aggregate unless the user explicitly asks for deeper exploration.
---
### Step 4: Correlate with Context (Required for Anomalies)
For spikes, drops, or unexpected shifts, gather contextual signals in the same timeframe:
- Use **Getting experiments** to identify active experiments or flags
- Use **Getting deployments** to identify releases or rollouts
- Use **Searching for content** to surface annotations or relevant documentation
- Use `Amplitude:get_feedback_insights` to search customer feedback trends that might explain the change
- Use `Amplitude:get_feedback_mentions` to pull in specific customer mentions if there's a likely feedback trend tied to what's being explained.
Determine whether any contextual changes align temporally with the chart pattern.
---
### Step 5: Synthesize Findings
Present a structured, decision-ready analysis:
1. **What Happened**
Clear description of the observed pattern and magnitude
2. **When**
Exact timeframe and comparison baseline
3. **Primary Hypothesis**
Most likely explanation based on chart data and contextual signals
4. **Supporting Evidence**
- Key metrics
- Segment contributions
- Relevant experiments, deployments, or annotations
5. **Alternative Explanations**
1–3 plausible alternatives and why they are less likely
6. **Impact**
Quantify impact where possible (users, events, conversion, revenue proxy)
7. **Recommended Next Step**
One clear follow-up action (e.g. deeper segment, experiment review, instrumentation check)
Always include:
- Chart name
- Chart ID
- Link back to the chart
- Coverage (e.g. properties tested, segments analyzed)
---
## Best Practices
- Always compare against a clear baseline period
- Distinguish **observations** from **hypotheses**
- Prefer high-signal segmentation over exhaustive slicing
- Note data quality issues (low volume, incomplete periods, heavy “(none)” values)
- Do **not** create or edit charts unless the user explicitly asks
## skills/analyze-dashboard/SKILL.md
---
name: analyze-dashboard
description: Deeply analyze Amplitude dashboards by analyzing key charts, surfacing top areas for concern and takeaways, identify anomalies, then explain changes using customer feedback trends
---
# Analyze Dashboard
## When to Use
- Meeting prep: Synthesize a dashboard into talking points before a review or exec meeting
- Cross-chart pattern detection: Spot correlations across multiple charts that are hard to see manually
- Dashboard investigation: A key number moved in a chart within this dashboard and you want to explain why
- Connecting quant to qual: Understand if user feedback explains the trends you're seeing
- Onboarding to unfamiliar dashboards: Get up to speed on what a dashboard tracks and its current state
## Instructions
### Step 0: Identify the Dashboard ID
If the user gives a URL, use `Amplitude:get_from_url` to get the dashboard ID
### Step 1: Retrieve the Dashboard
Use `Amplitude:use_amp_dashboards` with `action: "get"` and the dashboard ID to get the full structure and chart IDs.
### Step 2: Query All Charts
Use `Amplitude:get_amplitude_charts` with `include: "data"` to fetch data for up to 3 charts at a time. Prioritize:
1. Primary KPI charts (usually at the top)
2. Charts with recent changes
3. Trend-based visualizations
### Step 3: Analyze Patterns
When analyzing charts, focus on the most decision-relevant signals for each type:
- KPI tiles: Context (timeframe, user type) and % change if shown.
- Line / Time series: Trends, slope changes, or notable events (not right-edge noise).
- Funnel: Major drop-off steps or unexpected retention. Use conversion framing (solid bars), not dropoff framing, unless explicitly relevant.
- Bar / Categorical: Concentrations, gaps, or surprising distributions.
- Stacked area: Total volume shifts and chan

