context-window-health-check
Skill20 starsChanged 5 months agoMITView on GitHub
Assess the health of your current Claude session context and get a clear action recommendation — no technical metrics needed. Use when your session feels long, Claude seems to be forgetting earlier details, or you are unsure whether to continue or start fresh. Triggers: 'check my context', 'context health check', 'is my context running out', 'should I start a new session', 'проверь мой контекст', 'оценка контекста', 'контекст заканчивается'.
In this repository68 other files it gives its agents.
- company-policy-drafterSkill
- data-room-prep-checklistSkill
- fundraise-pipeline-trackerSkill
- legal-matter-trackerSkill
- proposal-and-quote-drafterSkill
- win-loss-debrief-writerSkill
- csv-data-analyzerSkill
- experiment-results-interpreterSkill
- metrics-anomaly-investigatorSkill
- report-analyzerSkill
- retention-cohort-interpreterSkill
- jobs-to-be-done-extractorSkill
- user-feedback-synthesizerSkill
- user-persona-synthesizerSkill
- accounts-receivable-followup-writerSkill
- invoice-and-payment-tracker-summarySkill
- monthly-close-checklist-and-reconciliation-prepSkill
- hiring-pipeline-reviewerSkill
- interview-debrief-synthesizerSkill
- job-description-and-scorecard-builderSkill
- onboarding-plan-30-60-90Skill
- changelog-narratorSkill
- feature-announcement-writerSkill
- prd-review-challengerSkill
- release-notes-generatorSkill
- survey-results-analyzerSkill
- competitive-feature-matrix-builderSkill
- industry-trend-briefSkill
- weekly-competitor-trackerSkill
- campaign-retrospective-writerSkill
- content-performance-reporterSkill
- research-to-content-briefSkill
- exec-metrics-storytellerSkill
- kpi-digest-builderSkill
- north-star-metric-auditorSkill
- weekly-metrics-story-writerSkill
- daily-admin-briefSkill
- newsletter-digest-builderSkill
- reading-list-prioritizerSkill
- research-folder-synthesizerSkill
- workspace-health-monitorSkill
- backlog-grooming-assistantSkill
- context-builder-coworkSkill
- decision-logSkill
- project-onboardingSkill
- retro-pattern-analyzerSkill
- sprint-review-summarizerSkill
- memory-auditor-chatSkill
- memory-auditor-coworkSkill
- prompt-builderSkill
- prompt-library-curatorSkill
- cowork-session-plannerSkill
- session-handoff-composerSkill
- cowork-plugin-auditSkill
- feature-guideSkill
- routines-setup-assistantSkill
- setup-wizardSkill
- skill-usage-log-reviewerSkill
- weekly-ai-workflow-reviewSkill
- morning-standup-brief-generatorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
If Russian (or contains Cyrillic): respond in Russian
- Distinctive: line 21
If English (or other Latin-script language): respond in English
- Distinctive: line 22
If ambiguous: respond in the language of the trigger phrase used
- Distinctive: line 34
If the message is unrelated to session state (e.g., "write me an email") — do not activate this skill.
- Distinctive: line 67
When signals are mixed, err toward the more cautious status.
- Distinctive: line 71
Write 1–2 sentences describing the status in plain language — no technical terms.
- Distinctive: line 72
Do NOT use: tokens, context window, embedding, model memory.
- Distinctive: line 73
DO use: "Claude's working memory for this session", "how much of our conversation Claude can actively hold", "session length".
- Distinctive: line 74
Keep explanation factual and calm.
- Distinctive: line 95
User describes symptoms without a direct request: Treat as implicit trigger.
- Distinctive: line 101
Unrelated request (no context signal): Do not activate; respond to the original request normally.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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 Window Health Check
This skill assesses the health of the current Claude session for non-technical users and delivers a plain-language status with a single, concrete recommendation: keep going, start a handoff, or open a new session. It works entirely in-chat — no token counts, no code, no external tools.
Input: The user's request (any phrasing); the current session conversation (length, topic diversity, symptom descriptions)
Output: A structured in-chat response — status indicator (🟢 / 🟡 / 🔴), plain-language explanation, one concrete recommendation, and an optional next-step suggestion.
Language Detection
Detect the user's language from their message:
- If Russian (or contains Cyrillic): respond in Russian
- If English (or other Latin-script language): respond in English
- If ambiguous: respond in the language of the trigger phrase used
Instructions
Step 1: Detect Trigger Intent
- Identify whether the user is explicitly requesting a context check or implicitly signalling a problem:
- Explicit: "check my context", "context health check", "is my context running out", etc.
- Implicit: "Claude, you seem to be forgetting…", "you said something different earlier", "this session is getting long"
- In both cases proceed to Step 2.
- If the message is unrelated to session state (e.g., "write me an email") — do not activate this skill; hand off to standard Claude behaviour.
Step 2: Read Session Signals
Analyse the visible conversation to collect the following signals:
- Message count — count visible user + assistant turns:
- < 10 turns → low pressure
- 10–30 turns → moderate pressure
30 turns → high pressure
- Topic diversity — count distinct topic areas in the conversation:
- 1 topic → cohesive, lower risk
- 2–3 topics → moderate branching
- 4+ topics → high branching, elevated risk
- Repetition or contradiction signals — check whether the user has mentioned:
- Claude forgetting earlier instructions
- Contradictory answers across the session
- Having to repeat context already provided
- User-stated symptoms — any explicit complaint about session degradation counts as a strong signal regardless of message count.
Step 3: Assign Status
Combine signals from Step 2 to assign one of three statuses:
| Status | Condition |
| 🟢 Healthy | Low pressure (< 10 turns OR single topic, no symptoms) |
| 🟡 Caution | Moderate pressure OR 2–3 topics OR any user-stated symptom |
| 🔴 Critical | High pressure (> 30 turns) AND multi-topic OR repeated symptoms OR user states Claude is forgetting things |
When signals are mixed, err toward the more cautious status.
Step 4: Write Explanation
- Write 1–2 sentences describing the status in plain language — no technical terms.
- Do NOT use: tokens, context window, embedding, model memory.
- DO use: "Claude's working memory for this session", "how much of our conversation Claude can actively hold", "session length".
- Keep explanation factual and calm; avoid alarmist language for 🟡.
Step 5: Give Recommendation
Assign exactly one concrete recommendation per status:
- 🟢 → "Your session is in good shape — keep working."
- 🟡 → "Consider creating a handoff summary before starting the next major task."
- 🔴 → "Start a new session. Before you do, use
session-handoff-composerto preserve key context."
For 🟡 and 🔴 statuses, append the next-step prompt: suggest session-handoff-composer skill by name.
Step 6: Format and Output
Assemble the response using the Output Format template below. Output inline in chat — no file created unless the user explicitly requests one.
Edge Cases:
- Session just started (< 5 turns): Assign 🟢 automatically; note "Your session is fresh — no concerns."
- User asks about token count: Acknowledge honestly: "I can't see exact token numbers in chat. I'm assessing based on conversation signals instead." Then continue with Steps 2–5.
- Single long topic, many turns: Reduce severity by one level (🔴→🟡 or 🟡→🟢) since a focused topic degrades less than multi-topic sessions. Note this in the explanation.
- User describes symptoms without a direct request: Treat as implicit trigger; proceed with full assessment.
Negative Cases
- Unrelated request (no context signal): Do not activate; respond to the original request normally.
- User demands exact token count: State clearly: "Exact token counts are not visible in the chat interface. I'm providing a signal-based assessment instead." Offer to proceed with the qualitative check.
Output Format
Respond in chat using this structure:
## Context Health
**Status:** 🟡 Caution
[1–2 sentence plain-language explanation of what the status means for this specific session.]
**Recommendation:** [One concrete action.]
→ Next step: [Optional next-step suggestion with skill name if 🟡 or 🔴.]Status definitions:
- 🟢 Healthy — session is in good shape; continue working
- 🟡 Caution — session is getting long or branching; consider a handoff before the next major task
- 🔴 Critical — high risk of context loss; start a new session, preserve context first
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.

