caveman-stats
GitHub通过 /caveman-stats 命令展示当前会话的实时 Token 使用量和预估节省费用。该 Skill 由 Hook 拦截并直接返回格式化统计信息,包含规则开销与净节省估算,帮助用户评估成本效益。
触发场景
安装
npx skills add JuliusBrussee/caveman --skill caveman-stats -g -y
SKILL.md
Frontmatter
{
"name": "caveman-stats",
"description": "Show real token usage and estimated savings for the current session, read from the session log. Trigger: \/caveman-stats."
}
This skill is delivered by hooks/caveman-stats.js (read by hooks/caveman-mode-tracker.js on /caveman-stats). The model does not need to do anything when this skill fires — the hook returns decision: "block" with the formatted stats as the reason. The user sees the numbers immediately.
Output also includes Est. rule overhead and Est. net lines wherever a savings estimate exists with a known turn count. Rule overhead is the estimated per-turn INPUT-token cost of the injected caveman rules (default 1,250 tokens/turn, override with CAVEMAN_RULE_OVERHEAD_TOKENS) times the turn count. Net is savings minus that overhead — when negative, the output says so plainly and suggests turning caveman off for that workload, rather than hiding the net-negative regime behind a gross-savings number (see docs/HONEST-NUMBERS.md).
版本历史
- 3b74643 当前 2026-09-03 05:39
- 12aa8cc 2026-08-16 08:54
- 0d95a81 2026-07-24 17:37


