Agent Skills
› Edwardvi/guiying
› caveman-stats
caveman-stats
GitHub通过解析会话日志展示实时 Token 用量及预估节省金额,无需 AI 估算。触发 /caveman-stats 后由钩子直接返回格式化数据,模型无需参与计算。
Trigger Scenarios
用户输入 /caveman-stats 命令
Install
npx skills add Edwardvi/guiying --skill caveman-stats -g -y
SKILL.md
Frontmatter
{
"name": "caveman-stats",
"description": "Show real token usage and estimated savings for the current session. Reads directly from the Claude Code session log — no AI estimation. Triggers on \/caveman-stats. Output is injected by the mode-tracker hook; the model itself does not compute the numbers."
}
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.
Version History
- 52aca76 Current 2026-07-30 20:24


