/claude-token-analyzer:cta-cost-auditfrom claude-token-analyzer
Generates structured monthly cost reports with daily breakdown, project breakdown, and model cost comparison. Supports cross-month comparison and cost optimization suggestions.
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.
None: SKILL.md is the whole skill.
Generate structured monthly cost reports with daily breakdown, project breakdown, and model cost comparison.
Execute mcp__token-analyzer__sync_db. Skip if already called in this conversation.
Execute mcp__token-analyzer__cost_report with:
month: user-specified YYYY-MM, or current month by defaultdaily: trueproject_path: optional, only if user specifies a projectFormat results into the following structure. Fill every section from the cost_report response.
## CTA 月度成本報告 — YYYY-MM
**月度總成本:$X.XX USD**
### 每日成本
| 日期 | 成本 | 會話數 | 備註 |
|------|------|--------|------|
| 03-01 | $X.XX | N | |
| 03-05 | $X.XX | N | <- peak day |
### 按專案分解
| 專案 | 成本 | 佔比 |
|------|------|------|
| project-a | $X.XX | XX.X% |
### 按模型分解
| 模型 | 成本 | Token 數 | 每百萬 Token 均價 |
|------|------|----------|------------------|
| claude-opus-4-6 | $X.XX | X | $X.XX |
| claude-sonnet-4-6 | $X.XX | X | $X.XX |
| claude-haiku-4-5 | $X.XX | X | $X.XX |
### 優化建議
- (Calculate savings if Opus usage were replaced by Sonnet where applicable)
If the user asks about a specific project, execute mcp__token-analyzer__analyze_project with that project_path.
If the user requests comparison, call cost_report for the previous month and calculate:
$X.XX) and percentage (+X.X%).$X.XX USD.85.3%).125,000).${TMPDIR:-/tmp}/cta-cost-report.md, report path.For MCP tool parameter details: ${CLAUDE_PLUGIN_ROOT}/skills/cta/references/tool-reference.md
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
cost-report, monthly-audit, budget-tracking, cost-optimization
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-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.
/cta-usage-patternThis skill should be used when the user asks about "使用模式", "pattern 分析",
"harness 優化", "工作流建議", "ASCII 圖", or wants to understand how a Claude Code
session behaved and what to improve next. Uses classify_session_pattern as the hard-signal
source and turns it into actionable workflow guidance.
Other plugins' skills for the same job