model-stats
Chart AI model usage, cost, and effort from local coding-CLI logs as an HTML page. Use when the user wants to see which providers, models, harnesses, or…
от Integralist★ 31 звезда на GitHub
Установить model-stats в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Chart token use, cost, and effort by provider, model, harness, and project
from local logs for Claude Code, Codex, pi, OpenCode, Gemini CLI, and Copilot
CLI. The source formats are documented in scripts/report.py.
Choose a time range. Use
--period(or an unambiguous range if passed), defaulting tomonth. Accept onlyday(today),week(the last 7 days,month(to date; this calendar month through today),year(this calendar month and the 11 before it), orall(full history). For any other value, stop and list the five valid choices.Generate the chart. From this skill's base directory, run:
python3 <skill-base-dir>/scripts/report.py <period>It writes a randomly named
/tmp/model-stats-XXXXXX.html, prints its path, and opens it. Anthropic-inspired is the default; add--theme fastlyonly when requested. Every page includes a System / Light / Dark control. Stderr lines beginningmodel-stats:are warnings, including an unsuccessful price-list fetch, unreadable log, or no usage in the time range.Reply with the result. Put the path on line 1 and list each warning as a bullet.
Maintenance. When a harness changes its log format, update its load_*
function in scripts/report.py and its test in scripts/test_report.py. For
chart changes, first read and follow design and its
selected theme and HTML guidance. The generator embeds shared design assets;
keep
only chart layout and behaviour in scripts/template.html and update
scripts/test_browser.py.
Run make -C <skill-base-dir> test; browser tests require Google Chrome.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- Makefile
- scripts/report.py
- scripts/template.html
- scripts/test_browser.py
- scripts/test_report.py
FAQ
Что делает скилл model-stats?
Chart AI model usage, cost, and effort from local coding-CLI logs as an HTML page. Use when the user wants to see which providers, models, harnesses, or projects use their tokens and money over a period.
Как установить скилл model-stats?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл model-stats запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…