From magic-powers
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.
npx claudepluginhub kienbui1995/magic-powers --plugin magic-powersThis skill uses the workspace's default tool permissions.
- Your product has an LLM-powered assistant, chatbot, or AI agent that users interact with
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
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 days
Baseline metrics to establish:
From the AI interaction events, extract what users are actually asking:
Sources of intent data:
user_message, query, prompt)mcp__Amplitude__get_feedback_mentions — user feedback that names specific topicsIntent extraction approach: If raw message text is available:
If only categorized events are available:
intent_category, topic, workflow if they existget_feedback_insightsOrganize 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 scope
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 action
User 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)
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 improvements
Over-served = topics with significant AI investment but low business value:
Signs of over-serving:
For over-served topics: consider routing to help docs instead of LLM → reduces cost.
Based on coverage analysis, provide prioritized recommendations:
Recommendation categories:
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## 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 deflection