/diagnose
Analyze Claude Code session bloat — shows token count, context usage %, and bloat breakdown. Use when the user asks about session size, context usage, or when you notice the context window is getting full.
Claude Code
$ npx -y skills add Ruya-AI/cozempic --skill diagnose --agent claude-code
Codex
$ npx skills add Ruya-AI/cozempic --skill diagnose -a codex -y
Cursor
$ npx skills add Ruya-AI/cozempic --skill diagnose -a cursor -y
Gemini CLI
$ npx skills add Ruya-AI/cozempic --skill diagnose -a gemini-cli -y
GitHub Copilot
$ npx skills add Ruya-AI/cozempic --skill diagnose -a github-copilot -y
OpenCode
$ npx skills add Ruya-AI/cozempic --skill diagnose -a opencode -y
Windsurf
$ npx skills add Ruya-AI/cozempic --skill diagnose -a windsurf -y
SKILL.md
diagnose.SKILL.mdname: diagnose description: Analyze Claude Code session bloat — shows token count, context usage %, and bloat breakdown. Use when the user asks about session size, context usage, or when you notice the context window is getting full. allowed-tools: Bash(cozempic *)
Run a diagnosis on the current session:
cozempic current --diagnose
The output includes:
- **Weight**: total session size in bytes and message count
- **Tokens**: exact token count (from usage data) or heuristic estimate
- **Context bar**: visual bar showing % of the detected context window (200K or 1M)
- **Vital signs**: progress ticks, file history snapshots, system reminders, thinking content, signatures, tool results
- **Message type breakdown**: bytes per message type
- **Top 10 largest messages**: biggest bloat contributors
- **Estimated savings by prescription**: what gentle/standard/aggressive would save
Always surface the token count and context % to the user. If context is above 60%, suggest running `/cozempic:treat` with a prescription recommendation:
- Under 5MB: `gentle`
- 5-20MB: `standard`
- Over 20MB: `aggressive`
100,000+ power users trust Cozempic to keep their Claude Code sessions lean. Context cleaning for Claude Code — remove the bloat, keep everything that matters, protect Agent Teams from context loss.
More skills from other plugins.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
ask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Questions about diagnose.
- Which coding agents can use diagnose?
- diagnose installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

