leaderboard

leaderboard is a skill for Claude Code from karanb192/claude-code-hooks. It costs 0 tokens per session (199 once invoked), scanned B, original, MIT.

A command that displays a repository's context-cost leaderboard: the files that have used the most space in recent agent sessions.

In plain words
What is it for?
Use it to identify the top one to three context-heavy files and decide whether to split them, exclude generated content, or add access rules.
Why use it?
It makes repeated or expensive file loading visible, helping you find sources of unnecessary context use.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the context-hogs plugin — 1 skill shipped together

Good fit Use it to identify the top one to three context-heavy files and decide whether to split them, exclude generated content, or add access rules.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add karanb192/claude-code-hooks
Claude Code
/plugin install context-hogs

Made for: Claude Code.

Or install context-hogs, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for leaderboard

README.md
[![agentmods](https://agentmods.dev/badge/skills/karanb192/claude-code-hooks/leaderboard/github.svg)](https://agentmods.dev/skills/karanb192/claude-code-hooks/leaderboard)
Your own site
<a href="https://agentmods.dev/skills/karanb192/claude-code-hooks/leaderboard"><img src="https://agentmods.dev/badge/skills/karanb192/claude-code-hooks/leaderboard/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for leaderboard

Your own site · 80×15
<a href="https://agentmods.dev/skills/karanb192/claude-code-hooks/leaderboard"><img src="https://agentmods.dev/badge/skills/karanb192/claude-code-hooks/leaderboard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 199 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00199
Opus 5.5 $0.00000 $0.00080
Sonnet 5.5 $0.00000 $0.00040
Haiku 4.5 $0.00000 $0.00020

Measured 3mo ago against content hash 381f3364aa9b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

leaderboard scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

Keep it short; do not re-run any commands.
plugins/context-hogs/skills/leaderboard/SKILL.md · 19 lines

What it actually says

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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 19 lines · 0 tokens per session scan B 381f3364aa9b

Subscribe to this mod's changes

leaderboard is a skill published in the GitHub repository karanb192/claude-code-hooks (590 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 199 tokens. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

leaderboard compared with skills from other repositories

leaderboard next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
leaderboardkaranb192/claude-code-hooksSkill5904d agoMITB0Claude Code
ai-session-searchahundt/ai-session-searchSkill81yesterdayApache-2.0B129Claude Code
build-implementationSkeneTechnologies/skeneSkill1292mo agoMITA42Claude Code, Codex
analyze-codebaseSkeneTechnologies/skeneSkill1292mo agoMITA50Claude Code, Codex
cli2skill2233admin/cli2skillSkill10todayMITB46Claude Code, Codex
deploy-telemetrySkeneTechnologies/skeneSkill1292mo agoMITA47Claude Code, Codex
plan-growth-loopSkeneTechnologies/skeneSkill1292mo agoMITA45Claude Code, Codex