Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add msiShariful/claude-token-inspector --skill context-healthgit clone --depth 1 https://github.com/msiShariful/claude-token-inspectorWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/msishariful/claude-token-inspector/context-health)<a href="https://agentmods.dev/skills/msishariful/claude-token-inspector/context-health"><img src="https://agentmods.dev/badge/skills/msishariful/claude-token-inspector/context-health/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/msishariful/claude-token-inspector/context-health"><img src="https://agentmods.dev/badge/skills/msishariful/claude-token-inspector/context-health.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00044 | $0.00681 |
| Opus 5 | $0.00022 | $0.00341 |
| Sonnet 5 | $0.00009 | $0.00136 |
| Haiku 4.5 | $0.00004 | $0.00068 |
Grade A, and why
context-health scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Context Health Check
Give the user an instant, single-line status of their context window. No tables, no analysis, no interruption.
Output format
Produce exactly one status line followed by one action line:
{emoji} {X}% full (~{used} / {total} tokens) — {status message}
💡 {one specific next step}
Emoji and status message rules
| Fill level | Emoji | Status message |
|---|---|---|
| 0–40% | 🟢 | Context is healthy |
| 41–65% | 🟡 | Context is filling up |
| 66–80% | 🟠 | Context is getting crowded |
| 81–90% | 🔴 | Context is nearly full |
| 91–100% | 🚨 | Context is critical |
Bloat detection addendum
After the fill level message, append one of:
— no bloat detectedif everything in context looks relevant to the current task— {N} bloat item(s) detectedif you spot files, history, or instructions clearly unrelated to what the user is doing right now
Action line rules
Pick the most relevant single action:
- If < 40% full and no bloat:
You're good — no action needed. - If bloat detected:
Run /token-inspector:find-bloat to identify what to remove. - If > 65% full:
Run /token-inspector:inspect-context for a full breakdown. - If > 85% full:
Run /token-inspector:find-bloat now or start a new conversation to avoid truncation. - If > 95% full:
Start a new conversation immediately — responses may be truncated.
Estimation
- Estimate total tokens used by summing: system prompt, CLAUDE.md, loaded files, conversation history, skills, MCP tool definitions, embedded documents.
- Use 1 token ≈ 4 characters for prose, slightly fewer for dense code.
- For context window size: assume 200,000 tokens unless you have evidence of a different limit.
Examples of valid output
🟢 18% full (~36,000 / 200,000 tokens) — Context is healthy — no bloat detected
💡 You're good — no action needed.
🟠 71% full (~142,000 / 200,000 tokens) — Context is getting crowded — 3 bloat item(s) detected
💡 Run /token-inspector:find-bloat to identify what to remove.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 71 lines · 44 tokens per session scan A 0ccaef94255d
context-health is a skill published in the GitHub repository msiShariful/claude-token-inspector (4 stars, last pushed 3mo ago), licensed MIT. It adds 44 tokens to every session and 681 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
cco-patterns
Share learned file patterns across a team — export an anonymized digest of what's usually waste/useful/co-edited, and import a teammate's so a fresh clone benefits day one.
knowledge-wiki
A tool that turns useful lessons from coding sessions into general articles for a team wiki. A wiki is a collection of linked reference pages, and this one can be kept locally or shared through a Git repository.
team-memory-protocol
A shared-memory process for teams of coding agents working on the same build. It stores project knowledge, shared context, and task progress in separate files or repositories.
dream
Prunes and consolidates the project's auto-memory to keep it minimal — deletes stale, wrong, or redundant memories, merges overlapping ones into existing files, and trims the index. Strong bias against growth: never creates new memory files and never stores new facts. Verifies staleness against the current codebase…
magic-compact
Compact this Claude Code session.
memem-mine
Opt in to memem's event-triggered mining. New sessions are mined automatically via the Stop hook.