---
name: Leaderboard
slug: leaderboard
category: Data
description: "Leaderboard shows this repo's context-cost table of the files that have pulled the most tokens into context. Use it to identify the biggest re-read offenders and suggest a fix for each."
github: "https://github.com/karanb192/claude-code-hooks/tree/main/plugins/context-hogs/skills/leaderboard"
language: JavaScript
stars: 486
forks: 34
install: "npx degit https://github.com/karanb192/claude-code-hooks/tree/main/plugins/context-hogs/skills/leaderboard ~/.claude/skills/leaderboard"
installs_to: ~/.claude/skills/leaderboard
source_path: plugins/context-hogs/skills/leaderboard/SKILL.md
collection_size: 7
category_size: 668
collection_url: "https://dirskills.com/collections/karanb192/claude-code-hooks"
added: 2026-08-26T05:13:21.338Z
last_synced: 2026-08-26T05:13:21.338Z
canonical_url: "https://dirskills.com/skills/leaderboard"
---

# Leaderboard

Leaderboard shows this repo's context-cost table of the files that have pulled the most tokens into context. Use it to identify the biggest re-read offenders and suggest a fix for each.

**Install:**

```bash
npx degit https://github.com/karanb192/claude-code-hooks/tree/main/plugins/context-hogs/skills/leaderboard ~/.claude/skills/leaderboard
```

## README

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