Claude-code-optimizer token-check

Use when the user asks about token usage, session cost, or wants to check optimization effectiveness.

install
source · Clone the upstream repo
git clone https://github.com/huzaifa525/claude-code-optimizer
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/huzaifa525/claude-code-optimizer "$T" && mkdir -p ~/.claude/skills && cp -r "$T/templates/.claude/skills/token-check" ~/.claude/skills/huzaifa525-claude-code-optimizer-token-check && rm -rf "$T"
manifest: templates/.claude/skills/token-check/SKILL.md
source content

Analyze the current Claude Code session for token efficiency:

Check These

  1. Context loaded: What CLAUDE.md, rules, and skills are currently loaded?
  2. MCP servers: How many tool definitions are in context?
  3. Conversation length: How many turns deep are we?
  4. File reads: Have we read the same file multiple times?

Suggest

  • Whether to
    /compact
    the conversation
  • Whether to
    /clear
    and start fresh
  • Which MCP servers to disable if unused
  • Whether CLAUDE.md is too large
  • Whether rules files should use path-scoping

Output

Session Health Report
─────────────────────
Context usage: [estimate]
Conversation turns: [count]
Suggested action: [compact / clear / continue]
Optimization tips: [specific suggestions]
<!-- Skill by Huzefa Nalkheda Wala | claude-code-optimizer -->