Routes Claude Code token usage and cost analysis requests to sub-skills for health checks, cost audits, anomaly detection, project reviews, trends, and usage patterns. Provides quick overviews for ambiguous intents.
npx claudepluginhub li195111/claude-token-analyzer --plugin claude-token-analyzerThis skill uses the workspace's default tool permissions.
Route token analysis requests to the appropriate workflow skill, or provide a quick overview for ambiguous intent.
Generates a quick one-page report summarizing Claude Code token usage, costs, sessions, projects, cache hit rates, subagent ratios, and top spenders. Routes to cost, anomaly, project, or trend audits.
Analyzes Claude Code conversation logs for token usage, costs, cache hit rates, workflow patterns (skills, agents, hooks), and cost optimizations. Generates interactive HTML dashboard.
Tracks tokens, analyzes caching behavior, identifies bottlenecks in tool usage, and estimates costs to optimize Claude Code session performance and efficiency.
Share bugs, ideas, or general feedback.
Route token analysis requests to the appropriate workflow skill, or provide a quick overview for ambiguous intent.
mcp__token-analyzer__sync_db before workflows that read SQLite-backed aggregates (analyze_global, analyze_project, cost_report, anomaly_scan, trend_report) when the user asks for latest data. Historical classify_session_pattern lookups can run directly against JSONL without waiting for sync_db.| User Intent | Keywords | Route to |
|---|---|---|
| Quick status | 「看看」「總覽」「花了多少」「現在狀況」 | cta-health-check |
| Monthly cost | 「這個月」「成本報告」「月度」「預算」 | cta-cost-audit |
| Find anomalies | 「異常」「有問題嗎」「診斷」「排查」 | cta-anomaly-hunt |
| Project analysis | 「分析專案」「專案健檢」「subagent」「工具使用」 | cta-project-review |
| Trend forecast | 「趨勢」「在漲嗎」「預測」「燃率」 | cta-trend-watch |
| Usage pattern | 「使用模式」「pattern 分析」「harness 優化」「工作流建議」「sparkline」 | cta-usage-pattern |
| Element | Format |
|---|---|
| Currency | $X.XX USD |
| Percentage | One decimal (85.3%) |
| session_id | First 8 chars (a1b2c3d4) |
| Token count | Thousands separator (125,000) |
| Large output (>50K chars) | Write to ${TMPDIR:-/tmp}/cta-*.md, report path |
| Cache hit rate <70% | Mark with warning |
| Subagent ratio >20% | Mark with notice |
## CTA Overview
| Metric | Value |
|--------|-------|
| Total Sessions | X |
| Total Projects | X |
| Total Cost | $X.XX USD |
| Avg Cache Hit Rate | X.X% |
| Subagent Token Ratio | X.X% |
### Top 3 Projects (by cost)
1. project-name — $X.XX (N sessions)
### Top 3 Sessions (by cost)
1. a1b2c3d4 — $X.XX (project-name)
Follow with: 「要深入哪個方向?成本 / 異常 / 專案 / 趨勢」
For complete MCP tool parameters, return types, and known caveats:
references/tool-reference.md — 8 MCP tool quick reference with parameter defaults, advanced tuning, and known pitfallsSub-skills reference this file at the absolute path ${CLAUDE_PLUGIN_ROOT}/skills/cta/references/tool-reference.md.