enhanced-telemetry
Comprehensive Claude Code telemetry via 10 hooks capturing sessions, conversations, tools, subagents, context, permissions, and repository analytics. Use when analyzing detailed usage patterns beyond default OTEL.
npx skills add majiayu000/claude-skill-registry --skill enhanced-telemetry --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Enhanced Telemetry v2 Captures comprehensive Claude Code metrics via ALL 10 available hooks, providing deep observability beyond default OTEL telemetry. ## What It Captures ### Session Analytics - Session lifecycle (start/end) - Session duration - Session source (startup/resume/clear/compact) - Session termination reason - Permission mode ### Conversation Analytics - Turn count per session - Prompt patterns (question/debugging/creation/ultrathink) - Prompt length and token estimates - Conversation style distribution ### Tool Analytics - Tool call frequency - Tool sequences (previous → current) - Tool error rates - Response sizes and token estimates - File types accessed ### Subagent Analytics - Subagents spawned per session - Subagent types (Explore, Plan, general-purpose, etc.) - Subagent completion tracking ### Context Analytics - Estimated token usage - Context window utilization percentage - Context compaction events (manual vs auto) - Token accumulation tracking ### Repository Analytics - Activity per repository - Tool usage by project - Branch-level tracking ### Permission Analytics - Permission requests - Permission types - Notification tracking ## 10 Hooks Instrumented |
- What It Captures
- Session Analytics
- Conversation Analytics
- Tool Analytics
- Subagent Analytics
- Context Analytics
- Repository Analytics
- Permission Analytics
- 10 Hooks Instrumented
- Configuration
- Viewing Data
- Grafana Dashboards
- LogQL Queries
- Event Schemas
cat .claude/settings.json | grep enhanced-telemetry
echo '{"tool_name":"Test"}' | python3 .claude/hooks/enhanced-telemetry.py PreToolUse
curl -s "http://localhost:3100/loki/api/v1/labels"
curl -s "http://localhost:3100/loki/api/v1/query?query={job=\"claude_code_enhanced\"}&limit=5"What does the enhanced-telemetry skill do?
Comprehensive Claude Code telemetry via 10 hooks capturing sessions, conversations, tools, subagents, context, permissions, and repository analytics. Use when analyzing detailed usage patterns beyond default OTEL.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill enhanced-telemetry --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
