Hayatelin/caveman-zh-CN / skills/caveman-stats
caveman-stats
Verified显示目前 session 的实际 token 用量与估算节省量。 直接读 Claude Code 的 session log——不是 AI 估的。 输入 /caveman-stats 时触发。输出由 mode-tracker hook 注入; 模型本身不计算这些数字。
README.md
View on GitHub# caveman-stats
真实的 session token 帐单。不是 AI 估的。
## 这个 skill 做什么
直接读取目前的 Claude Code session log,反馈实际的 input/output token 用量,以及对照非 caveman 基准线的估算节省量。数字来自磁盘上的 JSONL session log——模型本身不计算也不估算。输出由 `caveman-mode-tracker` hook 注入,它拦截 `/caveman-stats`,并把格式化好的统计数据当作 blocked-decision 的 reason 返回。
每次运行也会写入一个累计节省量的 suffix 文件,供 statusline 徽章使用(`⛏ 12.4k`)。
## 怎么调用
```
/caveman-stats
```
## 输出范例
```
Session: 47 turns
Input: 12,304 tokens
Output: 3,891 tokens (caveman)
Baseline: 11,247 tokens (estimated without caveman)
Saved: 7,356 tokens (~65%)
```
## 延伸阅读
- [`SKILL.md`](./SKILL.md) — hook 契约与运作机制
- [Caveman README](../../README.md) — repo 总览
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Unverified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |