Index of every page on this site: llms.txt
All skills
karanb192 avatar

/leaderboard

@d2778c3
Run it yourself

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

Use this Skill: https://skilld.dev/gh/karanb192/claude-code-hooks/leaderboard

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈27 tokens for metadata: the name and description. ≈167 when used: this file.

How this Skill uses context

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

This Skill turns off automatic use in Claude Code. Its description stays out of the automatic Skill list by default.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts4mo3 checks · Risk SAFE
  • Gen Agent Trust Hub4mo

    This skill is safe. It generates a leaderboard of token usage in the repository by executing a local utility script.

  • Socket4mo

    No alerts

  • Snyk4mo

    Risk: LOW · No issues

Signed by skilld at d2778c3. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 months ago
disable-model-invocation
true

README badge

README badge for karanb192/claude-code-hooks/leaderboard