Agent SkillsJuliusBrussee/caveman › caveman-stats

caveman-stats

GitHub

通过命令行触发,直接读取会话日志展示实时 Token 用量及预估节省金额。包含规则开销估算,帮助用户透明评估成本效益,无需模型计算。

plugins/caveman/skills/caveman-stats/SKILL.md JuliusBrussee/caveman

Trigger Scenarios

用户输入 /caveman-stats 命令

Install

npx skills add JuliusBrussee/caveman --skill caveman-stats -g -y
More Options

Non-standard path

npx skills add https://github.com/JuliusBrussee/caveman/tree/main/plugins/caveman/skills/caveman-stats -g -y

Use without installing

npx skills use JuliusBrussee/caveman@caveman-stats

指定 Agent (Claude Code)

npx skills add JuliusBrussee/caveman --skill caveman-stats -a claude-code -g -y

安装 repo 全部 skill

npx skills add JuliusBrussee/caveman --all -g -y

预览 repo 内 skill

npx skills add JuliusBrussee/caveman --list

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.

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).

Version History

  • 12aa8cc Current 2026-08-16 08:53
  • 0d95a81 2026-07-24 17:37

Same Skill Collection

plugins/caveman/skills/caveman-compress/SKILL.md
plugins/caveman/skills/caveman/SKILL.md
skills/caveman-commit/SKILL.md
skills/caveman-compress/SKILL.md
skills/caveman-discover/SKILL.md
skills/caveman-evidence-review/SKILL.md
skills/caveman-explore/SKILL.md
skills/caveman-help/SKILL.md
skills/caveman-learn/SKILL.md
skills/caveman-manage/SKILL.md
skills/caveman-optimize/SKILL.md
skills/caveman-review/SKILL.md
skills/caveman-setup/SKILL.md
skills/caveman-stats/SKILL.md
skills/caveman/SKILL.md
skills/investigate-first/SKILL.md
skills/lean-build/SKILL.md
skills/migration/SKILL.md
skills/safe-refactor/SKILL.md
skills/surgical-patch/SKILL.md
skills/verify-and-stop/SKILL.md
plugins/caveman/skills/cavecrew/SKILL.md
skills/cavecrew/SKILL.md

Metadata

Files
0
Version
12aa8cc
Hash
b78227f6
Indexed
2026-07-24 17:37

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-16 21:55
浙ICP备14020137号-1 $mapa de visitantes$