Agent skill

Leaderboard

by karanb192 in karanb192/claude-code-hooks

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

MITAuto-check passed

Install Leaderboard

skills CLI
$ npx skills add karanb192/claude-code-hooks --skill leaderboard -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install karanb192/claude-code-hooks leaderboard --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/karanb192/claude-code-hooks.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/context-hogs/skills/leaderboard .claude/skills/leaderboard && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
leaderboard
GitHub stars
534
Token cost
~208 tokens
SKILL.md length
85 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

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

  • Calls node

What it does

Leaderboard is an agent skill from karanb192/claude-code-hooks. Show this repo's context-cost leaderboard: the files that pulled the most tokens into context

Its SKILL.md is about 210 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: 🪝 Claude Code hooks + an installable plugin marketplace: safety, cost, observability, productivity. The licence is MIT.

Example prompts

  • “/leaderboard”

What it can do on your machine

Read from SKILL.md and the folder at commit 3c9c90a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Leaderboard loads about 208 tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 85 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~26
When it runs · the whole SKILL.md, loaded when a task matches
~208

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from karanb192/claude-code-hooks at commit 3c9c90a, republished under its MIT licence (© karanb192). 85 words, ~208 tokens.

Download SKILL.mdSave it as .claude/skills/leaderboard/SKILL.md (or your agent's skills folder).
name
leaderboard
description
Show this repo's context-cost leaderboard: the files that pulled the most tokens into context
disable-model-invocation
true

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.

© karanb192, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/context-hogs/skills/leaderboard of karanb192/claude-code-hooks.

Open the folder on GitHubat commit 3c9c90a

Compare with similar skills

Leaderboard next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Leaderboard compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Leaderboard this skillkaranb192/claude-code-hooks534—~208Automated safety check: PassMIT
Cost Reportruvnet/ruflo74k—~830Automated safety check: NotesMIT
Cost Trackingaffaan-m/ECC276k1 repos~1.3kAutomated safety check: PassMIT
Cost Conversationruvnet/ruflo74k—~407Automated safety check: NotesMIT
Cost Optimizeruvnet/ruflo74k—~997Automated safety check: NotesMIT
Cost Trackruvnet/ruflo74k—~773Automated safety check: NotesMIT

Similar skills

  • Cost Report

    ruvnet/ruflo

    Generate a cost report showing token usage and USD costs by agent and model

    74k GitHub stars~830 tokensUpdated today
    AI & LLM EngineeringAuto-check: notes
  • Cost Tracking

    affaan-m/ECC

    Track and report Claude Code token usage, spending, and budgets from the local ECC cost-tracker metrics log.

    276k GitHub starsUsed in 1 repo~1.3k tokens
    AI & LLM EngineeringAuto-check passed
  • Cost Conversation

    ruvnet/ruflo

    Per-conversation cost view — list every session in cost-tracking with started-at, message count, top model, and total cost

    74k GitHub stars~407 tokensUpdated today
    AI & LLM EngineeringAuto-check: notes
  • Cost Optimize

    ruvnet/ruflo

    Analyze token usage patterns and recommend cost optimizations with estimated savings

    74k GitHub stars~997 tokensUpdated today
    AI & LLM EngineeringAuto-check: notes
  • Cost Track

    ruvnet/ruflo

    Auto-capture per-session token usage from the Claude Code session jsonl and persist to the cost-tracking namespace

    74k GitHub stars~773 tokensUpdated today
    AI & LLM EngineeringAuto-check: notes
  • Cost Export

    ruvnet/ruflo

    Export cost-tracking telemetry in Prometheus textfile or webhook JSON formats — for external observability (Grafana, Datadog, custom dashboards)

    74k GitHub stars~687 tokensUpdated today
    DevOps & CloudAuto-check: notes

More from karanb192/claude-code-hooks

All 8 skills in this repo
  • Board

    karanb192/claude-code-hooks

    Show the wanted-poster bounty board: this repo's TODO/FIXME/HACK debt priced as aging XP bounties

    534 GitHub stars~199 tokensUpdated 6 days ago
    Auto-check passed
  • Dead Ends

    karanb192/claude-code-hooks

    List this repo's recorded dead ends: approaches already tried and abandoned, with reasons and cost

    534 GitHub stars~220 tokensUpdated 6 days ago
    Auto-check passed
  • Provenance

    karanb192/claude-code-hooks

    Preview the provenance receipt (prompts, est. An agent skill from karanb192/claude-code-hooks.

    534 GitHub stars~245 tokensUpdated 6 days ago
    Auto-check passed
  • Receipts

    karanb192/claude-code-hooks

    Show your personal model-quality trend card (failure rate, edit churn, tokens/task by model version)

    534 GitHub stars~263 tokensUpdated 6 days ago
    Auto-check passed
  • Scorecard

    karanb192/claude-code-hooks

    Show the CLAUDE.md compliance scorecard: which rules Claude actually follows vs ignores

    534 GitHub stars~231 tokensUpdated 6 days ago
    Auto-check passed
  • Standup

    karanb192/claude-code-hooks

    Render today's standup card from what your agents actually did across repos

    534 GitHub stars~205 tokensUpdated 6 days ago
    Auto-check passed

Questions about Leaderboard

What does Leaderboard do?

Show this repo's context-cost leaderboard: the files that pulled the most tokens into context. Leaderboard is an agent skill from karanb192/claude-code-hooks.

How do I install Leaderboard in Claude Code?

Run `npx skills add karanb192/claude-code-hooks --skill leaderboard -a claude-code`. Or copy the skill folder (plugins/context-hogs/skills/leaderboard in karanb192/claude-code-hooks) into .claude/skills/leaderboard in your project. Claude Code loads it when a task matches its description.

How do I install Leaderboard in Codex?

Run `npx skills add karanb192/claude-code-hooks --skill leaderboard -a codex`. Or copy the skill folder (plugins/context-hogs/skills/leaderboard in karanb192/claude-code-hooks) into .agents/skills/leaderboard in your project. Codex loads it when a task matches its description.

Can I use Leaderboard in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add karanb192/claude-code-hooks --skill leaderboard -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/leaderboard, .gemini/skills/leaderboard, .github/skills/leaderboard and .opencode/skills/leaderboard in your project.

What does Leaderboard need to run?

Going by SKILL.md and its folder, Leaderboard needs the command-line tools its instructions call (node).

Does Leaderboard access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Leaderboard safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Leaderboard use?

Leaderboard is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Leaderboard use?

About 208 tokens (SKILL.md is roughly 832 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Leaderboard?

Skills that share tags, products or a category with Leaderboard: Cost Report (ruvnet/ruflo, 74k stars), Cost Tracking (affaan-m/ECC, 276k stars), Cost Conversation (ruvnet/ruflo, 74k stars) and Cost Optimize (ruvnet/ruflo, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Leaderboard?

karanb192 (a GitHub user) maintains it in karanb192/claude-code-hooks, which has 534 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 4, 2026.

Source: karanb192/claude-code-hooks on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.