chatbot-analytics

chatbot-analytics is a skill for Claude Code from curiositech/some_claude_skills. It costs 51 tokens per session (2,377 once invoked), scanned A, original, MIT.

A workflow for measuring and monitoring conversations in an AI chatbot, including sessions, messages, response times, token use, errors, topics, and engagement. It is designed for analytics around an AI coaching chat while considering HIPAA, a US health-information privacy standard.

In plain words
What is it for?
Use it when adding chatbot dashboards, tracking AI usage and response performance, categorizing conversations, measuring engagement, or monitoring errors and fallback responses.
Why use it?
It provides a defined set of metrics for understanding chatbot usage and failures while separating safer metadata from sensitive conversation content.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Part of the chatbot-analytics plugin — 1 skill shipped together

Good fit Use it when adding chatbot dashboards, tracking AI usage and response performance, categorizing conversations, measuring engagement, or monitoring errors and fallback responses.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/curiositech/some_claude_skills/chatbot-analytics
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add curiositech/some_claude_skills --skill chatbot-analytics
Clone the repo
git clone --depth 1 https://github.com/curiositech/some_claude_skills

Made for: Claude Code.

Or install chatbot-analytics, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for chatbot-analytics

README.md
[![agentmods](https://agentmods.dev/badge/skills/curiositech/some_claude_skills/chatbot-analytics/github.svg)](https://agentmods.dev/skills/curiositech/some_claude_skills/chatbot-analytics)
Your own site
<a href="https://agentmods.dev/skills/curiositech/some_claude_skills/chatbot-analytics"><img src="https://agentmods.dev/badge/skills/curiositech/some_claude_skills/chatbot-analytics/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for chatbot-analytics

Your own site · 80×15
<a href="https://agentmods.dev/skills/curiositech/some_claude_skills/chatbot-analytics"><img src="https://agentmods.dev/badge/skills/curiositech/some_claude_skills/chatbot-analytics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,377 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.02377
Opus 5.5 $0.00020 $0.00951
Sonnet 5.5 $0.00010 $0.00475
Haiku 4.5 $0.00005 $0.00238

Measured 3mo ago against content hash 5667b58b7cf8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

chatbot-analytics scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/chatbot-analytics/SKILL.md · 342 lines

How it starts

The opening of the file, as written. The whole thing — 342 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI Chatbot Analytics

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

Core Metrics to Track

Based on industry best practices, track these 13 key metrics:

Metric Description HIPAA Safe?
Total Sessions Number of chat sessions Yes
Avg Messages/Session Messages per conversation Yes
Avg Session Duration Time spent in chat Yes
Engagement Rate % users who use chat Yes
Completion Rate Sessions ended naturally Yes
Abandonment Rate Sessions ended early Yes
Response Time AI response latency Yes
Token Usage Total/avg tokens consumed Yes
Error Rate Failed responses Yes
Fallback Rate "I don't understand" responses Yes
Topic Categories What users discuss Metadata only
Sentiment Trend Emotional direction Derived only
Crisis Triggers Emergency detection Metadata only

HIPAA-Compliant Analytics

What to Track

// Conversation metadata (SAFE)
interface ConversationAnalytics {
  id: string;
  conversationId: string;
  userId: string;  // For aggregation, not individual tracking
  startedAt: Date;
  endedAt: Date | null;
  messageCount: number;
  userMessageCount: number;
  aiMessageCount: number;
  totalTokens: number;
  inputTokens: number;
  outputTokens: number;
  category: string;  // Derived from metadata flags
  outcome: 'completed' | 'abandoned' | 'error' | 'crisis_escalated';
  avgResponseTime: number;
  hadFallback: boolean;
}

What NOT to Track

// NEVER store these in analytics
interface PROHIBITED {
  messageContent: string;      // PHI
  userQuery: string;           // PHI
  aiResponse: string;          // PHI
  specificTopics: string[];    // Could reveal health info
  exactSentiment: 'sad';       // Could reveal mental state
}

Implementation Pattern

Tracking Conversation Start

Read the full file on GitHub · 342 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 342 lines · 51 tokens per session scan A 5667b58b7cf8

Subscribe to this mod's changes

chatbot-analytics is a skill published in the GitHub repository curiositech/some_claude_skills (278 stars, last pushed 3d ago), licensed MIT. It adds 51 tokens to every session and 2,377 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

chatbot-analytics compared with skills from other repositories

chatbot-analytics next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
chatbot-analyticscuriositech/some_claude_skillsSkill2783d agoMITA51Claude Code
imagegenopenai/codexSkill137kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101kyesterdayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144kyesterdayMITA95Claude Code