monitor-ai-quality
Skill0 starsChanged 8 months agoMITView on GitHub
Proactive health monitoring of AI/LLM features covering quality, cost, performance, and error metrics. Uses mcp__Amplitude__query_amplitude_data, mcp__Amplitude__get_charts, mcp__Amplitude__get_agent_results.
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-ai-topicsSkill
- 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-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
7 rules. About 0 are common, 5 are distinctive, and 2 are 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
After deploying a prompt change — did quality improve or degrade?
- Distinctive: line 12
After an LLM provider outage — is quality back to normal?
- Distinctive: line 13
When user satisfaction on AI features is trending down
- Distinctive: line 14
When AI compute costs are higher than expected
- Distinctive: line 16
Before a major product launch that relies on AI features
- Very specific: line 138
Provider latency correlation: If latency spikes, check if it correlates with LLM provider status (OpenAI, Anthropic, Gemini).
- Very specific: line 189
Use mcp__Amplitude__get_agent_results to retrieve any automated AI analysis results that may have already flagged issues.
≈ “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
Monitor AI Quality
When to Use
- Daily or weekly health check of AI/LLM features in production
- After deploying a prompt change — did quality improve or degrade?
- After an LLM provider outage — is quality back to normal?
- When user satisfaction on AI features is trending down
- When AI compute costs are higher than expected
- Building a monitoring dashboard for an AI product
- Before a major product launch that relies on AI features
Core Jobs
Dimension 1: Quality Metrics
Quality measures whether the AI is actually helping users succeed.
Key quality metrics:
User satisfaction score:
mcp__Amplitude__query_amplitude_data:
event: ai_feedback_submitted
time_range: last 7 days
metric: avg(satisfaction_rating)
breakdown: by day
group_by: [topic_category, feature_name]Track: average rating trend, rating distribution (not just average — a 3.5 average could mean half love it and half hate it).
Resolution rate:
Sessions where user completed intended action after AI interaction
/ Total AI sessions
Proxy: sessions without escalation AND with positive completion eventEscalation rate:
Sessions where user requested human support
/ Total AI sessionsAlert threshold: escalation rate > 15% → investigate which topics are failing.
Topic coverage score:
Well-covered topics (success rate >75%) / Total topic clustersQuality thresholds:
GREEN: satisfaction >75%, escalation <10%, resolution >65%
YELLOW: satisfaction 60-75%, escalation 10-15%, resolution 50-65%
RED: satisfaction <60%, escalation >15%, resolution <50%Dimension 2: Cost Metrics
Cost measures LLM spend efficiency — same quality for less money, or knowing when cost per session spikes.
Tokens per session:
mcp__Amplitude__query_amplitude_data:
event: ai_session_ended
metric: avg(total_tokens), p95(total_tokens)
time_range: last 7 days
breakdown: by day, by topic_categoryHigh token sessions by topic reveal where the AI is verbose or where users ask many follow-ups.
Cost per successful resolution:
Cost per session = total_tokens × model_price_per_token
Cost per resolution = cost per session / resolution rateThis is the efficiency metric — it penalizes both high token usage AND low resolution rate.
High-cost session identification:
mcp__Amplitude__query_amplitude_data:
event: ai_session_ended
filter: total_tokens > p95(total_tokens)
group_by: topic_category, user_segmentHigh-cost outliers often reveal: long multi-turn conversations that failed, users who abuse the AI for off-topic queries, or specific topics that require lengthy explanations.
Cost thresholds:
GREEN: cost/resolution stable or decreasing WoW
YELLOW: cost/resolution increased >20% WoW
RED: cost/resolution increased >50% WoW, or specific topic showing 3x costDimension 3: Performance Metrics
Performance measures whether the AI is fast enough that users don't give up waiting.
Response latency:
mcp__Amplitude__query_amplitude_data:
event: ai_response_received
metric: p50(response_latency_ms), p95(response_latency_ms)
time_range: last 24h
breakdown: by hourTimeout rate:
Sessions where AI response took > threshold (typically 30s)
/ Total AI sessionsRetry rate:
Sessions where user resent the same message (often due to timeout/error)
/ Total AI sessionsPerformance thresholds:
GREEN: p50 <2s, p95 <8s, timeout rate <1%
YELLOW: p50 2-5s, p95 8-20s, timeout rate 1-3%
RED: p50 >5s, p95 >20s, timeout rate >3%Provider latency correlation: If latency spikes, check if it correlates with LLM provider status (OpenAI, Anthropic, Gemini). Use mcp__Amplitude__get_charts for pre-built latency charts.
Dimension 4: Error Metrics
Error metrics capture AI-specific failures beyond generic application errors.
Hallucination signals (proxy metrics — direct detection requires human review):
User correction events (user says "that's wrong" or "that doesn't exist")
User rephrasing count >3 in one session (AI couldn't understand)
Sessions with negative rating AND short duration (quick failure)Refusal rate:
mcp__Amplitude__query_amplitude_data:
event: ai_response_generated
filter: response_type = "refusal" (if your AI logs this)
metric: count / total_responsesHigh refusal rate on valid user queries = over-restrictive system prompt.
Tool failure rate (for AI agents with tool use):
Tool call failures / Total tool callsError thresholds:
GREEN: refusal rate <5% on valid queries, tool failure <2%
YELLOW: refusal rate 5-10%, tool failure 2-5%
RED: refusal rate >10%, tool failure >5%Monitoring Cadence
Daily check (10 minutes):
- Quality: satisfaction + escalation rate (last 24h vs. yesterday)
- Errors: refusal rate + tool failures (last 24h)
- Performance: p95 latency (last 24h)
Weekly review (30 minutes):
- Cost: tokens/session trend, cost/resolution trend
- Quality: topic coverage analysis, low-rated session sampling
- Performance: WoW latency trends
After every deploy (30 minutes):
- Compare all 4 dimensions: last 2h vs. same time last week
- Flag any metric that changed >10%
Use mcp__Amplitude__get_agent_results to retrieve any automated AI analysis results that may have already flagged issues.
MCP Tools
mcp__Amplitude__query_amplitude_data— query all four dimension metrics (quality, cost, performance, errors) with time-period comparisons and breakdownsmcp__Amplitude__get_charts— retrieve pre-built AI monitoring dashboards and charts; check for existing quality/cost/performance baseline chartsmcp__Amplitude__get_agent_results— retrieve results from Amplitude's AI analysis agents that may have already flagged quality or anomaly issues
Key Concepts
- Resolution rate: The percentage of AI sessions where the user successfully accomplished their goal — the most important quality metric
- Cost per resolution: Total LLM spend divided by successful resolutions — the efficiency metric that combines cost and quality
- Escalation rate: Percentage of AI sessions that required human intervention — the quality floor (must stay below threshold)
- Hallucination signal: Indirect evidence that the AI provided incorrect information (user corrections, multiple rephrases, quick negative rating) — hard to measure directly
- Refusal rate: Percentage of valid user queries that the AI declines to answer — high rate indicates over-restrictive system prompt
Output Format
## AI Quality Health Check — <date>
Feature: <AI feature name>
Check period: last 24h (daily) or last 7 days (weekly)
### Health Scorecard
| Dimension | Metric | Value | Threshold | Status | WoW Change |
|-----------|--------|-------|-----------|--------|-----------|
| Quality | Satisfaction | 71% | >75% | 🟡 YELLOW | -4% |
| Quality | Escalation rate | 12% | <10% | 🟡 YELLOW | +2% |
| Quality | Resolution rate | 61% | >65% | 🟡 YELLOW | -3% |
| Cost | Tokens/session | 1,847 | <2,000 | 🟢 GREEN | +8% |
| Cost | Cost/resolution | $0.042 | <$0.05 | 🟢 GREEN | +11% |
| Performance | p50 latency | 1.8s | <2s | 🟢 GREEN | +5% |
| Performance | p95 latency | 6.2s | <8s | 🟢 GREEN | +9% |
| Errors | Refusal rate | 4% | <5% | 🟢 GREEN | -1% |
| Errors | Tool failures | 1.2% | <2% | 🟢 GREEN | +0.2% |
**Overall Status: YELLOW** (3 quality metrics below threshold)
### Top 3 Concerns
1. [Quality] Satisfaction declining (-4% WoW) — correlates with launch of new Data & Reporting topic
→ Investigate: sample 10 low-rated sessions in Data & Reporting category
→ Recommended: add report export guide to AI knowledge base
2. [Quality] Escalation rate increasing (+2% WoW) — above threshold
→ Investigate: which topics trigger escalation? use analyze-ai-topics skill
→ Recommended: add routing rule for Troubleshooting topic
3. [Cost] Cost/resolution up 11% WoW — approaching threshold
→ Investigate: token count increase in which topic cluster?
→ Recommended: shorten system prompt section on General Questions
### What's Healthy
- Performance: all latency metrics well within threshold
- Errors: refusal and tool failure rates stable and acceptableDoes 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.

