/claude-token-analyzer:cta-usage-patternfrom claude-token-analyzer
Analyzes Claude Code session patterns using the token-analyzer MCP tool and converts them into actionable workflow guidance. Useful for understanding session behavior and improving usage efficiency.
Ships in claude-token-analyzer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Analyze one or more sessions with the MCP classifier and convert the result into concrete harness guidance.
Execute mcp__token-analyzer__sync_db when the user asks for "latest" or when the conversation likely depends on newly-created sessions.
For a direct historical session_id lookup, sync_db is optional because classify_session_pattern reads JSONL directly.
If the user provides a session_id, use it directly with mcp__token-analyzer__classify_session_pattern.
If the user does not provide a session_id:
mcp__token-analyzer__analyze_globaltop_sessionsmcp__token-analyzer__classify_session_pattern for each selected sessionUse the local skill reference file references/harness-signals-to-advice.md as the SSOT mapping.
Required output elements:
patternseveritycache_hit_rate, subagent_count, repeated_edit_peak, turn_count, duration_minutes, topic_shift_count)If the user asks for trend context, execute mcp__token-analyzer__trend_report and render a short Unicode sparkline using the returned token totals.
Keep it inline, for example:
14d token trend: ▁▂▃▅▄▆█
## CTA 使用模式分析 — a1b2c3d4
- Pattern: `correction_spiral`
- Severity: `alert`
- Signals: cache_hit_rate 18.0%, repeated_edit_peak 8, output_token_ratio 61.0%, turn_count 42
### 建議
1. 把大檔案切成更小的編輯單元,避免同一檔案反覆來回修補。
2. 明確要求 diff-only 回覆,降低 output token 膨脹。
3. 如果需求已改變,先開新 session 或先 checkpoint,再繼續編輯。
info, keep the tone observational instead of warning-heavy.AMBIGUOUS_SESSION_ID, ask the user for a longer ID rather than guessing.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub li195111/claude-token-analyzer --plugin claude-token-analyzer7 skills in this plugin
/ctaThis skill should be used when the user asks to "analyze token usage", "check costs",
"how much did I spend", "token analysis", "session analysis", "cta", or mentions
Claude Code usage efficiency, token spending, or cost optimization.
Routes to 6 workflow sub-skills: cta-health-check, cta-cost-audit, cta-anomaly-hunt,
cta-project-review, cta-trend-watch, cta-usage-pattern. Also handles ambiguous intent with a quick overview.
Do NOT trigger for: building token-related features, tokenizer/NLP work, or non-Claude cost analysis.
/cta-anomaly-huntThis skill should be used when the user asks about "anomalies", "problems", "有異常嗎",
"哪些會話有問題", "排查", "診斷", or suspects waste or efficiency issues in Claude Code
usage. Scans for 6 types of statistical anomalies with severity scoring and automatic
drill-down into suspicious sessions. Can also be routed from the main cta skill.
/cta-cost-auditThis skill should be used when the user asks about "monthly costs", "cost report",
"這個月花多少", "成本報告", "月度審計", "預算", or needs to understand cost
distribution by project, model, or time period. Supports cross-month comparison
and model cost optimization suggestions. Can also be routed from the main cta skill.
/cta-health-checkThis skill should be used when the user asks for a "quick check", "overview",
"how much did I spend", "看看狀況", "總覽", or wants a fast one-page summary
of Claude Code token usage and costs. The lightest CTA workflow, completes in
under 3 minutes. Can also be routed from the main cta skill.
/cta-project-reviewThis skill should be used when the user asks to "analyze this project", "project health check",
"分析這個專案", "專案健檢", "subagent efficiency", "tool usage analysis", "工具使用",
or needs detailed analysis of a specific project's token usage patterns. Provides four-dimension
analysis: cost, efficiency, tools, and architecture. Can also be routed from the main cta skill.
/cta-trend-watchThis skill should be used when the user asks about "trends", "usage trends",
"趨勢", "用量在漲嗎", "預測", "燃率", "burn rate", or wants to understand
whether Claude Code usage is increasing or decreasing over time. Supports
daily/weekly/monthly granularity with simple forecasting. Can also be routed
from the main cta skill.
Other plugins' skills for the same job