Skip to content
Development
Skill

/leaderboard

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

From plugin
claude-code-hooks
5118 skills
Install
$ npx -y skills add karanb192/claude-code-hooks --skill leaderboard --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/leaderboard

Context preview

The summary Claude sees to decide when to auto-load this skill.

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

SKILL.md

leaderboard.SKILL.md
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.

Ships withclaude-code-hooks

🪝 Ready-to-use hooks for Claude Code, shipped as a 20-plugin installable marketplace: safety, automation, notifications, and more. 🌐 Live site & catalog Claude Code and agents like it run shell commands, edit files, and install packages on their own.

Get the whole plugin
Stats
511
Stars
37
Forks
Active
Maintenance
JavaScript
Language
MIT
License
10h ago
Last commit
7mo ago
Created

Repo: karanb192/claude-code-hooks

Other skills on claude-code-hooks.