Skip to main content
ClaudeWave
Skill497 repo starsupdated 13d ago

leaderboard

Show this repo's context-cost leaderboard: the files that pulled the most tokens into context

Install in Claude Code
Copy
git clone --depth 1 https://github.com/karanb192/claude-code-hooks /tmp/leaderboard && cp -r /tmp/leaderboard/plugins/context-hogs/skills/leaderboard ~/.claude/skills/leaderboard
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# Context-cost leaderboard

!`node "${CLAUDE_SKILL_DIR}/../../context-hogs.js" --render 2>/dev/null || node "${CLAUDE_PLUGIN_ROOT}/context-hogs.js" --render`

The table above is this repository's most token-expensive files, aggregated across
your recent sessions (read count, cumulative tokens, estimated cost). It is produced
by the `context-hogs` hook, which records as you work.

Briefly call out the top 1-3 offenders and suggest one concrete fix each: for
example: split an oversized file, exclude a generated/vendored path, or add the
suggested CLAUDE.md / `permissions.deny` block for a file Claude keeps re-reading.
Keep it short; do not re-run any commands.