본문으로 건너뛰기
cccskills
무료GitHub에 공개

chatbot-analytics

Implement AI chatbot analytics and conversation monitoring. Use when adding conversation metrics, tracking AI usage, measuring user engagement with chat, or building conversation dashboards. Activates for AI analytics, token tracking, conversation categorization, and chat performance.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md6.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

AI Chatbot Analytics

This skill helps you implement analytics for the AI coaching chat feature while maintaining HIPAA compliance.

Decision Points

1. Alert Threshold Configuration

IF abandonment_rate > 40% within 24h
  → THEN escalate to admin team
  → ELSE log for trending analysis

IF crisis_escalations > 5 within 24h  
  → THEN send email alert immediately
  → ELSE track for weekly review

IF error_rate > 10% within 1h
  → THEN send Slack alert
  → ELSE continue monitoring

IF token_cost > budget_threshold
  → THEN enable cost controls
  → ELSE continue tracking

2. Category Classification Decision Tree

IF metadata.usedCrisisProtocol == true
  → category = "crisis_support"
ELSE IF metadata.usedCopingStrategies == true
  → category = "coping_strategies"  
ELSE IF metadata.usedCheckInSupport == true
  → category = "checkin_support"
ELSE IF metadata.requestedClarification == true
  → category = "clarification"
ELSE
  → category = "general_chat"

3. Data Storage Compliance Check

IF data_contains(PHI_indicators)
  → REJECT storage, log metadata only
ELSE IF data_is_aggregate()
  → STORE for analytics
ELSE IF data_is_metadata()
  → STORE with encryption
ELSE
  → REVIEW manually before storage

Failure Modes

1. PHI Leakage

  • Symptom: Analytics contain user messages, specific health topics, or emotional states
  • Detection Rule: If analytics tables contain columns like messageContent, userQuery, or specificTopics
  • Fix: Remove PHI columns, implement metadata-only tracking with category flags

2. Alert Fatigue

  • Symptom: Too many false positive alerts overwhelming admin team
  • Detection Rule: If alert frequency > 10 per day or admin response rate < 20%
  • Fix: Raise thresholds, add time windows, implement alert severity levels

3. Token Cost Explosion

  • Symptom: Unexpectedly high AI usage costs without visibility
  • Detection Rule: If monthly cost > budget by 50% or avg tokens/session > baseline by 200%
  • Fix: Check input length validation, implement conversation limits, add real-time cost tracking

4. Incomplete Session Tracking

  • Symptom: Analytics show many abandoned sessions that were actually completed
  • Detection Rule: If abandonment rate > 60% but user satisfaction remains high
  • Fix: Verify trackConversationEnd() is called in all exit paths, add session timeout logic

5. Slow Query Performance

  • Symptom: Dashboard loads taking >10 seconds, analytics queries timing out
  • Detection Rule: If query latency > 2s or dashboard bounce rate > 80%
  • Fix: Add indexes on started_at, user_id, and outcome columns, implement query optimization

Worked Example

Scenario: Implementing Crisis Escalation Tracking

Setup: User reports feeling overwhelmed, AI detects crisis indicators

// 1. Start tracking conversation
await trackConversationStart('conv-789', 'user-123');

// 2. AI processes message and sets metadata flags
const aiResponse = await processMessage(userMessage);
const metadata = {
  usedCrisisProtocol: true,
  usedCopingStrategies: false,
  requestedClarification: false
};

// 3. Expert decision: Check crisis threshold first
if (metadata.usedCrisisProtocol) {
  // Set category immediately
  const category = 'crisis_support';
  
  // Track the exchange with crisis flag
  await trackMessageExchange('conv-789', 
    { input: 150, output: 300 },
    1200, // 1.2s response time
    { hadFallback: false, hasCrisisIndicator: true }
  );
}

// 4. End conversation with escalation
await trackConversationEnd('conv-789', 'crisis_escalated');

// 5. Check if alert threshold reached
const recentCrises = await countCrisisEscalations(24); // last 24h
if (recentCrises > 5) {
  await sendAlert('crisis_spike', { count: recentCrises });
}

Expert catches: The crisis flag triggers immediate categorization and outcome tracking, bypassing normal conversation flow analysis.

Novice misses: Would wait until conversation end to classify, missing real-time escalation opportunity.

Quality Gates

  • HIPAA audit passes: No PHI stored in analytics tables
  • Query performance: All dashboard queries complete in <2s
  • Data completeness: >95% of conversations have complete analytics records
  • Alert accuracy: False positive rate <10% for all alert types
  • Cost tracking: Token usage tracked within 1% accuracy of actual API calls
  • Category coverage: >90% of conversations automatically categorized (not 'unknown')
  • Session integrity: Abandonment rate calculation matches user exit patterns
  • Real-time updates: Analytics refresh within 30s of conversation events
  • Index coverage: All queries use database indexes (no table scans)
  • Compliance validation: All stored fields pass PHI detection rules

NOT-FOR Boundaries

Do NOT use this skill for:

  • Individual user profiling: Use [user-management] skill instead
  • Content analysis of messages: Use [ai-safety] skill for content moderation
  • Billing/payment tracking: Use [subscription-management] skill instead
  • Performance monitoring of AI model: Use [ai-monitoring] skill instead
  • Security audit trails: Use [audit-logging] skill instead

Delegate when:

  • Need to analyze actual message content → Use content analysis tools with proper PHI handling
  • Need real-time conversation interruption → Use AI safety monitoring
  • Need detailed user behavior beyond chat → Use comprehensive user analytics platform

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Expert in 2000s-era music visualization (Milkdrop, AVS, Geiss) and modern WebGL implementations. Specializes in Butterchurn integration, Web Audio API AnalyserNode FFT data, GLSL shaders for audio-reactive visuals, and psychedelic generative art. Activate on "Milkdrop", "music visualization", "WebGL visualizer", "Butterchurn", "audio reactive", "FFT visualization", "spectrum analyzer". NOT for simple bar charts/waveforms (use basic canvas), video editing, or non-audio visuals.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/windags-skills162026년 10월 14일 업데이트

Expert legal research agent for finding and scraping expungement data state by state. Knows authoritative sources, URL patterns, Firecrawl configuration, and 2026 legal landscape.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/windags-skills162026년 10월 14일 업데이트

Expert in 3D computer vision labeling tools, workflows, and AI-assisted annotation for LiDAR, point clouds, and sensor fusion. Covers SAM4D/Point-SAM, human-in-the-loop architectures, and vertical-specific training strategies. Activate on '3D labeling', 'point cloud annotation', 'LiDAR labeling', 'SAM 3D', 'SAM4D', 'sensor fusion annotation', '3D bounding box', 'semantic segmentation point cloud'. NOT for 2D image labeling (use clip-aware-embeddings), general ML training (use ml-engineer), video annotation without 3D (use computer-vision-pipeline), or VLM prompt engineering (use prompt-engineer).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/windags-skills162026년 10월 14일 업데이트

Apply crisis decision-making research to agent routing, uncertainty triage, and coordination failure analysis in time-pressured systems. Use when diagnosing handoff failures, analytical paralysis, or expert judgment under incomplete information. NOT for routine coding, simple CRUD design, or static single-agent tasks with complete information.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/windags-skills162026년 10월 14일 업데이트

Use for insight, reframing, contradiction, impasse, and anomaly-driven problem solving when execution effort no longer helps. NOT for routine optimization, error correction, or well-specified tasks with known solution paths.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/windags-skills162026년 10월 14일 업데이트

Apply normative BDI reasoning to agents that must detect norms, choose which commitments to internalize, and resolve conflicts by comparing consequences. Use when obligations, prohibitions, or policies collide in autonomous systems. NOT for simple fixed-priority rules, pure constraint satisfaction, or domains where no real normative conflict exists.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

curiositech/windags-skills162026년 10월 14일 업데이트

curiositech의 스킬 모두 보기

이 스킬의 문제 신고