Skip to main content

Module plugin_usage

Module plugin_usage 

Source
Expand description

Plugin usage analytics module

Aggregates tool usage from SessionMetadata to classify and rank plugins:

  • Skills (.claude/skills/)
  • Commands (.claude/commands/)
  • MCP Servers (mcp__server__tool format)
  • Agents (Task tool with subagent_type)
  • Native Tools (Read, Write, Edit, Bash, etc.)

Provides metrics on total invocations, cost attribution, dead code detection.

Structs§

PluginAnalytics
Complete plugin analytics data
PluginUsage
Usage statistics for a single plugin

Enums§

PluginType
Plugin classification by origin

Functions§

aggregate_plugin_usage
Aggregate plugin usage from sessions