context-health
Skill4 starsChanged 20 days agoMITView on GitHub
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.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- xiaolongnk/SuperHarnesstheir own version, first seen Sep 26, 2026
- claude-world/claude-agenttheir own version, first seen Mar 22, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- claude-world/claude-agent★ 5same name
- xiaolongnk/SuperHarness★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- find-bloatSkill
- history-trimSkill
- inspect-contextSkill
- mcp-auditSkill
- slim-instructionsSkill
- suggest-splitSkill
- token-forecastSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
After the fill level message, append one of:
- Very specific: line 40
If < 40% full and no bloat: You're good — no action needed.
- Very specific: line 41
If bloat detected: Run /token-inspector:find-bloat to identify what to remove.
- Distinctive: line 49
Use 1 token ≈ 4 characters for prose, slightly fewer for dense code.
- Distinctive: line 69
Keep it to two lines. Do not add headers, tables, bullet lists, or extra explanation.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.🚨 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
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

