From cost-monitor
Claude Code コスト期間別ダッシュボード markdown / HTML ファイル出力 (日次/週次/月次/任意範囲、model 別内訳、cache 効率、trend)。cost-status と異なり共有/保管用ファイル成果物が用途。Triggers: 週次レポート, 月次コストレポート, weekly cost report, monthly summary, cost report, ダッシュボード作って, export cost report
How this skill is triggered — by the user, by Claude, or both
Slash command
/cost-monitor:cost-reportThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
`cost-monitor` plugin のダッシュボード生成 skill。任意期間の利用コストを構造化レポート (markdown / HTML) として出力する。`cost-status` が即時表示なのに対し、`cost-report` は **共有用 / 保管用 ファイル成果物** に重点。
cost-monitor plugin のダッシュボード生成 skill。任意期間の利用コストを構造化レポート (markdown / HTML) として出力する。cost-status が即時表示なのに対し、cost-report は 共有用 / 保管用 ファイル成果物 に重点。
ユーザーから期間を聞き取る (なければ確認):
today / week / month / all のいずれかYYYY-MM-DD ~ YYYY-MM-DD の任意範囲出力フォーマット確認:
markdown (デフォルト、コピペ・リポジトリ追加に最適)html (ブラウザ閲覧用、単一ファイル)レポート生成:
# 週次 markdown レポート
bash "${CLAUDE_PLUGIN_ROOT}/scripts/dashboard-generator.sh" \
--period week \
--format markdown \
> weekly-cost-report.md
# 月次 HTML レポート
bash "${CLAUDE_PLUGIN_ROOT}/scripts/dashboard-generator.sh" \
--period month \
--format html \
> monthly-cost-report.html
# 任意期間
bash "${CLAUDE_PLUGIN_ROOT}/scripts/dashboard-generator.sh" \
--since 2026-04-01 --until 2026-04-30 \
--format markdown
共有用エクスポート (サニタイズ済み) — paths / tokens / repo 名を redact:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/dashboard-generator.sh" \
--period month \
--format markdown \
--export ./share-dir
# → stdout に出力ファイルパスを返す (例: ./share-dir/cost-report-20260508T080000Z.md)
サニタイズ規則 (5 軸):
/Users/..., /home/..., /Volumes/...)sk-..., ghp_..., AKIA... 等)owner/repo slug生成されたファイルパスをユーザーに伝える。markdown はそのまま貼り付けて確認可能。
# Claude Code cost report
_source_: jsonl-parser | ccusage-bridge
_period_: YYYY-MM-DD → YYYY-MM-DD
## Totals
| metric | value |
| input / output / cache_w_5m / cache_w_1h / cache_read tokens | ... |
| **cost (USD)** | **$X.XX** |
## By model
| model | tokens... | cost (USD) |
(cost 降順)
## By day
| date | tokens... | cost (USD) |
## Warnings (任意)
- 未知 model 検出 / cache 計算注意 等
| 用途 | 推奨コマンド |
|---|---|
| 個人の週次レビュー | --period week --format markdown |
| 月次予算確認 | --period month --format markdown |
| チーム共有 (Slack 等) | --period week --format markdown --export ./share/ |
| 受講者向け配布 | --period month --format markdown --export ./course-materials/ |
| ブラウザ確認 | --period month --format html > report.html && open report.html |
bash, jq, sed, awk~/.claude/projects/**/*.jsonl への read 権限ccusage CLIPRICE_TABLE_PATH env で overrideCCUSAGE_PATH=disabled で bundled parser を使うnpx claudepluginhub arkatom/claude-plugins --plugin cost-monitorCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.