Analyze the current context window and report a breakdown of what's consuming tokens — system prompts, files, conversation history, skills, and MCP configs. Use when the user wants to understand their token budget.
Scanned 6/11/2026
Install via CLI
openskills install msiShariful/claude-token-inspector---
description: Analyze the current context window and report a breakdown of what's consuming tokens — system prompts, files, conversation history, skills, and MCP configs. Use when the user wants to understand their token budget.
disable-model-invocation: true
---
# Context Window Inspector
Analyze everything currently loaded in this conversation's context and produce a structured, actionable report.
## What to analyze
1. **System prompt & instructions** — CLAUDE.md content, project instructions, and any system-level directives
2. **Loaded files** — every file in context with line counts and token estimates
3. **Conversation history** — turn count and token cost of prior messages
4. **Skills & plugins** — active skill instructions currently loaded
5. **MCP server configs** — tool definitions from any connected MCP servers
6. **Embedded documents** — pasted code blocks, documents, or large text from the user
## Output format
Start with a one-line status banner:
```
📊 Context snapshot — ~XX,XXX tokens used | ~YYY,YYY remaining | ZZ% full
```
Then a table sorted by estimated token usage (largest first):
| # | Source | Type | Est. Tokens | % of Budget | Keep? |
|---|--------|------|-------------|-------------|-------|
| 1 | `src/api/routes.ts` | File | ~4,200 | 2.1% | ✅ Yes |
| 2 | Conversation (turns 1–12) | History | ~8,500 | 4.3% | ⚠️ Partial |
| 3 | `CLAUDE.md` | Instructions | ~1,800 | 0.9% | ✅ Yes |
Then three sections:
### 🔥 Top bloat candidates
The 3 largest items that may not be needed for the current task — with a one-line reason each.
### ✅ Essential context
A short bullet list of items that are clearly needed and should not be touched.
### 💡 Quick wins
Specific, copy-paste-ready actions to immediately reduce token usage (e.g., `/clear`, unloading a file, splitting the conversation).
Be precise: use real file names, skill names, and turn numbers. Estimate tokens as 1 token ≈ 4 characters for English prose, slightly fewer for dense code.
$ARGUMENTS
No comments yet. Be the first to comment!
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...
**Complete production-ready guide for Google Gemini embeddings API** This skill provides comprehensive coverage of the `gemini-embedding-001` model for generating text embeddings, including SDK usage, REST API patterns, batch processing, RAG integration with Cloudflare Vectorize, and advanced use cases like semantic search and document clustering. ---
Interview, source-challenge, verify, save, and ADR-gate fuzzy coding requests into Codex-ready implementation specs. Use when a feature, bugfix, refactor, migration, repo-wide change, or architecture task needs user-verified requirements, source-backed decisions, durable architecture decisions, acceptance criteria, validation commands, rollout notes, saved spec/ADR files, and a Codex execution prompt. Do not use when already fully specified or when the user wants direct implementation now.
Use when a repo needs CodeGraph plus ast-grep for Codex MCP setup, exploration, impact analysis, structural search, or safe refactor planning.