Skip to content
Back to skills

Context Health

ASecurity

Quick one-liner health check of your context window. Shows usage percentage, fill level, and whether bloat is detected — without interrupting your flow. Use when you want a fast pulse check before starting a task.

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 11, 2026
ai-agentsgo

Works with

  • mcp

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add msiShariful/claude-token-inspector --skill context-health --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Context Health?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Context Health
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/msishariful-context-health/badge)](https://www.skillsdirectory.com/skills/msishariful-context-health)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: context-health
description: Quick one-liner health check of your context window. Shows usage percentage, fill level, and whether bloat is detected — without interrupting your flow. Use when you want a fast pulse check before starting a task.
disable-model-invocation: true
---

# 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 detected` if everything in context looks relevant to the current task
- ` — {N} bloat item(s) detected` if 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.
```

```
🚨 94% full (~188,000 / 200,000 tokens) — Context is critical — 5 bloat item(s) detected
💡 Start a new conversation immediately — responses may be truncated.
```

Keep it to two lines. Do not add headers, tables, bullet lists, or extra explanation.

$ARGUMENTS

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.