analyze-ai-topics
Skill0 starsChanged 8 months agoMITView on GitHub
Analyze user inquiries to AI agents, identify topic coverage gaps, and prioritize improvements. Uses mcp__Amplitude__query_amplitude_data, mcp__Amplitude__get_feedback_insights, mcp__Amplitude__get_feedback_mentions.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- rittmananalytics/wire-plugintheir own version, first seen Jun 10, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- rittmananalytics/wire-plugin★ 9same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository190 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- accessibility-auditSkill
- accessibility-complianceSkill
- ado-api-cliSkill
- ado-artifactsSkill
- ado-container-deploymentsSkill
- ado-organizationSkill
- ado-pipeline-designSkill
- ado-pipeline-optimizationSkill
- ado-pipeline-securitySkill
- ado-pipelines-opsSkill
- ado-release-managementSkill
- ado-security-policiesSkill
- ado-work-trackingSkill
- adr-writingSkill
- agentic-ai-patternsSkill
- agentic-evalSkill
- agentic-memorySkill
- agentic-reliabilitySkill
- agentic-securitySkill
- ai-data-moatSkill
- ai-harnessSkill
- ai-product-designSkill
- ai-product-monetizationSkill
- ai-product-positioningSkill
- ai-product-retentionSkill
- ai-product-validationSkill
- ai-safety-guardrailsSkill
- add-analytics-instrumentationSkill
- analyze-account-healthSkill
- analyze-chartSkill
- analyze-dashboardSkill
- analyze-experimentSkill
- analyze-feedbackSkill
- compare-user-journeysSkill
- create-chartSkill
- create-dashboardSkill
- daily-briefSkill
- debug-replaySkill
- diagnose-errorsSkill
- diff-intakeSkill
- discover-analytics-patternsSkill
- discover-event-surfacesSkill
- discover-opportunitiesSkill
- instrument-eventsSkill
- investigate-ai-sessionSkill
- monitor-ai-qualitySkill
- monitor-reliabilitySkill
- replay-ux-auditSkill
- review-agent-insightsSkill
- taxonomySkill
- weekly-briefSkill
- what-would-lenny-doSkill
- analytics-reportingSkill
- api-contract-testingSkill
- api-designSkill
- authentication-patternsSkill
- blockchain-auditSkill
- brainstormingSkill
- brand-voiceSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
After launching a new AI feature: is it being used as intended?
- Distinctive: line 15
When user satisfaction scores for the AI are declining — need to diagnose which topic types are failing
- Distinctive: line 54
If raw message text is available:
- Distinctive: line 56
Look for question patterns: "how do I...", "can you help me...", "what is...", "why does..."
- Distinctive: line 59
If only categorized events are available:
- Very specific: line 60
Use event properties like intent_category, topic, workflow if they exist
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Analyze AI Topics
When to Use
- Your product has an LLM-powered assistant, chatbot, or AI agent that users interact with
- AI response quality seems inconsistent and you need to understand why
- Planning what to add to the AI's system prompt or knowledge base — need evidence-based prioritization
- Monthly AI product review: what topics are users actually asking about?
- After launching a new AI feature: is it being used as intended? What unexpected use cases emerged?
- When user satisfaction scores for the AI are declining — need to diagnose which topic types are failing
Core Jobs
1. Pull AI Interaction Events for Target Period
Query AI interaction event data for the analysis window:
mcp__Amplitude__query_amplitude_data:
events: [ai_message_sent, ai_session_started, ai_response_received, ai_feedback_submitted]
time_range: last 30 days
metrics: [session_count, unique_users, avg_messages_per_session]Also query:
mcp__Amplitude__get_feedback_insights:
filter: source = ai_assistant
time_range: last 30 daysBaseline metrics to establish:
- Total AI sessions in period
- Total unique users interacting with AI
- Average session length (messages per session)
- Overall satisfaction rating (thumbs up/down, star rating, or CSAT)
2. Extract User Intents / Questions
From the AI interaction events, extract what users are actually asking:
Sources of intent data:
- User message text (if stored as an event property:
user_message,query,prompt) mcp__Amplitude__get_feedback_mentions— user feedback that names specific topics- Session replay events showing the AI conversation flow
- Conversation tags if your system categorizes them
Intent extraction approach: If raw message text is available:
- Group semantically similar messages (same intent, different wording)
- Look for question patterns: "how do I...", "can you help me...", "what is...", "why does..."
- Identify commands: "summarize", "create", "update", "find", "explain"
If only categorized events are available:
- Use event properties like
intent_category,topic,workflowif they exist - Fall back to feedback categories from
get_feedback_insights
3. Cluster into Topics (5-15 Topic Clusters)
Organize extracted intents into meaningful topic clusters:
Target: 5-15 clusters — too few loses precision, too many loses actionability.
Example cluster output:
Topic Clusters (from 2,847 AI sessions):
1. Account & Billing (18% of sessions)
- How to upgrade/downgrade plan
- Invoice and payment questions
- Password reset and account access
2. Feature How-To (31% of sessions)
- How to use specific product features
- Step-by-step task guidance
- Setting configuration help
3. Data & Reporting (22% of sessions)
- Generate reports / export data
- Interpret dashboard metrics
- Data integration questions
4. Troubleshooting (14% of sessions)
- Error messages and what they mean
- Feature not working as expected
- Performance issues
5. General Product Questions (9% of sessions)
- What can this product do?
- Comparison to alternatives
- Roadmap and feature requests
6. Off-Topic / Out of Scope (6% of sessions)
- General knowledge questions
- Requests outside product scope4. Score Each Topic: Volume, Success Rate, Satisfaction, Deflection
For each topic cluster, calculate 4 key metrics:
Volume: Sessions in this topic / total sessions (already done above)
Success rate: Sessions where user achieved their goal / sessions in this topic
Proxies for success (in order of reliability):
- User explicitly rated response positively
- Session ended without escalation to human
- User executed the action after getting AI guidance (e.g., navigated to the feature, completed the task)
- Session length was short with positive feedback (got answer quickly)
Proxies for failure:
- User rephrased question 3+ times (AI didn't understand)
- User requested human agent
- Session ended with negative rating
- User abandoned without completing intended actionUser satisfaction: Average rating for this topic (if ratings are captured)
Deflection rate: Percentage of sessions that didn't escalate to human support
High deflection = AI handled it successfully (good)
Low deflection = AI failed, users needed human help (bad)5. Identify Coverage Gaps
Coverage gaps = topics with high volume but low success rate:
Coverage Gap Analysis:
HIGH PRIORITY GAPS (high volume + low success):
Data & Reporting (22% volume, 45% success rate)
→ Users frequently ask about reports, AI rarely helps effectively
→ Gap: AI doesn't know how to generate the custom report types users need
Troubleshooting (14% volume, 52% success rate)
→ AI can identify problems but often can't resolve them
→ Gap: AI needs access to error code documentation and resolution steps
LOWER PRIORITY (low volume + low success):
Off-Topic (6% volume, 15% success rate)
→ Users occasionally ask off-topic; AI correctly declines
→ No action needed — low volume, correct behavior
WELL-COVERED (any volume + high success):
Feature How-To (31% volume, 82% success rate)
→ AI handles this topic well — source of truth for other topic improvements6. Identify Over-Served Topics
Over-served = topics with significant AI investment but low business value:
Signs of over-serving:
- Topic has high success rate but low user impact (e.g., AI great at answering FAQ that users could google)
- Topic volume is high but users could self-serve without AI (link to help doc would suffice)
- High token cost per session for low-value queries
For over-served topics: consider routing to help docs instead of LLM → reduces cost.
7. Recommend Improvements
Based on coverage analysis, provide prioritized recommendations:
Recommendation categories:
- System prompt additions: what knowledge or instructions to add to the system prompt
- Routing changes: which topics to handle differently (escalate, deflect, or route to specific flows)
- Knowledge base additions: what documentation or data the AI needs access to
- UI changes: where to add better copy/guidance so users don't need to ask the AI
MCP Tools
mcp__Amplitude__query_amplitude_data— query AI session volume, success metrics, and session-level data by topicmcp__Amplitude__get_feedback_insights— retrieve aggregated insights from user feedback on AI interactionsmcp__Amplitude__get_feedback_mentions— get specific user feedback mentions to understand what users say about AI quality
Key Concepts
- Topic cluster: A group of semantically related user intents treated as a unit for analysis — the right level of abstraction between individual questions and broad categories
- Coverage gap: A topic with high user demand but low AI success rate — the highest-priority improvement opportunity
- Deflection rate: Percentage of AI sessions that don't escalate to human support — the primary efficiency metric for AI assistants
- Success proxy: A measurable signal (rating, follow-up action, session length) used to infer whether the AI successfully helped the user
- Over-served topic: A topic where AI investment exceeds its value — a candidate for routing to cheaper self-serve alternatives
Output Format
## AI Topic Analysis — <time range>
### Volume Summary
Total AI sessions: N
Unique users: N
Avg messages/session: N
Overall satisfaction: X%
### Topic Coverage Map
| Topic | Volume | Success Rate | Satisfaction | Deflection | Status |
|-------|--------|-------------|-------------|-----------|--------|
| Feature How-To | 31% | 82% | 4.2/5 | 91% | Well-covered |
| Data & Reporting | 22% | 45% | 2.8/5 | 58% | COVERAGE GAP |
| Account & Billing | 18% | 74% | 3.9/5 | 83% | Adequate |
| Troubleshooting | 14% | 52% | 3.1/5 | 61% | COVERAGE GAP |
| General Questions | 9% | 68% | 3.6/5 | 79% | Adequate |
| Off-Topic | 6% | 15% | 2.1/5 | 34% | Expected |
### Coverage Score: 64/100
### Top 5 Improvement Recommendations
1. [HIGH IMPACT] Add error resolution playbooks to knowledge base
Topic: Troubleshooting | Potential success rate lift: +25%
2. [HIGH IMPACT] Add custom report generation guide to system prompt
Topic: Data & Reporting | Potential success rate lift: +20%
3. [MEDIUM] Route "how to reset password" to direct link (over-served, self-serve candidate)
4. [MEDIUM] Add plan comparison table to AI context for billing questions
5. [LOW] Add "I can't help with that, here's a resource" for off-topic deflectionDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

