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.mdsource content
Analyze the current Claude Code session for token efficiency:
Check These
- Context loaded: What CLAUDE.md, rules, and skills are currently loaded?
- MCP servers: How many tool definitions are in context?
- Conversation length: How many turns deep are we?
- File reads: Have we read the same file multiple times?
Suggest
- Whether to
the conversation/compact - Whether to
and start fresh/clear - Which MCP servers to disable if unused
- Whether CLAUDE.md is too large
- Whether rules files should use path-scoping
Output
<!-- Skill by Huzefa Nalkheda Wala | claude-code-optimizer -->Session Health Report ───────────────────── Context usage: [estimate] Conversation turns: [count] Suggested action: [compact / clear / continue] Optimization tips: [specific suggestions]